Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetState()

void Terraria.UI.UserInterface.SetState ( UIState state)
inline

Definition at line 253 of file UserInterface.cs.

254 {
255 if (state == _currentState)
256 {
257 return;
258 }
259 if (state != null)
260 {
262 }
263 if (_currentState != null)
264 {
265 if (_lastElementHover != null)
266 {
268 }
270 }
272 ResetState();
273 if (state != null)
274 {
275 _isStateDirty = true;
276 state.Activate();
277 state.Recalculate();
278 }
279 }
virtual void MouseOut(UIMouseEvent evt)
Definition UIElement.cs:520
void AddToHistory(UIState state)

References Terraria.UI.UserInterface._currentState, Terraria.UI.UserInterface._isStateDirty, Terraria.UI.UserInterface._lastElementHover, Terraria.UI.UserInterface.AddToHistory(), Terraria.UI.UIElement.Deactivate(), Terraria.UI.UIElement.MouseOut(), Terraria.UI.UserInterface.MousePosition, Terraria.UI.UserInterface.ResetState(), and System.state.

Referenced by Terraria.UI.UserInterface.GoBack(), and Terraria.GameContent.Creative.CreativeUI.Initialize().