2.0.0 #92
@@ -3851,9 +3851,9 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||||||
_uiShared.DrawHelpText("Choose which corner of the screen notifications appear in.");
|
_uiShared.DrawHelpText("Choose which corner of the screen notifications appear in.");
|
||||||
|
|
||||||
int offsetY = _configService.Current.NotificationOffsetY;
|
int offsetY = _configService.Current.NotificationOffsetY;
|
||||||
if (ImGui.SliderInt("Vertical Offset", ref offsetY, 0, 5000))
|
if (ImGui.SliderInt("Vertical Offset", ref offsetY, -2500, 2500))
|
||||||
{
|
{
|
||||||
_configService.Current.NotificationOffsetY = Math.Clamp(offsetY, 0, 5000);
|
_configService.Current.NotificationOffsetY = Math.Clamp(offsetY, -2500, 2500);
|
||||||
_configService.Save();
|
_configService.Save();
|
||||||
}
|
}
|
||||||
if (ImGui.IsItemClicked(ImGuiMouseButton.Right))
|
if (ImGui.IsItemClicked(ImGuiMouseButton.Right))
|
||||||
@@ -3866,9 +3866,9 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||||||
_uiShared.DrawHelpText("Distance from the top edge of the screen.");
|
_uiShared.DrawHelpText("Distance from the top edge of the screen.");
|
||||||
|
|
||||||
int offsetX = _configService.Current.NotificationOffsetX;
|
int offsetX = _configService.Current.NotificationOffsetX;
|
||||||
if (ImGui.SliderInt("Horizontal Offset", ref offsetX, 0, 2500))
|
if (ImGui.SliderInt("Horizontal Offset", ref offsetX, -2500, 2500))
|
||||||
{
|
{
|
||||||
_configService.Current.NotificationOffsetX = Math.Clamp(offsetX, 0, 2500);
|
_configService.Current.NotificationOffsetX = Math.Clamp(offsetX, -2500, 2500);
|
||||||
_configService.Save();
|
_configService.Save();
|
||||||
}
|
}
|
||||||
if (ImGui.IsItemClicked(ImGuiMouseButton.Right))
|
if (ImGui.IsItemClicked(ImGuiMouseButton.Right))
|
||||||
|
|||||||
Reference in New Issue
Block a user