Esempio n. 1
0
        public override void AddRecipeGroups()
        {
            if (!Main.dedServ)
            {
                try
                {
                    itemBrowser = new ItemBrowser(this);
                    itemBrowser.SetDefaultPosition(new Vector2(80, 300));
                    itemBrowser.Visible = false;

                    npcBrowser = new NPCBrowser(this);
                    npcBrowser.SetDefaultPosition(new Vector2(30, 180));
                    npcBrowser.Visible = false;

                    recipeBrowser = new RecipeBrowserWindow(this);
                    recipeBrowser.SetDefaultPosition(new Vector2(30, 180));
                    recipeBrowser.Visible = false;

                    extendedCheatMenu = new ExtendedCheatMenu(this);
                    extendedCheatMenu.SetDefaultPosition(new Vector2(120, 180));
                    extendedCheatMenu.Visible = false;

                    paintToolsHotbar = new PaintToolsHotbar(this);
                    //	paintToolsHotbar.SetDefaultPosition(new Microsoft.Xna.Framework.Vector2(120, 180));
                    paintToolsHotbar.Visible = false;
                    paintToolsHotbar.Hide();

                    paintToolsUI = new PaintToolsUI(this);
                    paintToolsUI.SetDefaultPosition(new Vector2(30, 180));
                    paintToolsUI.Visible = false;

                    quickTeleportHotbar         = new QuickTeleportHotbar(this);
                    quickTeleportHotbar.Visible = false;
                    quickTeleportHotbar.Hide();

                    quickClearHotbar         = new QuickClearHotbar(this);
                    quickClearHotbar.Visible = false;
                    quickClearHotbar.Hide();

                    npcButchererHotbar         = new NPCButchererHotbar(this);
                    npcButchererHotbar.Visible = false;
                    npcButchererHotbar.Hide();

                    //eventManagerHotbar = new EventManagerHotbar(this);
                    //eventManagerHotbar.Visible = false;
                    //eventManagerHotbar.Hide();

                    hotbar = new Hotbar(this);
                    //hotbar.Position = new Microsoft.Xna.Framework.Vector2(120, 180);
                    hotbar.Visible = true;
                    hotbar.Hide();
                }
                catch (Exception e)
                {
                    ErrorLogger.Log(e.ToString());
                }
            }
        }
Esempio n. 2
0
 public override void Unload()
 {
     itemBrowser = null;
     npcBrowser  = null;
     instance    = null;
     ToggleCheatSheetHotbarHotKey       = null;
     RecipeBrowserWindow.recipeView     = null;
     RecipeBrowserWindow.lookupItemSlot = null;
 }
Esempio n. 3
0
        public override void Unload()
        {
            ButtonClicked.Clear();
            ButtonTexture.Clear();
            ButtonTooltip.Clear();

            GenericItemSlot.backgroundTexture     = null;
            NPCSlot.backgroundTexture             = null;
            NPCSlot.filteredBackgroundTexture     = null;
            RecipeQuerySlot.backgroundTexture     = null;
            RecipeQuerySlot.backgroundTextureFake = null;
            RecipeSlot.backgroundTexture          = null;
            RecipeSlot.selectedBackgroundTexture  = null;
            Slot.backgroundTexture          = null;
            PaintToolsSlot.CurrentSelect    = null;
            AllItemsMenu.singleSlotArray    = null;
            UI.UICheckbox.checkboxTexture   = null;
            UI.UICheckbox.checkmarkTexture  = null;
            UI.UIScrollBar.ScrollbarTexture = null;
            UI.UIScrollView.ScrollbgTexture = null;
            UI.UITextbox.textboxBackground  = null;
            //UI.UIView.closeTexture = null;
            ItemBrowser.bCategories         = null;
            RecipeBrowserWindow.ingredients = null;
            RecipeBrowserWindow.bCategories = null;
            NPCBrowser.tooltipNpc           = null;
            NPCBrowser.hoverNpc             = null;
            NPCBrowser.bCategories          = null;
            if (itemBrowser != null)
            {
                itemBrowser.itemView = null;
            }
            itemBrowser   = null;
            npcBrowser    = null;
            recipeBrowser = null;
            if (hotbar != null)
            {
                hotbar.buttonView?.RemoveAllChildren();
                hotbar.buttonView = null;
                hotbar            = null;
            }
            instance = null;
            ToggleCheatSheetHotbarHotKey          = null;
            RecipeBrowserWindow.recipeView        = null;
            RecipeBrowserWindow.lookupItemSlot    = null;
            ConfigurationTool.cheatSheet          = null;
            ConfigurationTool.configurationWindow = null;
            Hotbar.loginTexture        = null;
            Hotbar.logoutTexture       = null;
            ConfigurationTool.button   = null;
            SpawnRateMultiplier.button = null;
            MinionSlotBooster.button   = null;
            LightHack.button           = null;
            GodMode.button             = null;
        }
Esempio n. 4
0
        public override void AddRecipeGroups()
        {
            if (!Main.dedServ)
            {
                try {
                    itemBrowser = new ItemBrowser(this);
                    itemBrowser.SetDefaultPosition(new Vector2(80, 300));
                    itemBrowser.Visible = false;

                    npcBrowser = new NPCBrowser(this);
                    npcBrowser.SetDefaultPosition(new Vector2(30, 180));
                    npcBrowser.Visible = false;

                    // recipeBrowser = new RecipeBrowserWindow(this);
                    // recipeBrowser.SetDefaultPosition(new Vector2(30, 180));
                    // recipeBrowser.Visible = false;

                    // extendedCheatMenu = new ExtendedCheatMenu(this);
                    // extendedCheatMenu.SetDefaultPosition(new Vector2(120, 180));
                    // extendedCheatMenu.Visible = false;

                    // paintToolsHotbar = new PaintToolsHotbar(this);
                    // paintToolsHotbar.SetDefaultPosition(new Microsoft.Xna.Framework.Vector2(120, 180));
                    // paintToolsHotbar.Visible = false;
                    // paintToolsHotbar.Hide();

                    // paintToolsUI = new PaintToolsUI(this);
                    // paintToolsUI.SetDefaultPosition(new Vector2(30, 180));
                    // paintToolsUI.Visible = false;

                    // quickTeleportHotbar = new QuickTeleportHotbar(this);
                    // quickTeleportHotbar.Visible = false;
                    // quickTeleportHotbar.Hide();

                    // quickClearHotbar = new QuickClearHotbar(this);
                    // quickClearHotbar.Visible = false;
                    // quickClearHotbar.Hide();

                    // npcButchererHotbar = new NPCButchererHotbar(this);
                    // npcButchererHotbar.Visible = false;
                    // npcButchererHotbar.Hide();

                    //eventManagerHotbar = new EventManagerHotbar(this);
                    //eventManagerHotbar.Visible = false;
                    //eventManagerHotbar.Hide();

                    hotbar = new Hotbar(this);
                    //hotbar.Position = new Microsoft.Xna.Framework.Vector2(120, 180);
                    hotbar.Visible = true;
                    if (!ModContent.GetInstance <CheatSheetClientConfig>().HotbarShownByDefault)
                    {
                        hotbar.Hide();
                    }
                    else
                    {
                        hotbar.Show();
                    }
                }
                catch (Exception e)
                {
                    Logger.Error(e.ToString());
                }
            }
        }