notif offset placement, default slider yoinked from abel

This commit is contained in:
choco
2025-10-09 22:53:01 +02:00
parent 85ecea6391
commit f5339dc1d2
3 changed files with 49 additions and 20 deletions

View File

@@ -3232,6 +3232,27 @@ public class SettingsUi : WindowMediatorSubscriberBase
_uiShared.DrawHelpText("Maximum number of notifications that can be shown at once.");
ImGui.Spacing();
ImGui.TextUnformatted("Position");
int offsetY = _configService.Current.NotificationOffsetY;
if (ImGui.SliderInt("Vertical Offset", ref offsetY, 0, 500))
{
_configService.Current.NotificationOffsetY = offsetY;
_configService.Save();
}
if (ImGui.IsItemClicked(ImGuiMouseButton.Right))
{
_configService.Current.NotificationOffsetY = 50;
_configService.Save();
}
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Right click to reset to default (50).");
_uiShared.DrawHelpText("Move notifications down from the top-right corner. 0 aligns to the very top.");
_uiShared.ColoredSeparator(UIColors.Get("LightlessPurple"), 1.5f);
ImGui.TreePop();
}