terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ SetState()

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

Definition at line 233 of file UserInterface.cs.

234 {
235 for (;;)
236 {
237 UIState currentState = this._currentState;
238 if (state != null)
239 {
240 this.AddToHistory(state);
241 if (this._currentState == null)
242 {
243 goto IL_0033;
244 }
245 if (this._lastElementHover != null)
246 {
247 break;
248 }
249 }
250 }
251 Vector2 mousePosition = this.MousePosition;
253 IL_0033:
255 this.ResetState();
256 if (state != null)
257 {
258 this._isStateDirty = true;
259 state.Activate();
260 return;
261 }
262 }
class f__AnonymousType0<< Count > j__TPar
void AddToHistory(UIState state)

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