protected PlayerBattleMenu(PlayerTypes playerType) : base(MenuTypes.Horizontal) { PlayerType = playerType; Texture2D battleGFX = AssetManager.Instance.LoadRawTexture2D($"{ContentGlobals.BattleGFX}.png"); SwitchIcon = new CroppedTexture2D(battleGFX, new Rectangle(651, 13, 78, 30)); CroppedTexture2D tacticsButton = new CroppedTexture2D(battleGFX, new Rectangle(146, 844, 24, 24)); CroppedTexture2D itemsButton = new CroppedTexture2D(battleGFX, new Rectangle(146, 812, 24, 24)); ActionButtons.Add(new ActionButton("Tactics", tacticsButton, MoveCategories.Tactics, new TacticsSubMenu())); ActionSubMenu itemMenu = null; if (CheckUseDipMenu() == false) { itemMenu = new ItemSubMenu(1, 0); } else { itemMenu = new ItemDipSubMenu(); } ActionButtons.Add(new ActionButton("Items", itemsButton, MoveCategories.Item, itemMenu)); }
protected PlayerBattleMenu(PlayerTypes playerType) : base(MenuTypes.Horizontal) { SwitchIcon = new CroppedTexture2D(AssetManager.Instance.LoadAsset <Texture2D>($"{ContentGlobals.UIRoot}/Battle/BattleGFX"), new Rectangle(651, 13, 78, 30)); PlayerType = playerType; ActionButtons.Add(new ActionButton("Tactics", AssetManager.Instance.LoadAsset <Texture2D>("UI/Battle/JumpButton"), MoveCategories.Tactics, new TacticsSubMenu())); ActionSubMenu itemMenu = null; if (CheckUseDipMenu() == false) { itemMenu = new ItemSubMenu(1, 0); } else { itemMenu = new ItemDipSubMenu(); } ActionButtons.Add(new ActionButton("Items", AssetManager.Instance.LoadAsset <Texture2D>("UI/Battle/JumpButton"), MoveCategories.Item, itemMenu)); }