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.

Dynamic SCALE in XML possible ??

Featured Replies

In the XML code:(G:Var1)I want to use a dynamic SCALE instead of a static value.I.o.w., read the Scale value from a variable instead of the numerical value "4.9".However, using gives an XML parsing error.Any suggestions ??Thanks, Rob Barendregt

Tried?It might not work at all. WithColor="%((L:EICAS lamp bright,number) 0x7f + 0x100 * )%"I got at last a dimmable String.Arne Bartels

Tried that too but no luck.doesn't give a syntax error, but always give Scale value "0".Rob

Color="%((L:EICAS lamp bright,number) 0x7f + 0x100 * )%"Hi Arne, very interesting. This works great. Gives green as the colour. Is there a way to chose different colours?Nick.

Any colour you want (RGB). It might have been simpler to understand by using something like:Color="%( 0x00ff00 (L:brightness,number) * near )%"With (L:brightness,number) between 0.0 (dark) and 1.0 (full lit). 0x00ff00 the RGB colour value (0xff = 255 for green part, 0 for the others).Arne Bartels

I suspected something like this, some parameters are simply not dynamical. After all you can try to use and do a bit of trickery in the corresponding line.Arne Bartels

Actually I also needed it for the "X" and "Y" position, for which it doesn't work either.But as you said: it can all be easily solved by including correct scale and offset calculation in the line.Why didn't I think of that ???Sometimes solutions are just too trivial :-) :-)Thanks for the help.Cheers, Rob

Hi Arne,I'm producing zero to one using a slider gauge with drag function, (M:X) 100 / 0 max 1 min 1 r - Adjust gauge brightness (%((L:bright,number) 100 *)%!3d!%%)@BrightClick (>L:bright,number)Color="%(0x00ff00 (L:bright,number) * near)%" works great, but the colour during drag tends to change through various shades of yellow and red. How can we keep the colour green at all brightness levels.Also, I change the line to Color="%(0xff0000 (L:bright,number) * near)%" expecting red but the text does not display. Same with 0x0000ff, expecting blue.Help!Nick.

Trying out before posting would have been a better idea I think. Don't have the time for serious trying out though. I'm away on business the next days. Maybe you work with single "colour channels", and stick them together later? A number between 0x00 and 0xff multiplied by 0x01 is blue, multiplied by 0x100 is green, multiplied by 0x10000 is red and then adding all chennels together.Arne Bartels

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.