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.

Better way to do this? Making a light icon BRIGHT

Featured Replies

I got panel light functional using the basic structure:MAKE_ICON( ... BMP_LIGHT_OFF, // Off bmp, followed by on bmp IMAGE_USE_ERASE, // Set bright or not bright in callback ... 2, // Number of icons)MAKE_STATIC // LUMINUOUSTo get the on bmp BRIGHT without the off bmp looking bright I set it in the callback: // Make BRIGHT pelement_icon->image_flags = pelement_icon->image_flags | IMAGE_USE_BRIGHT;and: // Make !BRIGHT pelement_icon->image_flags = pelement_icon->image_flags & ~IMAGE_USE_BRIGHT;which works fine. Since the background can be the off condition, I thought perhaps I should just use 1 icon, and set it to bright, but then I realized that it would always be on, haha.So, seems that only other way to do this would be to just use a BMP_LIGHT_OFF which is just pure RGB(0, 0, 0) black and then turn on the USE_IMAGE_TRANSPARENCY.Opinions?Seems this approach would improve performance by eliminating the need to programatically change the image flags.Patrick

You can either paint BMP_LIGHT_OFF in RGB(0,0,0), or use BMP_LIGHT_ON in the macro and mace sure the callback returns -1 in off state. For MAKE_ICONs it's the same as hide the image.

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.