Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
UISliderBase.cs
Go to the documentation of this file.
1using Terraria.UI;
2
4
5public class UISliderBase : UIElement
6{
7 internal const int UsageLevel_NotSelected = 0;
8
9 internal const int UsageLevel_SelectedAndLocked = 1;
10
11 internal const int UsageLevel_OtherElementIsLocked = 2;
12
14
16
17 internal int GetUsageLevel()
18 {
19 int result = 0;
20 if (CurrentLockedSlider == this)
21 {
22 result = 1;
23 }
24 else if (CurrentLockedSlider != null)
25 {
26 result = 2;
27 }
28 return result;
29 }
30
31 public static void EscapeElements()
32 {
34 CurrentAimedSlider = null;
35 }
36}