I'm having some problems with hotspots that I can't figure out.
I've looked at several of the FG aircraft and can't figure out what the problem is. My code looks like this :

<snip>
 <background>Aircraft/737-300/Panels/transparent-bg.rgb</background>
 <w>512</w>
 <h>1024</h>

 <instruments>
   <instrument>
     <name>panel hotspots</name>
     <x>0</x>
     <y>0</y>
     <w>512</w>
     <h>1024</h>
     <w-base>512</w-base>
     <h-base>1024</h-base>

     <actions>
       <action>
         <name>Nav Lights</name>
         <button>0</button>
         <x>0</x>
         <y>0</y>
         <w>50</w>
         <h>50</h>
<snip>

The hotspots show in the right location when I press Ctrl-C however the actions are triggered with an offset. It's like having two overlapping rectangles - one is the visual hotspot and the other the receiving hotspot.
Any ideas?

Thanks
Paul


 Hi Paul ,
Just a guess since I dont know what else is in the file , but I think it should be :

<instruments>
  <instrument>
    <name>panel hotspots</name>
    <x>256</x>        -- not 0
    <y>512</y>         -- not 0
    <w>512</w>
    <h>1024</h>
    <w-base>512</w-base>
    <h-base>1024</h-base>



: the panel 'instrument' should be centered ... its not placed by the bottom left corner like actions are.... '0' would make the center of the panel in the lower left corner of the panel area.
I haven't had any problems tilting the 3d panel at any angle ....
Hope this helps.
Syd



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to