Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
How to open window using a button (Read 266 times)
Jun 17th, 2005 at 10:36am

ifs2003   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 48
*****
 
Did anyone knows a gauge in XML that have 2 variations that when you push in it open an window like GPS, Pedistall or all other window i chouse ? how to make it ?
 
IP Logged
 
Reply #1 - Jun 18th, 2005 at 12:06am

bdenni   Offline
Colonel
Glendale, AZ

Gender: male
Posts: 69
*****
 
There are a number of icons available that open the various cockpit windows (radio, gps, map, throttle/pedestal, overhead, etc.)  They are usually stored in a CAB file called SimIcons.  There is the xml file with the instruction and the bmp file that you see on the panel. 

This is the gps icon.xml content:

- <Gauge Name="GPS Icon" Version="1.0">
  <Image Name="Icon_GPS.bmp" ImageSizes="12,12,19,19" />
- <Mouse>
  <Help ID="HELPID_GAUGE_TOGGLE_GPS_WINDOW" />
  <Cursor Type="Hand" />
  <Click>225 (>K:PANEL_ID_TOGGLE)</Click>
  </Mouse>
  </Gauge>

Hope this helps
 
IP Logged
 
Reply #2 - Jun 18th, 2005 at 9:09am

ifs2003   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 48
*****
 
For example i want to open an radar window (window 04 ID 99 ) What i need to change in the code ?
 
IP Logged
 
Reply #3 - Jun 18th, 2005 at 1:02pm

Gypsy_Baron   Offline
Colonel
USS Dewey DGL-14 &  VX-8
Daly City, California

Gender: male
Posts: 467
*****
 
Quote:
For example i want to open an radar window (window 04 ID 99 ) What i need to change in the code ?



Here's snippets of one of my panel.cfg files for a B757 which
uses an existing "IFR" icon to toggle a window to display the
F16 radar gauge. You should be able to find the "cpt.icons.cab"
file online if you don't already have it in you "gauges" folder.

//---------------------------------------------------------
[Window Titles]
Window00=Main-Panel
Window01=GPS
Window02=OVERHEAD
Window03=RADAR                    //<---- ID's the added RADAR window

[Window00]
file=757main.bmp
............

gauge76=cpt.icons!IFR,  950,584,19,19     //<--- ICON to toggle the RADAR window

..........

[Window03]
file=RADAR.bmp                                 
file_1024=RADAR.bmp
size_mm=264
window_size_ratio=1.000 
position=0
visible=0
ident=IFR_MAIN_PANEL                      //<--- the "IFR" icon relates to this ident
window_size= 0.170, 0.230
window_pos= 0.750, 0.640

gauge00=F16!Radar,  12,26,244,187
gauge01=F16!Radar Mode,  41,251,59,20
gauge02=F16!Radar Range,  156,251,59,20

//------------------------------------------------------

Hope this helps. I also have created my own icons to toggle the
radar and TCAS windows, among others, using different IDENT
codes. If the above method doesn't suit your needs I can give
you the xml code/bmp files to do it.

     Paul
 

...
IP Logged
 
Reply #4 - Jun 18th, 2005 at 1:32pm

BFMF   Offline
Colonel
Pacific Northwest

Gender: male
Posts: 19820
*****
 
I've been playing around with my own simicons also, they're quite easy to make
 
IP Logged
 
Reply #5 - Jun 18th, 2005 at 2:13pm

ifs2003   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 48
*****
 
I still can't made it  Sad

For example i teke my default simicons and in the [click] i have : 90 (&gt;K:IFR_radar_PANEL)

and i have WINDOW04=radar and window ident 90

What to do ta made simicons open window 04 ?
 
IP Logged
 
Reply #6 - Jun 19th, 2005 at 12:22pm

Gypsy_Baron   Offline
Colonel
USS Dewey DGL-14 &  VX-8
Daly City, California

Gender: male
Posts: 467
*****
 
[quote author=ifs2003  link=1119018969/0#5 date=1119118410]I still can't made it  :(

For example i teke my default simicons and in the [click] i have : 90 (&gt;K:IFR_radar_PANEL)

and i have WINDOW04=radar and window ident 90

What to do ta made simicons open window 04 ? [/quote]


Here's the XML code I use to open a radar window:

<Gauge Name="Radar Icon" Version="1.0">
   <Image Name="Icon_Radar.bmp" ImageSizes="19,19"/>
   <Mouse>
     <Tooltip>Toggle Radar Window</Tooltip>
     <Cursor Type="Hand"/>
     <Click>1065 (&gt;K:PANEL_ID_TOGGLE)</Click>
   </Mouse>
</Gauge>

In my case, the ID is "1065"....
In your case, replace the "1065" with "90"...

     Paul
 

...
IP Logged
 
Reply #7 - Jun 24th, 2005 at 6:09am

ifs2003   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 48
*****
 
Thank's  Wink
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print