opacity
This commit is contained in:
parent
d7df600ddc
commit
bb4100c738
|
@ -12,4 +12,5 @@ public class Configuration : IPluginConfiguration {
|
|||
public bool DisableDeepDungeon = true;
|
||||
public bool RemoveGlow = true;
|
||||
public bool AutoViewer;
|
||||
public float ViewerOpacity = 1.0f;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue