Пример #1
0
 public SoloAnim_Page(Game_Unit unit)
 {
     Unit_Id = unit.id;
     // Class
     Class     = new TextSprite();
     Class.loc = new Vector2(0, 0);
     Class.SetFont(Config.UI_FONT, Global.Content, "White");
     Class.text = unit.actor.class_name;
     // Inventory
     Inventory = new Unit_Window_Inventory();
     Inventory.set_images(unit);
     Inventory.loc = new Vector2(88, 0);
     // Anim
     Mode     = unit.actor.individual_animation;
     Anim     = new TextSprite();
     Anim.loc = new Vector2(88 + 96 + 8, 0);
     Anim.SetFont(Config.UI_FONT);
     refresh();
 }
Пример #2
0
 public Unit_Page_3(Game_Unit unit)
 {
     // Inventory
     Inventory = new Unit_Window_Inventory();
     Inventory.set_images(unit);
     // Skills
     foreach (int i in unit.actor.skills)
     {
         Skill_Icons.Add(new Icon_Sprite());
         if (Global.content_exists(@"Graphics/Icons/" + Global.data_skills[i].Image_Name))
         {
             Skill_Icons[Skill_Icons.Count - 1].texture = Global.Content.Load <Texture2D>(@"Graphics/Icons/" + Global.data_skills[i].Image_Name);
         }
         Skill_Icons[Skill_Icons.Count - 1].size = new Vector2(Config.SKILL_ICON_SIZE, Config.SKILL_ICON_SIZE);
         Skill_Icons[Skill_Icons.Count - 1].loc  = new Vector2(
             104 + (Skill_Icons.Count - 1) * Config.SKILL_ICON_SIZE,
             (16 - Config.SKILL_ICON_SIZE) / 2);
         Skill_Icons[Skill_Icons.Count - 1].index = Global.data_skills[i].Image_Index;
     }
 }