From 3fc24fde5b311b5fdd24f83e8ba9a4ddf624df63 Mon Sep 17 00:00:00 2001 From: Loporrit <141286461+loporrit@users.noreply.github.com> Date: Sat, 28 Jun 2025 15:47:57 +0000 Subject: [PATCH] Add Character Hub button to main UI --- MareSynchronos/UI/CompactUI.cs | 4 ++-- MareSynchronos/UI/SettingsUi.cs | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/MareSynchronos/UI/CompactUI.cs b/MareSynchronos/UI/CompactUI.cs index 6c8f5cd..fbb7656 100644 --- a/MareSynchronos/UI/CompactUI.cs +++ b/MareSynchronos/UI/CompactUI.cs @@ -505,9 +505,9 @@ public class CompactUi : WindowMediatorSubscriberBase ImGui.SameLine(); - if (_uiSharedService.IconTextButton(FontAwesomeIcon.NotesMedical, "Event Viewer", bottomButtonWidth)) + if (_uiSharedService.IconTextButton(FontAwesomeIcon.Running, "Character Data Hub", bottomButtonWidth)) { - Mediator.Publish(new UiToggleMessage(typeof(EventViewerUI))); + Mediator.Publish(new UiToggleMessage(typeof(CharaDataHubUi))); } ImGui.SameLine(); diff --git a/MareSynchronos/UI/SettingsUi.cs b/MareSynchronos/UI/SettingsUi.cs index 0ee230e..0140755 100644 --- a/MareSynchronos/UI/SettingsUi.cs +++ b/MareSynchronos/UI/SettingsUi.cs @@ -648,12 +648,18 @@ public class SettingsUi : WindowMediatorSubscriberBase } bool logEvents = _configService.Current.LogEvents; - if (ImGui.Checkbox("Log Event Viewer Data", ref logEvents)) + if (ImGui.Checkbox("Log Event Viewer data to disk", ref logEvents)) { _configService.Current.LogEvents = logEvents; _configService.Save(); } + ImGui.SameLine(300.0f); + if (_uiShared.IconTextButton(FontAwesomeIcon.NotesMedical, "Open Event Viewer")) + { + Mediator.Publish(new UiToggleMessage(typeof(EventViewerUI))); + } + bool holdCombatApplication = _configService.Current.HoldCombatApplication; if (ImGui.Checkbox("Hold application during combat", ref holdCombatApplication)) { @@ -747,8 +753,6 @@ public class SettingsUi : WindowMediatorSubscriberBase Mediator.Publish(new UiToggleMessage(typeof(CharaDataHubUi))); } - UiSharedService.TextWrapped("Note: this entry will be removed in the near future. Please use the Main UI to open the Character Data Hub."); - ImGuiHelpers.ScaledDummy(5); ImGui.Separator(); _uiShared.BigText("Storage");