예제 #1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            if (isMouseHovering)
            {
                filterButtons.DrawText(spriteBatch);
                sortButtons.DrawText(spriteBatch);
                slotZone.DrawText(spriteBatch);
            }
        }
예제 #2
0
        public static void Draw(TEStorageHeart heart)
        {
            Player        player    = Main.player[Main.myPlayer];
            StoragePlayer modPlayer = player.GetModPlayer <StoragePlayer>();

            Initialize();
            if (Main.mouseX > panelLeft && Main.mouseX < panelLeft + panelWidth && Main.mouseY > panelTop && Main.mouseY < panelTop + panelHeight)
            {
                player.mouseInterface = true;
                player.showItemIcon   = false;
                InterfaceHelper.HideItemIconCache();
            }
            basePanel.Draw(Main.spriteBatch);
            slotZone.DrawText();
            sortButtons.DrawText();
            filterButtons.DrawText();
        }
예제 #3
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            if (isMouseHovering)
            {
                recipeButtons.DrawText(spriteBatch);
                filterButtons.DrawText(spriteBatch);
                sortButtons.DrawText(spriteBatch);
                stationZone.DrawText(spriteBatch);
                storageZone.DrawText(spriteBatch);
                recipeZone.DrawText(spriteBatch);
                ingredientZone.DrawText(spriteBatch);
                resultZone.DrawText(spriteBatch);
                previewZone.DrawText(spriteBatch);
            }
        }