Skip to content

Commit b162e6f

Browse files
committed
Adjust button animation rates
1 parent 113d417 commit b162e6f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/TSMapEditor/UI/Controls/EditorButton.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public EditorButton(WindowManager windowManager) : base(windowManager)
1212
{
1313
FontIndex = Constants.UIBoldFont;
1414
Height = Constants.UIButtonHeight;
15+
AlphaRate = 0.005f; // Override default animation rate in UISettings
1516
}
1617

1718
public Texture2D ExtraTexture { get; set; }

src/TSMapEditor/UI/UIManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public CustomUISettings()
2828
CheckBoxDisabledClearTexture = AssetLoader.LoadTexture("checkBoxClearD.png");
2929
PanelBackgroundColor = new Color(0, 0, 0, 128);
3030
PanelBorderColor = new Color(128, 128, 128, 255);
31+
DefaultAlphaRate = 1.0f; // ScrollBar textures need instant animations
3132
}
3233

3334
public Color ListBoxBackgroundColor { get; set; } = Color.Black;

0 commit comments

Comments
 (0)