mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 04:34:16 +01:00
enforce limits on alpha slider (#2412)
This commit is contained in:
parent
c38365bc99
commit
0b3a5a713e
1 changed files with 1 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ public abstract class Window
|
||||||
if (ImGui.SliderFloat(Loc.Localize("WindowSystemContextActionAlpha", "Opacity"), ref alpha, 20f,
|
if (ImGui.SliderFloat(Loc.Localize("WindowSystemContextActionAlpha", "Opacity"), ref alpha, 20f,
|
||||||
100f))
|
100f))
|
||||||
{
|
{
|
||||||
this.internalAlpha = alpha / 100f;
|
this.internalAlpha = Math.Clamp(alpha / 100f, 0.2f, 1f);
|
||||||
this.presetDirty = true;
|
this.presetDirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue