panel buttons/switches

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

panel buttons/switches

Postby bond » Sat Mar 27, 2004 10:57 pm

:(   Can anyone please tell me how do i make a panel button open a different window then the one it does?
Example,..the button opens an overhead panel,=(widow number 4) i need it to open a different window.(window number 10) how do i do this?
bond
Ground hog
Ground hog
 
Posts: 4
Joined: Sat Mar 27, 2004 11:51 pm

Re: panel buttons/switches

Postby WebbPA » Sun Mar 28, 2004 8:55 am

Change the "ident=" line.  Here's an example from Tipster's Beech Baron panel.  

[Window01]
Background_color=0,0,0
size_mm=640
window_size_ratio=1.00  
position=0
visible=0
ident=GPS_panel
window_size= 0.226, 0.482
window_pos= 0.774, 0.432 ...

[Window02]
file=overhead.bmp
size_mm=604
window_size_ratio=1.00  
position=0
visible=1
ident=overhead_panel
window_size= 1.000, 0.130
window_pos= 0.000, 0.000 ...

I'm not sure how well this is addressed in the SDK but if you want to post the file we can figure it out.
WebbPA
Ground hog
Ground hog
 
Posts: 0
Joined: Sat Sep 25, 2010 6:01 pm

Re: panel buttons/switches

Postby BFMF » Mon Mar 29, 2004 3:04 am

It is possible to create your own XML gauge to open whatever window you want to create. I've done it for several personal panel projects, but it's been a while
BFMF
Colonel
Colonel
 
Posts: 16266
Joined: Mon Feb 25, 2002 6:06 pm
Location: Pacific Northwest

Re: panel buttons/switches

Postby microlight » Mon Mar 29, 2004 4:56 am

Yep, as WebbPA says: any [window] box that you put an ident line in that references a specific button, then that button will open that window. Some panels already have dedicated buttons, which you can press into service elsewhere. You could even have the default M$ buttons doing different things, if you want: e.g. the GPS button could open the radio stack.

:)
User avatar
microlight
Major
Major
 
Posts: 2076
Joined: Mon Aug 19, 2002 6:24 pm
Location: Southern UK

Re: panel buttons/switches

Postby bond » Mon Mar 29, 2004 9:27 pm

Thanks for helping out,,,i tried using different IDENT...but nothing.  This is how it all started,i have a panel button that opens an overhead lights panel,what i did is i took another button from a different panel from a different plane (that opens an overhead panel on that plane) and inserted it into the first panel,because i have a second panel overhead that has all the engine start commands etc...you see,..i wanted to use the new button to open the second overhead panel,but now both buttons open the same panel. does this make any sense?. i used FS PANEL STUDIO to copy the button,and then notepad to edit the PANEL.CFG file.
bond
Ground hog
Ground hog
 
Posts: 4
Joined: Sat Mar 27, 2004 11:51 pm

Re: panel buttons/switches

Postby WebbPA » Mon Mar 29, 2004 10:08 pm

That makes sense.  Even though the buttons look different the are probably triggering the same "ident" code.  Get cpt.icons.cab from AVsim (maybe it's available here). It has a lot of different buttons you can use.
WebbPA
Ground hog
Ground hog
 
Posts: 0
Joined: Sat Sep 25, 2010 6:01 pm

Re: panel buttons/switches

Postby bond » Mon Mar 29, 2004 10:13 pm

i will try it,,thats again for your help  :)
bond
Ground hog
Ground hog
 
Posts: 4
Joined: Sat Mar 27, 2004 11:51 pm

Re: panel buttons/switches

Postby bernadic » Wed Mar 31, 2004 11:39 am

I don't know if this will help you:
For the same purpose of you are looking for, I have collected different toggle switches that I found in my gauge list.
They have the IDENT nr. of the window that they change.
You can check if you have some of them and try with it.

gauge48=MB_TOGGLE_33,  799,631,57,57
gauge49=MB_TOGGLE_32,  731,612,57,57
gauge50=MB_TOGGLE_31,  665,648,57,57
gauge51=MB_TOGGLE_30,  602,648,57,57
gauge52=learrdb.tgglpnl26,  353,630,40,36
gauge53=learrdb.tgglpnl24,  393,630,40,36
gauge54=learrdb.tgglpnl23,  433,630,40,36
gauge55=learrdb.tgglpnl22,  473,630,40,36
gauge56=learrdb.tgglpnl21,  513,630,40,36
gauge57=learrdb.tgglpnl20,  553,630,40,36
gauge58=DFRG_TOGGLE_31,  664,579,57,56
gauge59=DF172_TOGGLE_GPS_33,  806,573,40,35
gauge60=DF172_TOGGLE_37,  931,606,57,56
gauge61=DF172_TOGGLE_36,  869,607,57,56
gauge62=DF172_TOGGLE_30,  601,579,57,56

Forget the gauge nr., and the size and position, this is only for the window where I have collected them.
I modify the FS9 panels with CfgEdit Freeware program, that worked since with FS2000.

Good luck.
User avatar
bernadic
Ground hog
Ground hog
 
Posts: 6
Joined: Thu Aug 12, 2004 5:01 pm
Location: LEBL


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 241 guests