feat: add option to hide when game ui is hidden

This commit is contained in:
Anna
2022-02-07 14:44:19 -05:00
parent a5597f1c84
commit 252498515a
5 changed files with 34 additions and 2 deletions
+1 -2
View File
@@ -88,10 +88,8 @@ internal sealed class PluginUi : IDisposable {
);
var uiBuilder = this.Plugin.Interface.UiBuilder;
uiBuilder.DisableAutomaticUiHide = true;
uiBuilder.DisableCutsceneUiHide = true;
uiBuilder.DisableGposeUiHide = true;
uiBuilder.DisableUserUiHide = true;
uiBuilder.BuildFonts += this.BuildFonts;
uiBuilder.Draw += this.Draw;
@@ -117,6 +115,7 @@ internal sealed class PluginUi : IDisposable {
}
private void Draw() {
this.Plugin.Interface.UiBuilder.DisableUserUiHide = !this.Plugin.Config.HideWhenUiHidden;
this.DefaultText = ImGui.GetStyle().Colors[(int) ImGuiCol.Text];
var font = this.RegularFont.HasValue;