try dis
This commit is contained in:
parent
5ab6fa69cd
commit
2c324f16f3
|
@ -12,5 +12,5 @@ public class Configuration : IPluginConfiguration {
|
|||
public bool DisableDeepDungeon = true;
|
||||
public bool RemoveGlow = true;
|
||||
public bool AutoViewer;
|
||||
public float ViewerOpacity = 1.0f;
|
||||
public float ViewerOpacity = 100.0f;
|
||||
}
|
||||
|
|
|
@ -23,7 +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:N3}%%");
|
||||
anyChanged |= ImGui.SliderFloat("Viewer opacity", ref this.Plugin.Config.ViewerOpacity, 0f, 100.0f, $"{this.Plugin.Config.ViewerOpacity:N3}%%");
|
||||
|
||||
if (anyChanged) {
|
||||
this.Plugin.SaveConfig();
|
||||
|
|
|
@ -22,7 +22,7 @@ internal class Viewer {
|
|||
}
|
||||
|
||||
ImGui.SetNextWindowSize(new Vector2(350, 175), ImGuiCond.FirstUseEver);
|
||||
ImGui.SetNextWindowBgAlpha(this.Plugin.Config.ViewerOpacity);
|
||||
ImGui.SetNextWindowBgAlpha(this.Plugin.Config.ViewerOpacity / 100.0f);
|
||||
if (!ImGui.Begin("Messages", ref this.Visible)) {
|
||||
ImGui.End();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue