Hi
I have made an airspeed guage that seems to be set and funtioning correctly. I have also included 3 speed marking bugs which seem to be positioned and set properly around the airspeed guage circumfrence. However, I would like to somehow move, grab and set the speed marking bugs with the computer mouse but do not know how. If possible, I would appreciate it, if someone can please give an example XML mouse code that will allow to do what I have indicated above with the bugs. The partcial airspeed code for the speed marking bug is as the following:
I have a general idea of what the mouse code should resemble, but just do not know what to put into the blanks in according to the bugs that I have.
First speed marking bug:
<MouseArea id="MouseArea">
<FloatPosition> ? </FloatPosition>
<Size> ? </Size>
<MouseArea id="MouseArea_BugOneWide">
<FloatPosition> ? </FloatPosition>
<Size> ? </Size>
<CursorType> ? </CursorType>
<Tooltip id="Tooltip">
<MetricId>TOOLTIPTEXT_AIRSPEED_KNOTS</MetricId>
<EnglishId>TOOLTIPTEXT_AIRSPEED_KNOTS</EnglishId>
<DefaultScript>% ? %</DefaultScript>
</Tooltip>
<MouseClick id="MouseClick">
<Script> ? </Script>
<ClickType> ? </ClickType>
<ClickRepeat>True</ClickRepeat>
</MouseClick>
</MouseArea>
</MouseArea>
Recency
I have made an airspeed guage that seems to be set and funtioning correctly. I have also included 3 speed marking bugs which seem to be positioned and set properly around the airspeed guage circumfrence. However, I would like to somehow move, grab and set the speed marking bugs with the computer mouse but do not know how. If possible, I would appreciate it, if someone can please give an example XML mouse code that will allow to do what I have indicated above with the bugs. The partcial airspeed code for the speed marking bug is as the following:
Code:
<Element id="Element_BugOneWide">
<FloatPosition>123.000,118.000</FloatPosition>
<Select id="Select_BugOneWide">
<Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>2.000</Maximum>
<Script>(L:L_BACKLIGHT_ON,bool)</Script>
</Expression>
<Case id="Case_0">
<ExpressionResult>0.000</ExpressionResult>
<Image id="MD83IasMarkBugOne.bmp" Name="MD83IasMarkBugOne.bmp">
<Transparent>True</Transparent>
<Axis>8.000,114.000</Axis>
<Bright>True</Bright>
</Image>
</Case>
<Case id="Case_1">
<ExpressionResult>1.000</ExpressionResult>
<Image id="MD83IasMarkBugOneWideBlank.bmp" Name="MD83IasMarkBugOneWideBlank.bmp">
<Transparent>True</Transparent>
<Axis>8.000,120.000</Axis>
<Luminous>True</Luminous>
</Image>
</Case>
<Case id="Case_2">
<ExpressionResult>2.000</ExpressionResult>
<Image id="MD83IasMarkBugOne.bmp" Name="MD83IasMarkBugOne.bmp">
<Transparent>True</Transparent>
<Axis>8.000,120.000</Axis>
<Bright>True</Bright>
</Image>
</Case>
</Select>
<Rotation id="Rotation_BugOneWide">
<PointsTo>NORTH</PointsTo>
<Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>450.000</Maximum>
<Script>(L:BUG_ONE_WIDE_POS, position) 4 *</Script>
</Expression>
<FailureTable id="FailureTable">
<Failure id="Failure">
<Fail_Key>GAUGE_AIRSPEED</Fail_Key>
<Fail_Action>Freeze</Fail_Action>
</Failure>
</FailureTable>
<Delay id="Delay">
<DelayValue>90.000</DelayValue>
</Delay>
<NonlinearityTable id="NonlinearityTable_BugOneWide">
<NonlinearityEntry id="NonlinearityEntry_0">
<ExpressionResult>0.000</ExpressionResult>
<FloatPosition>113.000,23.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_60">
<ExpressionResult>60.000</ExpressionResult>
<FloatPosition>139.000,25.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_80">
<ExpressionResult>80.000</ExpressionResult>
<FloatPosition>158.000,31.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_100">
<ExpressionResult>100.000</ExpressionResult>
<FloatPosition>194.000,54.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_120">
<ExpressionResult>120.000</ExpressionResult>
<FloatPosition>216.000,89.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_140">
<ExpressionResult>140.000</ExpressionResult>
<FloatPosition>220.000,129.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_160">
<ExpressionResult>160.000</ExpressionResult>
<FloatPosition>205.000,167.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_180">
<ExpressionResult>180.000</ExpressionResult>
<FloatPosition>176.000,194.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_200">
<ExpressionResult>200.000</ExpressionResult>
<FloatPosition>138.000,208.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_220">
<ExpressionResult>220.000</ExpressionResult>
<FloatPosition>97.000,205.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_240">
<ExpressionResult>240.000</ExpressionResult>
<FloatPosition>61.000,185.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_250">
<ExpressionResult>250.000</ExpressionResult>
<FloatPosition>46.000,169.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_300">
<ExpressionResult>300.000</ExpressionResult>
<FloatPosition>31.000,141.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_350">
<ExpressionResult>350.000</ExpressionResult>
<FloatPosition>28.000,108.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_400">
<ExpressionResult>400.000</ExpressionResult>
<FloatPosition>36.000,77.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry_450">
<ExpressionResult>450.000</ExpressionResult>
<FloatPosition>54.000,51.000</FloatPosition>
</NonlinearityEntry>
</NonlinearityTable>
</Rotation>
</Element>
<Element id="Element_BugTwo">
<Element id="Element_BugThree">
I have a general idea of what the mouse code should resemble, but just do not know what to put into the blanks in according to the bugs that I have.
First speed marking bug:
<MouseArea id="MouseArea">
<FloatPosition> ? </FloatPosition>
<Size> ? </Size>
<MouseArea id="MouseArea_BugOneWide">
<FloatPosition> ? </FloatPosition>
<Size> ? </Size>
<CursorType> ? </CursorType>
<Tooltip id="Tooltip">
<MetricId>TOOLTIPTEXT_AIRSPEED_KNOTS</MetricId>
<EnglishId>TOOLTIPTEXT_AIRSPEED_KNOTS</EnglishId>
<DefaultScript>% ? %</DefaultScript>
</Tooltip>
<MouseClick id="MouseClick">
<Script> ? </Script>
<ClickType> ? </ClickType>
<ClickRepeat>True</ClickRepeat>
</MouseClick>
</MouseArea>
</MouseArea>
Recency
Last edited:

