- Messages
- 149
- Country

I have been struggling with this for ages - please help if it is a well know novice mistake:
I have been trying to get the simplest possible mousearea to appear on my simplest possible gauge, and there seems to be some complex subtlety with the coordinates within the gauge in the 3D view, because the mousearea behaves strangely. Here is the code for the ENTIRE gauge, which doesn't do anything useful but illustrates my problem:
In 2D mode, the mousearea behaves as expected, i.e. I get a DownArrow cursor (a hand with a minus) appear anywhere I wave the mouse around inside the area of the 'Go' mousearea, which I've sized to fill the top third of the instrument.
In 3D mode, the DownArrow cursor *only* appears in tiny areas near BOTH right and left edges at the top third of the instrument - so it seems like the box is there but is somehow being masked in a complex way.
For completeness here's my panel.cfg vcockpit section:
Any help greatly appreciated...
B21
I have been trying to get the simplest possible mousearea to appear on my simplest possible gauge, and there seems to be some complex subtlety with the coordinates within the gauge in the 3D view, because the mousearea behaves strangely. Here is the code for the ENTIRE gauge, which doesn't do anything useful but illustrates my problem:
Code:
<SimBase.Document Type="AceXML" version="1,0" id="variometer">
<Filename>variometer.xml</Filename>
<SimGauge.Gauge id="vario">
<FloatPosition>0.000,0.000</FloatPosition>
<Size>90,90</Size>
<MouseArea id="MouseArea">
<FloatPosition>0.000,0.000</FloatPosition>
<Size>90,90</Size>
<MouseArea id="Go">
<FloatPosition>5.000,0.000</FloatPosition>
<Size>78,35</Size>
<CursorType>DownArrow</CursorType>
<Tooltip id="Tooltip">Testing MouseArea</Tooltip>
</MouseArea>
</MouseArea>
</SimGauge.Gauge>
</SimBase.Document>
In 2D mode, the mousearea behaves as expected, i.e. I get a DownArrow cursor (a hand with a minus) appear anywhere I wave the mouse around inside the area of the 'Go' mousearea, which I've sized to fill the top third of the instrument.
In 3D mode, the DownArrow cursor *only* appears in tiny areas near BOTH right and left edges at the top third of the instrument - so it seems like the box is there but is somehow being masked in a complex way.
For completeness here's my panel.cfg vcockpit section:
Code:
[VCockpit01]
file=DG808s_Panel_Gauges_2.bmp
size_mm=256,256
pixel_size=256,256
texture=$DG808s_Panel_2
background_color=0,0,0
gauge00=DG808S!asi, 10, 13, 103, 104
gauge01=b21_vario_netto!variometer, 14, 152, 90, 90
gauge02=DG808S!altimeter, 127, 140, 115, 115
gauge03=DG808S!nav_display, 130, 5, 121, 122
[VCockpit02]
file=DG808s_Panel_Gauges_1.bmp
size_mm=256,256
pixel_size=256,256
texture=$DG808s_Panel_1
background_color=0,0,0
gauge00=b21_vario_te!b21_vario_te57, 17, 15, 99, 99
gauge01=DG808S!turn_bank, 11, 142, 78, 78
gauge02=DG808S!oat, 232, 118, 10, 44
gauge03=DG808S!electrical_buttons, 190, 189, 64, 65
gauge04=DG808S!radio, 140, 3, 91, 91
gauge05=DG808S!transponder, 137, 101, 81, 81
gauge06=DG808S!compass, 103, 194, 81, 59
gauge07=n_number_plaque!n_number_plaque, 0, 231, 89, 25
Any help greatly appreciated...
B21



