Exemple #1
0
 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);
 }
Exemple #2
0
 public void Setup(GameText text, SpriteFont sf, Color tc, Color lc, TextUtility.OutLining ol, bool bUpScaling)
 {
     this.text       = text;
     this.sf         = sf;
     this.tc         = tc;
     this.lc         = lc;
     this.bUpScaling = bUpScaling;
     this.ol         = ol;
 }
Exemple #3
0
 static internal void Initialize()
 {
     font            = Game1.contentManager.Load <SpriteFont>(@"Fonts\Design\BGUI\test32");//48,32,25,20
     bInitialize     = false;
     guiTex          = GameMenuHandler.menuTextureSheet;
     offsetPanel     = 10;
     offsetBoxes     = 10;
     expectedDMGText = new GameText("Estimated Potency: ");
 }
Exemple #4
0
        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));
        }
 public void AddTextCollection(GameText gt)
 {
     gt.textID = highestTextID;
     gameTextCollection.Add(gt);
     highestTextID++;
 }