February 8, 201214 yr I was looking for a way to add an hidden hotspot on ND or PDF in the virtual cockpit in order to open the respective 2D gauge.I did a search but I've found anything. Peter Nalbek Mobo: GA-P67A-UD7-B3 (F2) CPU: i7 2600k 4.8 GHz HT off RAM: 8GB Gskill DDR3-2133 PC3 17000 (4GB x 2) CL 11-11-11-30-2N 1.5V SDD: OCZ Vertex2 240 GB GPU: Zotac 580 GTX OS: Windows 7 x64
February 8, 201214 yr AFAIK the 2D gauge needs to be on a subpanel, or have special code in it that toggles its transparency. If on a subpanel, you will need to use a TOGGLE_PANEL command.Hope this helps, Tom Gibson CalClassic Propliner Page
February 8, 201214 yr Author Thank you Tom but I'm totally a noob in this matter. I was able to add some 2D views of the ND and PDF by pressing SHIFT+5 and SHIFT+6. The next step was to add a click spot but seems to be to complex for me. Peter Nalbek Mobo: GA-P67A-UD7-B3 (F2) CPU: i7 2600k 4.8 GHz HT off RAM: 8GB Gskill DDR3-2133 PC3 17000 (4GB x 2) CL 11-11-11-30-2N 1.5V SDD: OCZ Vertex2 240 GB GPU: Zotac 580 GTX OS: Windows 7 x64
February 8, 201214 yr As mentioned you need to make a gauge that uses the TOGGLE_PANEL command. <Gauge> <Size X="10" Y="10"/> <Mouse> <Cursor Type="Hand" /> <Tooltip>Open PFD</Tooltip> <Click>panelid (>K:TOGGLE_PANEL)</Click> </Mouse></Gauge> Now comes the difficult part: You need to find a place on the 3D cockpit to put the gauge.Depending on how the 3D cockpit is designed thi can be very easy or impossible.
February 9, 201214 yr Just to fill in some of the blanks...I have found that you need to reference a bmp file for this to work.. a simple small blacksquare works (may be this file can be missing - not sure..)So the code becomes <Gauge Name="PFD toggle" Version="1.0"> <Image Name="blank.bmp" /> <Mouse> <Tooltip>Open PFD</Tooltip> <Cursor Type="Hand"/> <Click>10 (>K:PANEL_ID_TOGGLE)</Click> </Mouse></Gauge> This code gets saved in an xml file, such as "Toggle10.xml"Then create a subfolder to your panel folder and call it say: "Controls". The xml file goes into this subfolder.In the airplane, you define a gauge in the Vcockpit section on top of the gauge you want to popupand call it gaugeXX= Controls!Toggle10, x,y,width,heightThis gauge will then popup the 2d Window with ident=10The ident=xxx in the 2d panel Window has to match the xxx (>K:PANEL etcSimple: No... but it does work if the panel model allows a clickspot to be positioned where you put it. Edited February 9, 201214 yr by Bert Pieke Bert
February 9, 201214 yr If the gauge you want to "Pop up" is an xml gauge you can also add the Window as described previously, and uncab, then edit the original ND/PFD/MFD to include the mouse code. No extra invisible gauge is necessary and it will open and close when clicked on the panel or the pop up.The same caveate, that Bert mentioned, still applies for the VC. The parent gauge must be on a clickable surface in the model or it won't respond...Don
Create an account or sign in to comment