Sure 

Here are the "main panel" file and the definition of the 3D plane that carries 
it 

 I dunno though if it will be of some help since they are all linked to the 
same property (the starter) but at different locations


> Ah, the good old hotspots.  These are by far the most horrible part of doing 
> a 
> cockpit for FGFS, really unpleasant and in many places quite illogical.
> 
> Can we see your hotspots XML file?
> 
> I suspect you're suffering from the same thing I puzzled over for weeks.  
> Although the hotspots were being drawn where I expected, only some of them 
> were working.
> 
> Cheers,
> 
> AJ
> 
> 
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
> 
> 
<?xml version="1.0"?>

<PropertyList>

   <!--sensitive areas--> 

<panel>
   <name>mainPanel</name>
   <path>Aircraft/Su-26M/Panels/main-panel.xml</path>
   <depth-test type="bool">true</depth-test>   
   <bottom-left>
    <x-m>1.452</x-m>
    <y-m>-0.325</y-m>
    <z-m> 0.048</z-m>
   </bottom-left>
   <bottom-right>
    <x-m>1.452</x-m>
    <y-m> 0.326</y-m>
    <z-m> 0.048</z-m>
   </bottom-right>
   <top-left>
    <x-m>1.362</x-m>
    <y-m>-0.325</y-m>
    <z-m> 0.528</z-m>
   </top-left>
<!--   <bottom-left>
    <x-m>1.252</x-m>
    <y-m>-0.325</y-m>
    <z-m> 0.048</z-m>
   </bottom-left>
   <bottom-right>
    <x-m>1.252</x-m>
    <y-m> 0.326</y-m>
    <z-m> 0.048</z-m>
   </bottom-right>
   <top-left>
    <x-m>1.162</x-m>
    <y-m>-0.325</y-m>
    <z-m> 0.528</z-m>
   </top-left>-->
 
  </panel> 

<!--
  
<panel>
   <name>sidePanel</name>
   <path>Aircraft/Su-26M/Panels/side-panel.xml</path>
   <depth-test type="bool">false</depth-test>   
   <bottom-left>
    <x-m>1.615</x-m>
    <y-m>-0.376</y-m>
    <z-m>-0.172</z-m>
   </bottom-left>
   <bottom-right>
    <x-m>1.615</x-m>
    <y-m>0.365</y-m>
    <z-m>-0.172</z-m>
   </bottom-right>
   <top-left>
    <x-m>1.463</x-m>
    <y-m>-0.376</y-m>
    <z-m> 0.362</z-m>
   </top-left>
 
  </panel>   
   -->

</PropertyList>
<PropertyList>

 <name>Su-26 main panel</name>
 <background>Aircraft/Su-26M/Panels/transparent-bg.rgb</background>
 <w>1024</w>
 <h>768</h>
 <view-height>768</view-height>
 
<instruments>
  
  <instrument> <!--include="Instruments/mainActions.xml"-->
  <name>controls</name>
   <x>0</x>
   <y>0</y>   
   <w-base>1024</w-base>
   <h-base>768</h-base>

 <actions>
  <!-- Radio 	  				         -->

  <action>                             <!-- first action -->
   <desc>small audio frequency decrease</desc>
   <button>0</button>                  <!-- bind it to a mouse button -->
   <x>130</x>                          <!-- placement relative to instrument center -->
   <y>330</y>
   <w>16</w>                           <!-- size of hotspot -->
   <h>16</h>
   <binding>
    <command>property-toggle</command>
    <property>controls/engines/engine/starter</property>                     
   </binding>
  </action>
  
  <action>                             
   <desc>Engine starter 2</desc>
   <button>0</button>                  
   <x>230</x>                           
   <y>330</y>
   <w>16</w>                           
   <h>16</h>
   <binding>
    <command>property-toggle</command>
    <property>controls/engines/engine/starter</property>                     
   </binding>                    
  </action>
  
  <action>                             
   <desc>Engine starter</desc>
   <button>0</button>                  
   <x>430</x>                           
   <y>330</y>
   <w>16</w>                           
   <h>16</h>
   <binding>
    <command>property-toggle</command>
    <property>/controls/engines/engine/starter</property>                     
   </binding>
  </action>
  
  <action>                             
   <desc>large audio frequency increase</desc>
   <button>1</button>                  
   <x>530</x>                           
   <y>330</y>
   <w>16</w>                           
   <h>16</h>
   <binding>
    <command>property-toggle</command>
    <property>controls/engines/engine/starter</property>                     
   </binding>                    
  </action>  

<!-- breakers 								-->
 
  <action>                             
   <desc>large audio frequency increase</desc>
   <button>0</button>                  
   <x>630</x>                           
   <y>330</y>
   <w>16</w>                           
   <h>16</h>
   <binding>
    <command>property-toggle</command>
    <property>toto</property>                     
   </binding>                 
  </action>  
 </actions>
</instrument>  
  
</instruments> 
   
</PropertyList>
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to