diff --git a/LightlessSync/UI/SettingsUi.cs b/LightlessSync/UI/SettingsUi.cs index d04ee2c..3b87baa 100644 --- a/LightlessSync/UI/SettingsUi.cs +++ b/LightlessSync/UI/SettingsUi.cs @@ -140,6 +140,25 @@ public class SettingsUi : WindowMediatorSubscriberBase MinimumSize = new Vector2(800, 400), MaximumSize = new Vector2(800, 2000), }; + TitleBarButtons = new() + { + new TitleBarButton() + { + Icon = FontAwesomeIcon.FileAlt, + Click = (msg) => + { + Mediator.Publish(new UiToggleMessage(typeof(UpdateNotesUi))); + }, + IconOffset = new(2, 1), + ShowTooltip = () => + { + ImGui.BeginTooltip(); + ImGui.Text("View Update Notes"); + ImGui.EndTooltip(); + } + } + }; + Mediator.Subscribe(this, (_) => Toggle()); Mediator.Subscribe(this, (_) => { @@ -2339,9 +2358,7 @@ public class SettingsUi : WindowMediatorSubscriberBase _uiShared.ColoredSeparator(UIColors.Get("LightlessPurple"), 1.5f); ImGui.TreePop(); } - ImGui.Separator(); - } private void DrawPerformance() diff --git a/LightlessSync/UI/UpdateNotesUi.cs b/LightlessSync/UI/UpdateNotesUi.cs index 57dd173..f7544e1 100644 --- a/LightlessSync/UI/UpdateNotesUi.cs +++ b/LightlessSync/UI/UpdateNotesUi.cs @@ -589,6 +589,11 @@ public class UpdateNotesUi : WindowMediatorSubscriberBase IsOpen = false; } + + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip("You can view this window again in the settings (title menu)"); + } } }