Message: 3
From: Paul Surgeon <[EMAIL PROTECTED]>
To: flightgear-devel@lists.sourceforge.net
Date: Sun, 19 Mar 2006 20:48:34 +0200
Subject: [Flightgear-devel] Hotspots
Reply-To: flightgear-devel@lists.sourceforge.net

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>
     <y>512</y>
     <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....
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