diff --git a/HellionChat/Configuration.cs b/HellionChat/Configuration.cs index 9deb59c..588b8d9 100755 --- a/HellionChat/Configuration.cs +++ b/HellionChat/Configuration.cs @@ -231,6 +231,7 @@ public class Configuration : IPluginConfiguration public bool CanResize = true; public bool ShowTitleBar; public bool ShowPopOutTitleBar = true; + public bool ShowStatusBar = true; public bool DatabaseBattleMessages; public bool FilterIncludePreviousSessions; public bool SortAutoTranslate; diff --git a/HellionChat/Resources/HellionStrings.Designer.cs b/HellionChat/Resources/HellionStrings.Designer.cs index 864abd8..2cc8607 100644 --- a/HellionChat/Resources/HellionStrings.Designer.cs +++ b/HellionChat/Resources/HellionStrings.Designer.cs @@ -428,6 +428,8 @@ internal class HellionStrings internal static string Settings_Window_TabPlacement_Description => Get(nameof(Settings_Window_TabPlacement_Description)); internal static string Settings_Window_TitleBar_Name => Get(nameof(Settings_Window_TitleBar_Name)); internal static string Settings_Window_PopoutTitleBar_Name => Get(nameof(Settings_Window_PopoutTitleBar_Name)); + internal static string Settings_Window_StatusBar_Name => Get(nameof(Settings_Window_StatusBar_Name)); + internal static string Settings_SuggestedBy => Get(nameof(Settings_SuggestedBy)); internal static string Settings_Window_AllowMove_Name => Get(nameof(Settings_Window_AllowMove_Name)); internal static string Settings_Window_AllowResize_Name => Get(nameof(Settings_Window_AllowResize_Name)); internal static string Settings_Window_SidebarThreshold_Name => Get(nameof(Settings_Window_SidebarThreshold_Name)); diff --git a/HellionChat/Resources/HellionStrings.ca.resx b/HellionChat/Resources/HellionStrings.ca.resx index 3415598..5987e10 100644 --- a/HellionChat/Resources/HellionStrings.ca.resx +++ b/HellionChat/Resources/HellionStrings.ca.resx @@ -1223,6 +1223,12 @@ Barra de títol als pop-outs + + Mostra la barra d'estat + + + Suggerit per {0} + Permet moure diff --git a/HellionChat/Resources/HellionStrings.cs.resx b/HellionChat/Resources/HellionStrings.cs.resx index a699769..8bb6034 100644 --- a/HellionChat/Resources/HellionStrings.cs.resx +++ b/HellionChat/Resources/HellionStrings.cs.resx @@ -1222,6 +1222,12 @@ Záhlaví u pop-out oken + + Zobrazit stavový řádek + + + Návrh od {0} + Povolit přesouvání diff --git a/HellionChat/Resources/HellionStrings.da.resx b/HellionChat/Resources/HellionStrings.da.resx index 1645548..b1b22a7 100644 --- a/HellionChat/Resources/HellionStrings.da.resx +++ b/HellionChat/Resources/HellionStrings.da.resx @@ -1222,6 +1222,12 @@ Vis titellinje for pop-out-vinduer + + Vis statuslinje + + + Foreslået af {0} + Tillad flytning diff --git a/HellionChat/Resources/HellionStrings.de.resx b/HellionChat/Resources/HellionStrings.de.resx index ded6a57..f2c17c2 100644 --- a/HellionChat/Resources/HellionStrings.de.resx +++ b/HellionChat/Resources/HellionStrings.de.resx @@ -1217,6 +1217,12 @@ Titelleiste für Pop-Outs + + Statusleiste anzeigen + + + Vorgeschlagen von {0} + Verschieben erlauben diff --git a/HellionChat/Resources/HellionStrings.el.resx b/HellionChat/Resources/HellionStrings.el.resx index 50ff501..f77cb40 100644 --- a/HellionChat/Resources/HellionStrings.el.resx +++ b/HellionChat/Resources/HellionStrings.el.resx @@ -1222,6 +1222,12 @@ Εμφάνιση γραμμής τίτλου στα αποσπώμενα παράθυρα + + Εμφάνιση γραμμής κατάστασης + + + Πρόταση από {0} + Να επιτρέπεται η μετακίνηση diff --git a/HellionChat/Resources/HellionStrings.es.resx b/HellionChat/Resources/HellionStrings.es.resx index bdddec2..3135921 100644 --- a/HellionChat/Resources/HellionStrings.es.resx +++ b/HellionChat/Resources/HellionStrings.es.resx @@ -1223,6 +1223,12 @@ Barra de título en pop-outs + + Mostrar la barra de estado + + + Sugerido por {0} + Permitir mover diff --git a/HellionChat/Resources/HellionStrings.fi.resx b/HellionChat/Resources/HellionStrings.fi.resx index 29aa6f4..ac26614 100644 --- a/HellionChat/Resources/HellionStrings.fi.resx +++ b/HellionChat/Resources/HellionStrings.fi.resx @@ -1222,6 +1222,12 @@ Näytä otsikkopalkki irrotetuissa ikkunoissa + + Näytä tilarivi + + + Ehdottanut {0} + Salli siirtäminen diff --git a/HellionChat/Resources/HellionStrings.fr.resx b/HellionChat/Resources/HellionStrings.fr.resx index 68df02f..38a5664 100644 --- a/HellionChat/Resources/HellionStrings.fr.resx +++ b/HellionChat/Resources/HellionStrings.fr.resx @@ -1223,6 +1223,12 @@ Afficher la barre de titre des fenêtres détachées + + Afficher la barre d'état + + + Suggéré par {0} + Autoriser le déplacement diff --git a/HellionChat/Resources/HellionStrings.hu.resx b/HellionChat/Resources/HellionStrings.hu.resx index 7dd5236..74059c1 100644 --- a/HellionChat/Resources/HellionStrings.hu.resx +++ b/HellionChat/Resources/HellionStrings.hu.resx @@ -1222,6 +1222,12 @@ Címsor a pop-out ablakoknál + + Állapotsor megjelenítése + + + Javasolta: {0} + Mozgatás engedélyezése diff --git a/HellionChat/Resources/HellionStrings.it.resx b/HellionChat/Resources/HellionStrings.it.resx index 0f5f94c..128b4c5 100644 --- a/HellionChat/Resources/HellionStrings.it.resx +++ b/HellionChat/Resources/HellionStrings.it.resx @@ -1223,6 +1223,12 @@ Barra del titolo nei pop-out + + Mostra la barra di stato + + + Suggerito da {0} + Consenti lo spostamento diff --git a/HellionChat/Resources/HellionStrings.ja.resx b/HellionChat/Resources/HellionStrings.ja.resx index a6157c2..3de8024 100644 --- a/HellionChat/Resources/HellionStrings.ja.resx +++ b/HellionChat/Resources/HellionStrings.ja.resx @@ -1223,6 +1223,12 @@ ポップアウトのタイトルバーを表示 + + ステータスバーを表示 + + + 提案者: {0} + 移動を許可 diff --git a/HellionChat/Resources/HellionStrings.ko.resx b/HellionChat/Resources/HellionStrings.ko.resx index 3bfaaa8..20b8d8a 100644 --- a/HellionChat/Resources/HellionStrings.ko.resx +++ b/HellionChat/Resources/HellionStrings.ko.resx @@ -1223,6 +1223,12 @@ 팝아웃 창의 제목 표시줄 보이기 + + 상태 표시줄 보이기 + + + 제안자: {0} + 이동 허용 diff --git a/HellionChat/Resources/HellionStrings.nb.resx b/HellionChat/Resources/HellionStrings.nb.resx index acb96bf..c8d6012 100644 --- a/HellionChat/Resources/HellionStrings.nb.resx +++ b/HellionChat/Resources/HellionStrings.nb.resx @@ -1222,6 +1222,12 @@ Tittellinje for pop-out-vinduer + + Vis statuslinje + + + Foreslått av {0} + Tillat flytting diff --git a/HellionChat/Resources/HellionStrings.nl.resx b/HellionChat/Resources/HellionStrings.nl.resx index 330694e..5ea070b 100644 --- a/HellionChat/Resources/HellionStrings.nl.resx +++ b/HellionChat/Resources/HellionStrings.nl.resx @@ -1223,6 +1223,12 @@ Titelbalk voor pop-outvensters + + Statusbalk tonen + + + Voorgesteld door {0} + Verplaatsen toestaan diff --git a/HellionChat/Resources/HellionStrings.pl.resx b/HellionChat/Resources/HellionStrings.pl.resx index eb05fb7..a613843 100644 --- a/HellionChat/Resources/HellionStrings.pl.resx +++ b/HellionChat/Resources/HellionStrings.pl.resx @@ -1222,6 +1222,12 @@ Pokaż pasek tytułu w oknach odłączonych + + Pokaż pasek stanu + + + Zaproponowane przez {0} + Zezwól na przesuwanie diff --git a/HellionChat/Resources/HellionStrings.pt-BR.resx b/HellionChat/Resources/HellionStrings.pt-BR.resx index 7acf917..7f85760 100644 --- a/HellionChat/Resources/HellionStrings.pt-BR.resx +++ b/HellionChat/Resources/HellionStrings.pt-BR.resx @@ -1223,6 +1223,12 @@ Mostrar barra de título nas janelas destacadas + + Mostrar barra de status + + + Sugerido por {0} + Permitir mover diff --git a/HellionChat/Resources/HellionStrings.pt-PT.resx b/HellionChat/Resources/HellionStrings.pt-PT.resx index b90cd20..6d3d176 100644 --- a/HellionChat/Resources/HellionStrings.pt-PT.resx +++ b/HellionChat/Resources/HellionStrings.pt-PT.resx @@ -1222,6 +1222,12 @@ Mostrar barra de título nas janelas destacadas + + Mostrar barra de estado + + + Sugerido por {0} + Permitir mover diff --git a/HellionChat/Resources/HellionStrings.resx b/HellionChat/Resources/HellionStrings.resx index e9afa08..3ec1abd 100644 --- a/HellionChat/Resources/HellionStrings.resx +++ b/HellionChat/Resources/HellionStrings.resx @@ -1234,6 +1234,12 @@ Show title bar for pop-outs + + Show status bar + + + Suggested by {0} + Allow movement diff --git a/HellionChat/Resources/HellionStrings.ro.resx b/HellionChat/Resources/HellionStrings.ro.resx index 7f559e1..693413b 100644 --- a/HellionChat/Resources/HellionStrings.ro.resx +++ b/HellionChat/Resources/HellionStrings.ro.resx @@ -1223,6 +1223,12 @@ Afișează bara de titlu la ferestrele desprinse + + Afișează bara de stare + + + Sugerat de {0} + Permite mutarea diff --git a/HellionChat/Resources/HellionStrings.ru.resx b/HellionChat/Resources/HellionStrings.ru.resx index 66176c7..e29d887 100644 --- a/HellionChat/Resources/HellionStrings.ru.resx +++ b/HellionChat/Resources/HellionStrings.ru.resx @@ -1223,6 +1223,12 @@ Показывать заголовок в отдельных окнах + + Показывать строку состояния + + + Предложено пользователем {0} + Разрешить перемещение diff --git a/HellionChat/Resources/HellionStrings.sv.resx b/HellionChat/Resources/HellionStrings.sv.resx index 2eeb224..5804e9a 100644 --- a/HellionChat/Resources/HellionStrings.sv.resx +++ b/HellionChat/Resources/HellionStrings.sv.resx @@ -1223,6 +1223,12 @@ Namnlist för pop-out-fönster + + Visa statusfält + + + Föreslagen av {0} + Tillåt flytt diff --git a/HellionChat/Resources/HellionStrings.tr.resx b/HellionChat/Resources/HellionStrings.tr.resx index c9691da..8f74d9d 100644 --- a/HellionChat/Resources/HellionStrings.tr.resx +++ b/HellionChat/Resources/HellionStrings.tr.resx @@ -1222,6 +1222,12 @@ Ayrık pencereler için başlık çubuğunu göster + + Durum çubuğunu göster + + + {0} tarafından önerildi + Taşımaya izin ver diff --git a/HellionChat/Resources/HellionStrings.uk.resx b/HellionChat/Resources/HellionStrings.uk.resx index c82e582..59f06b3 100644 --- a/HellionChat/Resources/HellionStrings.uk.resx +++ b/HellionChat/Resources/HellionStrings.uk.resx @@ -1222,6 +1222,12 @@ Показувати рядок заголовка у відокремлених вікнах + + Показувати рядок стану + + + Запропоновано користувачем {0} + Дозволити переміщення diff --git a/HellionChat/Resources/HellionStrings.zh-Hans.resx b/HellionChat/Resources/HellionStrings.zh-Hans.resx index f560f87..4747489 100644 --- a/HellionChat/Resources/HellionStrings.zh-Hans.resx +++ b/HellionChat/Resources/HellionStrings.zh-Hans.resx @@ -1223,6 +1223,12 @@ 显示弹出窗口的标题栏 + + 显示状态栏 + + + 由 {0} 建议 + 允许移动 diff --git a/HellionChat/Resources/HellionStrings.zh-Hant.resx b/HellionChat/Resources/HellionStrings.zh-Hant.resx index b43ac49..ba412e6 100644 --- a/HellionChat/Resources/HellionStrings.zh-Hant.resx +++ b/HellionChat/Resources/HellionStrings.zh-Hant.resx @@ -1223,6 +1223,12 @@ 顯示彈出視窗的標題列 + + 顯示狀態列 + + + 由 {0} 建議 + 允許移動 diff --git a/HellionChat/Ui/Components/Settings/Tabs/WindowTab.cs b/HellionChat/Ui/Components/Settings/Tabs/WindowTab.cs index 46ff419..26cef5d 100644 --- a/HellionChat/Ui/Components/Settings/Tabs/WindowTab.cs +++ b/HellionChat/Ui/Components/Settings/Tabs/WindowTab.cs @@ -71,6 +71,15 @@ internal sealed class WindowTab () => Plugin.Config.ShowPopOutTitleBar, v => Plugin.Config.ShowPopOutTitleBar = v ); + // Tester credit on the row itself: the people who propose a feature + // should see their name where the feature lives, not in a changelog. + _w.ToggleRow( + ImGui.GetID("window.style.statusbar"u8), + HellionStrings.Settings_Window_StatusBar_Name, + string.Format(HellionStrings.Settings_SuggestedBy, "Ashy ^.^"), + () => Plugin.Config.ShowStatusBar, + v => Plugin.Config.ShowStatusBar = v + ); _w.ToggleRow( ImGui.GetID("window.style.hidebutton"u8), Language.Options_ShowHideButton_Name, diff --git a/HellionChat/Ui/Windows/MainWindow.cs b/HellionChat/Ui/Windows/MainWindow.cs index 8710d2d..e20e1b1 100644 --- a/HellionChat/Ui/Windows/MainWindow.cs +++ b/HellionChat/Ui/Windows/MainWindow.cs @@ -368,7 +368,9 @@ internal sealed class MainWindow : Window, IFocusableChatWindow if (_activeTab is { } seenTab) seenTab.Unread = 0; - var statusHeight = Components.StatusBar.Height; + // A child height of 0 means "fill the remaining space" in ImGui, so hiding + // the bar lets the body take the whole window without a second code path. + var statusHeight = Plugin.Config.ShowStatusBar ? Components.StatusBar.Height : 0f; using (var body = ImRaii.Child("##hellion-body", new Vector2(-1f, -statusHeight))) { @@ -376,7 +378,8 @@ internal sealed class MainWindow : Window, IFocusableChatWindow DrawBody(tabs); } - _status.Draw(_activeTab, tabs); + if (Plugin.Config.ShowStatusBar) + _status.Draw(_activeTab, tabs); } private void DrawBody(IReadOnlyList tabs)