internal void refresh(Test_Battle_Character_Data testBattler)
        {
            MapSprite.clear_map_sprite();

            if (testBattler == null)
            {
                MapSprite.set_text("");
                Level.text      = "";
                Identifier.text = "";
                Build.text      = "";
                Mission.text    = "";
                Inventory.set_images((List <Item_Data>)null);
            }
            else
            {
                int team = testBattler.Team;

                MapSprite.set_map_sprite(Game_Actors.get_map_sprite_name(testBattler.class_id, testBattler.gender), team);
                MapSprite.set_text(testBattler.name);
                Level.text      = string.Format("LV{0}", testBattler.level);
                Identifier.text = string.IsNullOrEmpty(testBattler.Identifier) ?
                                  "(no identifier)" : testBattler.Identifier;
                Build.text = testBattler.Generic ? ((Generic_Builds)testBattler.Build).ToString() : "Unique";
                int mission = testBattler.Mission % Game_AI.MISSION_COUNT;
                Mission.text = Game_AI.MISSION_NAMES.ContainsKey(mission) ?
                               Game_AI.MISSION_NAMES[mission] :
                               string.Format("Mission {0}", mission);
                Inventory.set_images(testBattler.items);
            }
        }
Ejemplo n.º 2
0
 protected override void set_name(Game_Unit unit)
 {
     Name.text   = unit.actor.name;
     Name.offset = new Vector2(unit.is_active_player_team ? -16 : 0, 0); //Multi
     Inventory.set_images(unit);
     Stats.set_images(unit);
 }