Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

color macro

Featured Replies

Hi,(fs9)Question because fs comp crash!Did anyone used a macro for a color argument, something like:Color="%('0x0000ff' '0x00ffff' '0x00b800' 3 (C:fs9traffic:advisory,number) case)"Code has to be repeated a lot of times.Is this possible:<Macro Name="color"> %('0x0000ff' '0x00ffff' '0x00b800' 3 (C:fs9traffic:advisory,number) case) </Macro>and then:Color="@color"Thanks,Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Yes, you can do that, at least in FSX (not tried in FS9).I use this macro in a HUD I'm working on - to cycle through the colors for the data displays:<Macro Name="Colors">%('Dark_Orange' 'Aqua' 'Med_Tan' 'Blue' 4 (L:HUDColor, number) case)</Macro>Sample of the syntax:<Text X = "80" Y = "18" Length = "10" FontSize = "18" Color = "@Colors" Luminous = "Yes">Hope this helps. Bob

Dell410, Core2Duo E6700, 2.66Ghz, 2GB ram, nVidia 7900GTX/512MB/195.62 driver, FSX/sp1, UTX USA, Fsgenesis

  • Author

Thanks,Will try it in fs9 and report back, when comp is flyable again.Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Commercial Member

I've used Bob's method too - FSX.Just for fun I'll post it.

<Macro Name="fontColor">%('0xe6a82e' '0x2ee66b' '0x22261f' 3 (L:BTS_DFfontColor,Number) case)</Macro>

I also use macros for anything I might need to change or tweak or make more legible.Here are some examples: Constant, G:Vars, Time, Blink code.

<Macro Name="fontSizeM">26</Macro><Macro Name="dragLast">G:Var6</Macro><Macro Name="time">P:Local Time,Seconds</Macro><Macro Name="blink1">(@time) 2 % 0.5 <</Macro>

Hi JanNot sure if you want to use this in formatted text. ie. <Color Value="Your colour case code"/>I could only get 1 instance of the above code to work per element 2 entries crashed the sim to desktop.Paul

Paul EGLD

  • Author

Thanks,Still grounded...The one for fontsize is new for me and seems quite useful.No, i don't use macro's for color value=... etc., only in de formattedtext arguments like fontsize=, font, adjust=, color= etc., anyway, that is what i'm gonna try.Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.