Exemplo n.º 1
0
        internal Prep_Items_Help_Footer()
        {
            texture = Global.Content.Load <Texture2D>("Graphics/White_Square");
            tint    = new Color(0, 0, 0, 128);
            scale   = new Vector2(Config.WINDOW_WIDTH / (float)texture.Width,
                                  16f / texture.Height);

            Type_Icon     = new Weapon_Type_Icon();
            Type_Icon.loc = new Vector2(16, 0);

            for (int i = 0; i < 4; i++)
            {
                Stat_Labels.Add(new TextSprite());
                Stat_Labels[i].loc = new Vector2(56 + i * 56, 0);
                Stat_Labels[i].SetFont(Config.UI_FONT, Global.Content, "Yellow");
            }
            Stat_Labels[0].text = "Atk";
            Stat_Labels[1].text = "Crit";
            Stat_Labels[2].text = "Hit";
            Stat_Labels[3].text = "AS";

            Stats.Add(new TextSprite());
            Stats[0].loc = new Vector2(32, 0);
            Stats[0].SetFont(Config.UI_FONT + "L", Global.Content, "Blue", Config.UI_FONT);
            for (int i = 1; i < 5; i++)
            {
                Stats.Add(new RightAdjustedText());
                Stats[i].loc = new Vector2(40 + i * 56, 0);
                Stats[i].SetFont(Config.UI_FONT, Global.Content, "Blue");
            }

            QuickDescrip     = new TextSprite();
            QuickDescrip.loc = new Vector2(16, 0);
            QuickDescrip.SetFont(Config.UI_FONT, Global.Content, "White");
        }
Exemplo n.º 2
0
 public StatsPanel(Game_Actor actor)
 {
     // Face
     set_face(actor);
     Info_Window        = new System_Color_Window();
     Info_Window.width  = 120;
     Info_Window.height = 64;
     Info_Window.loc    = loc +
                          new Vector2(160, Config.WINDOW_HEIGHT - 88);
     Info_Window.loc = new Vector2(0, 0);
     // Stats
     for (int i = 0; i < 4; i++)
     {
         Stat_Labels.Add(new TextSprite());
         Stat_Labels[i].loc = new Vector2(10 + (i % 2) * 58, 24 + (i / 2) * 16);
         Stat_Labels[i].SetFont(Config.UI_FONT, Global.Content, "White");
     }
     Stat_Labels[0].text = "Atk";
     Stat_Labels[1].text = "Crit";
     Stat_Labels[2].text = "Hit";
     Stat_Labels[3].text = "AS";
     //Stat_Labels[3].text = "Avoid"; //Debug
     Stat_Labels.Add(new TextSprite());
     Stat_Labels[4].loc = new Vector2(40, 8);
     Stat_Labels[4].SetFont(Config.UI_FONT, Global.Content, "White");
     Stat_Labels[4].text = "Affi";
     for (int i = 0; i < 4; i++)
     {
         Stats.Add(new RightAdjustedText());
         Stats[i].loc = new Vector2(46 + (i % 2) * 62, 24 + (i / 2) * 16);
         Stats[i].SetFont(Config.UI_FONT, Global.Content, "Blue");
     }
     for (int i = 0; i < 4; i++)
     {
         Arrows.Add(new Weapon_Triangle_Arrow());
         Arrows[i].loc = new Vector2(34 + (i % 2) * 62, 28 + (i / 2) * 16 - 4);
     }
     // Weapon Type Icon
     Type_Icon     = new Weapon_Type_Icon();
     Type_Icon.loc = new Vector2(56, 8);
     // Description
     Item_Description     = new TextSprite();
     Item_Description.loc = new Vector2(8, 8);
     Item_Description.SetFont(Config.UI_FONT, Global.Content, "White");
     // Weapon Triangle
     WTHelp     = new WeaponTriangleHelpSet();
     WTHelp.loc = new Vector2(-24, 16 + 8);
 }