Shimmer

Shimmer

6.6k Downloads

Colored Light Monitor is always enabled in dev environment

AlexNijjar opened this issue · 4 comments

commented

I'm adding Shimmer compat to my mod, Ad Astra. I've added it to my dev environment; however, every time I launch the game, the colored light monitor overlay appears. I'm able to temporarily get rid of it by running the /shimmer coloredLightMonitor command. But this overlay will reappear every time I restart the game.

Looking at the code, it appears that this overlay is always enabled by default in the dev environment:

public static boolean enable = Services.PLATFORM.isDevelopmentEnvironment();

This is fine for Shimmer development, but is problematic for any modder that adds Shimmer to their dev environment. It should either always be disabled by default, or be saved to a config somewhere so that I can close it once and not have to see it again.

Screenshot 2023-12-29 at 3 41 07 AM
commented

image

do it anywhere in you dev project

commented

Sorry, what does this mean? Are you saying that I should manually disable the monitor by setting LightCounter.Render.enable to false somewhere in my project?

yeah

in your dev

public init() {
    if (isDev() && isShimmerLoaded()) {
        LightCounter.Render.enable = false;
    }
}
commented

btw, a really cool mod you have done

commented

Sorry, what does this mean? Are you saying that I should manually disable the monitor by setting LightCounter.Render.enable to false somewhere in my project?