internal override void ClientInitialize() { userInterface = new UserInterface(); uiPlaygroundUI = new UIPlaygroundUI(userInterface); uiPlaygroundUI.Activate(); userInterface.SetState(uiPlaygroundUI); }
public override void ClientTerminate() { On.Terraria.UI.UIElement.Draw -= UIElement_Draw; Interface = null; uiPlaygroundUI?.Deactivate(); uiPlaygroundUI = null; }
public override void ClientTerminate() { Interface = null; lastSelectedUIElement = null; selectedUIElements.Clear(); uiPlaygroundUI?.Deactivate(); uiPlaygroundUI = null; }
internal override void ClientInitialize() { userInterface = new UserInterface(); uiPlaygroundUI = new UIPlaygroundUI(userInterface); uiPlaygroundUI.Activate(); userInterface.SetState(uiPlaygroundUI); //On.Terraria.UI.UIElement.DrawSelf += UIElement_DrawSelf; On.Terraria.UI.UIElement.Draw += UIElement_Draw; }
public override void ClientInitialize() { Interface = new UserInterface(); uiPlaygroundUI = new UIPlaygroundUI(Interface); uiPlaygroundUI.Activate(); Interface.SetState(uiPlaygroundUI); //On.Terraria.UI.UIElement.DrawSelf += UIElement_DrawSelf; On.Terraria.UI.UIElement.Draw += UIElement_Draw; On.Terraria.UI.UIElement.Click += UIElement_Click; }