public SCButton(Rectangle p, SpriteFont sf, String s, GameText.Language l = GameText.Language.English) { position = p; this.sf = sf; gt = new GameText(); gt.AddText(s, l); }
private void Initialize() { bInitialize = true; TitleFont = BattleGUI.testSF48; guiTex = GameMenuHandler.menuTextureSheet; rightPanelPosition = new Rectangle(700, 300, 616, 418); rightPanelAbilityLineup = new Rectangle(710, 368, 596, 340); rightPanelTitlePosition = new Rectangle(710, 310, 596, 48); rightPanelTitle = new GameText(); rightPanelTitle.AddText("Equipped abilities: ", GameText.Language.English); leftPanelPosition = new Rectangle(50, 300, 616, 418); leftPanelAbilityLineup = new Rectangle(60, 368, 596, 340); leftPanelTitlePosition = new Rectangle(60, 310, 596, 48); leftPanelTitle = new GameText(); leftPanelTitle.AddText("Available abilities: ", GameText.Language.English); bgPanelRight = new TexPanel(guiTex, rightPanelPosition, new Rectangle(90, 679, 64, 2), new Rectangle(90, 745, 64, 2), new Rectangle(88, 681, 2, 64), new Rectangle(154, 681, 2, 64), new Rectangle(88, 679, 2, 2), new Rectangle(154, 679, 2, 2), new Rectangle(88, 745, 2, 2), new Rectangle(154, 745, 2, 2), new Rectangle(90, 681, 64, 64)); bgPanelLeft = new TexPanel(guiTex, leftPanelPosition, new Rectangle(90, 679, 64, 2), new Rectangle(90, 745, 64, 2), new Rectangle(88, 681, 2, 64), new Rectangle(154, 681, 2, 64), new Rectangle(88, 679, 2, 2), new Rectangle(154, 679, 2, 2), new Rectangle(88, 745, 2, 2), new Rectangle(154, 745, 2, 2), new Rectangle(90, 681, 64, 64)); }