diff --git a/client/Configuration.cs b/client/Configuration.cs index d0a8d84..23eede1 100644 --- a/client/Configuration.cs +++ b/client/Configuration.cs @@ -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; } diff --git a/client/Ui/MainWindowTabs/Settings.cs b/client/Ui/MainWindowTabs/Settings.cs index f3f5ae3..08ad04e 100644 --- a/client/Ui/MainWindowTabs/Settings.cs +++ b/client/Ui/MainWindowTabs/Settings.cs @@ -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; diff --git a/client/Ui/Viewer.cs b/client/Ui/Viewer.cs index a140091..e1ed00a 100644 --- a/client/Ui/Viewer.cs +++ b/client/Ui/Viewer.cs @@ -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; } diff --git a/server/packs/ffxiv.yaml b/server/packs/ffxiv.yaml index cc0ac76..aee9c28 100644 --- a/server/packs/ffxiv.yaml +++ b/server/packs/ffxiv.yaml @@ -106,6 +106,7 @@ words: - au ra - hrothgar - viera + - roegadyn - name: Jobs words: