You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticfinalHudElementInfo<CustomImage> INFO = newHudElementInfo<>(Reaper.HUD_GROUP, "custom-image", "Displays a custom image", CustomImage::new);
@@ -29,9 +31,9 @@ public enum LogoMode {File, URL}
29
31
publicfinalSetting<LogoMode> logoMode = sgGeneral.add(newEnumSetting.Builder<LogoMode>().name("logo").description("Which logo to use.").defaultValue(LogoMode.File).onChanged(fileName1 -> setTexture()).build());
30
32
privatefinalSetting<String> fileName = sgGeneral.add(newStringSetting.Builder().name("file-name").description("The file to load the texture from").defaultValue("cope.png").visible(() -> logoMode.get() == LogoMode.File).onChanged(fileName1 -> setTexture()).build());
31
33
privatefinalSetting<String> url = sgGeneral.add(newStringSetting.Builder().name("url").description("The URL to load the texture from").defaultValue("cope.com").visible(() -> logoMode.get() == LogoMode.URL).onChanged(fileName2 -> setTexture()).build());
publicfinalSetting<Boolean> update = sgGeneral.add(newBoolSetting.Builder().name("refresh").description("Reload the image after a set period of time").defaultValue(false).visible(() -> logoMode.get() == LogoMode.URL).build());
0 commit comments