Add Character Hub button to main UI

This commit is contained in:
Loporrit
2025-06-28 15:47:57 +00:00
parent deffdf35a6
commit 3fc24fde5b
2 changed files with 9 additions and 5 deletions

View File

@@ -505,9 +505,9 @@ public class CompactUi : WindowMediatorSubscriberBase
ImGui.SameLine(); 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(); ImGui.SameLine();

View File

@@ -648,12 +648,18 @@ public class SettingsUi : WindowMediatorSubscriberBase
} }
bool logEvents = _configService.Current.LogEvents; 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.Current.LogEvents = logEvents;
_configService.Save(); _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; bool holdCombatApplication = _configService.Current.HoldCombatApplication;
if (ImGui.Checkbox("Hold application during combat", ref holdCombatApplication)) if (ImGui.Checkbox("Hold application during combat", ref holdCombatApplication))
{ {
@@ -747,8 +753,6 @@ public class SettingsUi : WindowMediatorSubscriberBase
Mediator.Publish(new UiToggleMessage(typeof(CharaDataHubUi))); 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(); ImGui.Separator();
_uiShared.BigText("Storage"); _uiShared.BigText("Storage");