Ejemplo n.º 1
0
 internal override void ClientInitialize()
 {
     userInterface  = new UserInterface();
     uiPlaygroundUI = new UIPlaygroundUI(userInterface);
     uiPlaygroundUI.Activate();
     userInterface.SetState(uiPlaygroundUI);
 }
Ejemplo n.º 2
0
        public override void ClientTerminate()
        {
            On.Terraria.UI.UIElement.Draw -= UIElement_Draw;
            Interface = null;

            uiPlaygroundUI?.Deactivate();
            uiPlaygroundUI = null;
        }
Ejemplo n.º 3
0
        public override void ClientTerminate()
        {
            Interface             = null;
            lastSelectedUIElement = null;
            selectedUIElements.Clear();

            uiPlaygroundUI?.Deactivate();
            uiPlaygroundUI = null;
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
        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;
        }