compactui settings button peepoo #38

Merged
choco merged 3 commits from ui-redesign into 1.12.0 2025-09-30 14:15:53 +00:00
2 changed files with 3 additions and 17 deletions

View File

@@ -109,21 +109,6 @@ public class CompactUi : WindowMediatorSubscriberBase
AllowClickthrough = false; AllowClickthrough = false;
TitleBarButtons = new() TitleBarButtons = new()
{ {
new TitleBarButton()
{
Icon = FontAwesomeIcon.Cog,
Click = (msg) =>
{
Mediator.Publish(new UiToggleMessage(typeof(SettingsUi)));
},
IconOffset = new(2,1),
ShowTooltip = () =>
{
ImGui.BeginTooltip();
ImGui.Text("Open Lightless Settings");
ImGui.EndTooltip();
}
},
new TitleBarButton() new TitleBarButton()
{ {
Icon = FontAwesomeIcon.Book, Icon = FontAwesomeIcon.Book,

View File

@@ -1,4 +1,4 @@
using Dalamud.Bindings.ImGui; using Dalamud.Bindings.ImGui;
using Dalamud.Interface; using Dalamud.Interface;
using Dalamud.Interface.Utility; using Dalamud.Interface.Utility;
using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Utility.Raii;
@@ -148,11 +148,12 @@ public class TopTabMenu
ImGui.SameLine(); ImGui.SameLine();
using (ImRaii.PushFont(UiBuilder.IconFont)) using (ImRaii.PushFont(UiBuilder.IconFont))
{ {
var x = ImGui.GetCursorScreenPos();
if (ImGui.Button(FontAwesomeIcon.Cog.ToIconString(), buttonSize)) if (ImGui.Button(FontAwesomeIcon.Cog.ToIconString(), buttonSize))
{ {
_lightlessMediator.Publish(new UiToggleMessage(typeof(SettingsUi))); _lightlessMediator.Publish(new UiToggleMessage(typeof(SettingsUi)));
} }
ImGui.SameLine();
} }
UiSharedService.AttachToolTip("Open Lightless Settings"); UiSharedService.AttachToolTip("Open Lightless Settings");