Terraria v1.4.4.9
Terraria source code documentation
|
Classes | |
class | InputPointerCache |
Public Member Functions | |
void | ClearPointers () |
void | ResetLasts () |
void | EscapeElements () |
UserInterface () | |
void | Use () |
void | Update (GameTime time) |
void | Draw (SpriteBatch spriteBatch, GameTime time) |
void | DrawDebugHitbox (BasicDebugDrawer drawer) |
void | SetState (UIState state) |
void | GoBack () |
void | Recalculate () |
CalculatedStyle | GetDimensions () |
bool | IsElementUnderMouse () |
Public Attributes | |
Vector2 | MousePosition |
bool | IsVisible |
Static Public Attributes | |
static UserInterface | ActiveInstance = new UserInterface() |
Package Functions | |
void | RefreshState () |
Properties | |
UIState | CurrentState [get] |
Private Member Functions | |
delegate void | MouseElementEvent (UIElement element, UIMouseEvent evt) |
void | ImmediatelyUpdateInputPointers () |
void | ResetState () |
void | GetMousePosition () |
void | HandleClick (InputPointerCache cache, GameTime time, bool isDown, UIElement mouseElement) |
void | AddToHistory (UIState state) |
Private Attributes | |
List< UIState > | _history = new List<UIState>() |
InputPointerCache | LeftMouse |
InputPointerCache | RightMouse |
UIElement | _lastElementHover |
double | _clickDisabledTimeRemaining |
bool | _isStateDirty |
UIState | _currentState |
Static Private Attributes | |
const double | DOUBLE_CLICK_TIME = 500.0 |
const double | STATE_CHANGE_CLICK_DISABLE_TIME = 200.0 |
const int | MAX_HISTORY_SIZE = 32 |
const int | HISTORY_PRUNE_SIZE = 4 |
Definition at line 10 of file UserInterface.cs.