- Messages
- 1,451
- Country

Hello good people
I am implementing a nice visual effect where the heading bug changes its color depending if it is in "command mode" or not. The change is controled
with
Here is how it works:
It works like it is now, but I am wondering if the "Leave" mouse flag works for FS9. So far, nothing has proven that it is.
Have an excellent day/evening/night wherever you are.
In advance, thank you all!
Sergio.
I am implementing a nice visual effect where the heading bug changes its color depending if it is in "command mode" or not. The change is controled
with
(L:MD_900_visible_HSI_Bug,bool).Here is how it works:
HTML:
//---------------------heading bug commanded---------------------------------------
<Element>
<Position X="300" Y="309"/>
<Visible>(L:MD_900_visible_HSI_Bug,bool)</Visible>
<Image Name="900_digital_hsi_heading_bug_commanded.bmp" PointsTo="North">
<Axis X="21" Y="219"/>
</Image>
<Rotate>
<Value>(A:Autopilot heading lock dir,degrees) d (A:Plane heading degrees gyro,degrees) 90 + - dgrd</Value>
</Rotate>
</Element>
//---------------------heading bug not commanded---------------------------------------
<Element>
<Position X="300" Y="309"/>
<Visible>(L:MD_900_visible_HSI_Bug,bool) !</Visible>
<Image Name="900_digital_hsi_heading_bug.bmp" PointsTo="North">
<Axis X="21" Y="219"/>
</Image>
<Rotate>
<Value>(A:Autopilot heading lock dir,degrees) d (A:Plane heading degrees gyro,degrees) 90 + - dgrd</Value>
</Rotate>
</Element>
HTML:
<!-- M O U S E E V E N T L O G I C -->
<Mouse>
<!-- It only enables the "Visible" or "Invisible" condition for the heading bug -->
<Area Left="0" Top="0" Width="600" Height="618">
<Click Kind="LeftSingle+RightSingle+LeftRelease+RightRelease+WheelUp+WheelDown+Leave" Repeat="Yes">
(M:Event) 'LeftSingle' scmp 0 == (M:Event) 'WheelUp' scmp 0 == or
if{
1 (>L:MD_900_visible_HSI_Bug,bool)
(L:HDG_Knob_Anim_Control,number) ++ (>L:HDG_Knob_Anim_Control,number)
(A:AUTOPILOT HEADING LOCK DIR, degrees) ++ dnor (>K:HEADING_BUG_SET)
1 (>L:MD_900_Rotary_Click, number)
}
(M:Event) 'LeftRelease' scmp 0 == (M:Event) 'RightRelease' scmp 0 == or
(M:Event) 'Leave' scmp 0 == or
if{
0 (>L:MD_900_visible_HSI_Bug,bool)
}
(M:Event) 'RightSingle' scmp 0 == (M:Event) 'WheelDown' scmp 0 == or
if{
1 (>L:MD_900_visible_HSI_Bug,bool)
(L:HDG_Knob_Anim_Control,number) -- (>L:HDG_Knob_Anim_Control,number)
(A:AUTOPILOT HEADING LOCK DIR, degrees) -- dnor (>K:HEADING_BUG_SET)
1 (>L:MD_900_Rotary_Click, number)
}
</Click>
</Area>
</Mouse>
It works like it is now, but I am wondering if the "Leave" mouse flag works for FS9. So far, nothing has proven that it is.
Have an excellent day/evening/night wherever you are.
In advance, thank you all!
Sergio.
Last edited:
