poo
This commit is contained in:
parent
9c5841472f
commit
aef3dd0778
|
@ -13,6 +13,7 @@ public class Configuration : IPluginConfiguration {
|
|||
public bool RemoveGlow = true;
|
||||
public bool AutoViewer;
|
||||
public bool AutoViewerClose = true;
|
||||
public bool HideTitlebar;
|
||||
public float ViewerOpacity = 100.0f;
|
||||
public int DefaultGlyph = 3;
|
||||
}
|
||||
|
|
|
@ -27,6 +27,13 @@ internal class Settings : ITab {
|
|||
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.Checkbox("Close the viewer automatically when no signs are nearby", ref this.Plugin.Config.AutoViewerClose);
|
||||
|
||||
if (this.Plugin.Config.AutoViewerClose) {
|
||||
ImGui.TreePush();
|
||||
anyChanged |= ImGui.Checkbox("Hide viewer titlebar", ref this.Plugin.Config.HideTitlebar);
|
||||
ImGui.TreePop();
|
||||
}
|
||||
|
||||
anyChanged |= ImGui.SliderFloat("Viewer opacity", ref this.Plugin.Config.ViewerOpacity, 0f, 100.0f, $"{this.Plugin.Config.ViewerOpacity:N3}%%");
|
||||
|
||||
var glyph = this.Plugin.Config.DefaultGlyph + 1;
|
||||
|
|
|
@ -21,9 +21,12 @@ internal class Viewer {
|
|||
return;
|
||||
}
|
||||
|
||||
var flags = this.Plugin.Config.HideTitlebar
|
||||
? ImGuiWindowFlags.NoTitleBar
|
||||
: ImGuiWindowFlags.None;
|
||||
ImGui.SetNextWindowSize(new Vector2(350, 175), ImGuiCond.FirstUseEver);
|
||||
ImGui.SetNextWindowBgAlpha(this.Plugin.Config.ViewerOpacity / 100.0f);
|
||||
if (!ImGui.Begin("Messages", ref this.Visible)) {
|
||||
if (!ImGui.Begin("Messages", ref this.Visible, flags)) {
|
||||
ImGui.End();
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -106,6 +106,7 @@ words:
|
|||
- au ra
|
||||
- hrothgar
|
||||
- viera
|
||||
- roegadyn
|
||||
|
||||
- name: Jobs
|
||||
words:
|
||||
|
|
Loading…
Reference in New Issue
Block a user