July 30, 201015 yr Hello,I'm trying to add click spots on side panels so I can switch to different views without using keypad. However, the problem i'm having when I tried to add a gauge to side panel, the icon doesn't show as if it wasn't added in the first place.What do I need to be able to add a gauge on a 2d side panel?This is the xml gauge i used to add on FORWARD_RIGHT panel.<Gauge Name="click area" Version="1.0"> <Image Name="icon.bmp" ImageSizes="12,12,19,19"/> <Mouse> <Cursor Type="Hand"/> <Click Event="VIEW_FORWARD"/> </Mouse></Gauge> --------------------------------------Cheers,
July 31, 201015 yr Author Could someone please help me with this or point to the right direction :( --------------------------------------Cheers,
August 1, 201015 yr Hi,OK, no Icon, but does the gauge work?(i always use invisible clickspots to change vieuws)Jan Jan "Beatus ille qui procul negotiis..."
August 3, 201015 yr Author Hi,OK, no Icon, but does the gauge work?(i always use invisible clickspots to change vieuws)JanHi Jan,Would you mind if you share your xml code? --------------------------------------Cheers,
August 3, 201015 yr Hi,First: the panel.cfgYou have your [windowxx] , with the gauges and [fixed windowxx] with vieuws and artwork, and gauges?.I give an example:Say in [fixed window30] looking forward right as defined by:VIEW_FORWARD_RIGHT_WINDOWS=30VIEW_FORWARD_RIGHT_EYE=0.0, 0.0, 0.0VIEW_FORWARD_RIGHT_DIR=8.0, 0.0, 45VIEW_FORWARD_RIGHT_ZOOM=0.9you could see a radio panel covering half the window on the left side, right side is outside vieuw.So there is the bitmap, the artwork, on the left side.Now look for a place where you want your gauge, say in the left upper corner.Then you must define that place in the panel.cfg:[Fixed Window30]file=your artwork.bmp // in the panel directory of the aircraftsize_mm=1280,960position=0visible=0ident=30render_3d_window=1nomenu=1gauge00=your gauges directory!vieuw, 0, 0, // i called the gauge vieuw, any name is okThe gauge is:<Gauge Name="vieuw1" Version="1.0"><Size X="40" Y="40"/><Mouse><Area Left="0" Right="40" Top="0" Bottom="40"><Tooltip> View Forward</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_FORWARD)</Click>//or any other command</Area></Mouse></Gauge>If you want more commands then you can enlarge x and y and define more clickspots.(Note, the gauge must always be over the bitmap, otherwise it becomes invisble and doesn't work)example2, a bigger one with 3 clickspots:<Gauge Name="vieuw3" Version="1.0"><Size X="120" Y="40"/><Mouse><Area Left="0" Right="40" Top="0" Bottom="40"><Tooltip> View Forward</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_FORWARD)</Click></Area><Area Left="41" Right="80" Top="0" Bottom="40"><Tooltip> View Rear</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_REAR)</Click></Area><Area Left="81" Right="120" Top="0" Bottom="40"><Tooltip>your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click></Area></Mouse></Gauge>i use the whole screen for the gauge and place the clickspots over the whole bitmap avoiding the outside vieuwexample:<Gauge Name="vieuw all" Version="1.0"><Size X="1280" Y="960"/><Mouse><Area Left="0" Right="40" Top="0" Bottom="40"><Tooltip> View Forward</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_FORWARD)</Click></Area><Area Left="41" Right="80" Top="0" Bottom="40"><Tooltip> View Rear</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_REAR)</Click></Area><Area Left="81" Right="120" Top="0" Bottom="40"><Tooltip>your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click><Area Left="0" Right="40" Top="41" Bottom="80"><Tooltip> your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click></Area><Area Left="41" Right="80" Top="41" Bottom="80"><Tooltip> your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click></Area><Area Left="81" Right="120" Top="41" Bottom="80"><Tooltip> your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click></Area>etc......</Mouse></Gauge>After a short time you will become happy with those invisible clickspots avoiding the unrealistic icons, still there are the tooltips....Hope it helps,Jan Jan "Beatus ille qui procul negotiis..."
August 3, 201015 yr Author Thank you so much, Jan. I will try it once i get home. --------------------------------------Cheers,
Create an account or sign in to comment