February 15, 201115 yr 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..."
February 15, 201115 yr 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
February 15, 201115 yr Author Thanks,Will try it in fs9 and report back, when comp is flyable again.Jan Jan "Beatus ille qui procul negotiis..."
February 16, 201115 yr 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>
February 16, 201115 yr 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
February 16, 201115 yr 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