This commit is contained in:
Anna 2022-09-05 06:08:58 -04:00
parent d7df600ddc
commit bb4100c738
3 changed files with 3 additions and 0 deletions

View File

@ -12,4 +12,5 @@ public class Configuration : IPluginConfiguration {
public bool DisableDeepDungeon = true;
public bool RemoveGlow = true;
public bool AutoViewer;
public float ViewerOpacity = 1.0f;
}

View File

@ -23,6 +23,7 @@ internal class Settings : ITab {
anyChanged |= vfx |= ImGui.Checkbox("Disable in Deep Dungeons", ref this.Plugin.Config.DisableDeepDungeon);
anyChanged |= vfx |= ImGui.Checkbox("Remove glow effect from signs", ref this.Plugin.Config.RemoveGlow);
anyChanged |= ImGui.Checkbox("Open the viewer automatically when near a sign", ref this.Plugin.Config.AutoViewer);
anyChanged |= ImGui.SliderFloat("Viewer opacity", ref this.Plugin.Config.ViewerOpacity, 0.1f, 1.0f, $"{this.Plugin.Config.ViewerOpacity * 100.0f}%%");
if (anyChanged) {
this.Plugin.SaveConfig();

View File

@ -22,6 +22,7 @@ internal class Viewer {
}
ImGui.SetNextWindowSize(new Vector2(350, 175), ImGuiCond.FirstUseEver);
ImGui.SetNextWindowBgAlpha(this.Plugin.Config.ViewerOpacity);
if (!ImGui.Begin("Messages", ref this.Visible)) {
ImGui.End();
return;