Added The ability to override the plugin style

This commit is contained in:
Spider
2024-04-09 17:29:35 -05:00
parent 9feb70d262
commit 9412711050
3 changed files with 37 additions and 0 deletions
+19
View File
@@ -1,5 +1,6 @@
using ChatTwo.Resources;
using ChatTwo.Util;
using Dalamud.Interface.Style;
using ImGuiNET;
namespace ChatTwo.Ui.SettingsTabs;
@@ -89,6 +90,24 @@ internal sealed class Display : ISettingsTab {
ImGuiUtil.OptionCheckbox(ref Mutable.ShowPopOutTitleBar, Language.Options_ShowPopOutTitleBar_Name);
ImGui.Spacing();
ImGui.Checkbox("Override Style", ref Mutable.OverrideStyle);
ImGui.Spacing();
if (Mutable.OverrideStyle)
{
var currentStyle = Mutable.ChosenStyle.Equals("") ? StyleModel.GetConfiguredStyle().Name : Mutable.ChosenStyle;
if (ImGui.BeginCombo("REMOVEME Styles", currentStyle)) {
foreach (var style in StyleModel.GetConfiguredStyles()) {
if (ImGui.Selectable(style.Name, this.Mutable.ChosenStyle == style.Name)) {
Mutable.ChosenStyle = style.Name;
}
}
ImGui.EndCombo();
}
}
ImGui.Spacing();
ImGui.PopTextWrapPos();
}
}