コード例 #1
0
        public override void Load()
        {
            RenamePetUIHotkey = RegisterHotKey("Rename Pet", "P");
            if (!Main.dedServ)
            {
                petRenameInterface = new UserInterface();

                mouseoverUI = new MouseoverUI();
                mouseoverUI.Activate();
                mouseoverUIInterface = new UserInterface();
                mouseoverUIInterface.SetState(mouseoverUI);

                randomNames      = GetArrayFromJson("names");
                randomAdjectives = GetArrayFromJson("adjectives");
            }
        }
コード例 #2
0
        public override void Unload()
        {
            RenamePetUIHotkey = null;
            ACTPetsWithSmallVerticalHitbox = null;

            if (!Main.dedServ)
            {
                petRenameInterface = null;

                mouseoverUIInterface = null;
                mouseoverUI          = null;

                randomNames      = null;
                randomAdjectives = null;

                UIQuitButton.texture = null;
            }
        }