Beispiel #1
0
 public Unit_Page_2(Game_Unit unit)
 {
     // Pow
     Pow     = new RightAdjustedText();
     Pow.loc = new Vector2(16, 0);
     Pow.SetFont(Config.UI_FONT, Global.Content, (unit.actor.get_capped(Stat_Labels.Pow) ? "Green" : "Blue"));
     Pow.text = unit.stat(Stat_Labels.Pow).ToString();
     // Skl
     Skl     = new RightAdjustedText();
     Skl.loc = new Vector2(40, 0);
     Skl.SetFont(Config.UI_FONT, Global.Content, (unit.actor.get_capped(Stat_Labels.Skl) ? "Green" : "Blue"));
     Skl.text = unit.stat(Stat_Labels.Skl).ToString();
     // Spd
     Spd     = new RightAdjustedText();
     Spd.loc = new Vector2(64, 0);
     Spd.SetFont(Config.UI_FONT, Global.Content, (unit.actor.get_capped(Stat_Labels.Spd) ? "Green" : "Blue"));
     Spd.text = unit.stat(Stat_Labels.Spd).ToString();
     // Lck
     Lck     = new RightAdjustedText();
     Lck.loc = new Vector2(88, 0);
     Lck.SetFont(Config.UI_FONT, Global.Content, (unit.actor.get_capped(Stat_Labels.Lck) ? "Green" : "Blue"));
     Lck.text = unit.stat(Stat_Labels.Lck).ToString();
     // Def
     Def     = new RightAdjustedText();
     Def.loc = new Vector2(112, 0);
     Def.SetFont(Config.UI_FONT, Global.Content, (unit.actor.get_capped(Stat_Labels.Def) ? "Green" : "Blue"));
     Def.text = unit.stat(Stat_Labels.Def).ToString();
     // Res
     Res     = new RightAdjustedText();
     Res.loc = new Vector2(136, 0);
     Res.SetFont(Config.UI_FONT, Global.Content, (unit.actor.get_capped(Stat_Labels.Res) ? "Green" : "Blue"));
     Res.text = unit.stat(Stat_Labels.Res).ToString();
     // Mov
     Mov     = new RightAdjustedText();
     Mov.loc = new Vector2(168, 0);
     Mov.SetFont(Config.UI_FONT, Global.Content, (unit.is_mov_capped() ? "Green" : "Blue"));
     Mov.text = unit.mov.ToString();
     // Con
     Con     = new RightAdjustedText();
     Con.loc = new Vector2(192, 0);
     Con.SetFont(Config.UI_FONT, Global.Content, (unit.actor.get_capped(Stat_Labels.Con) ? "Green" : "Blue"));
     Con.text = unit.stat(Stat_Labels.Con).ToString();
     // Aid
     Aid     = new RightAdjustedText();
     Aid.loc = new Vector2(216, 0);
     Aid.SetFont(Config.UI_FONT, Global.Content, "Blue");
     Aid.text = unit.aid().ToString();
 }