Example #1
0
    public static void FF9Play_New(int slot_id)
    {
        PLAYER play = FF9StateSystem.Common.FF9.player[slot_id];

        PLAYER_INFO[] playerInfoArray =
        {
            new PLAYER_INFO(0,  1, 1, 1, 0,  0),
            new PLAYER_INFO(1,  2, 0, 1, 0,  1),
            new PLAYER_INFO(2,  3, 0, 1, 0,  2),
            new PLAYER_INFO(3,  7, 1, 1, 0,  3),
            new PLAYER_INFO(4, 12, 0, 1, 0,  4),
            new PLAYER_INFO(5, 14, 1, 1, 0,  8),
            new PLAYER_INFO(6, 15, 1, 1, 0, 10),
            new PLAYER_INFO(7, 16, 1, 1, 0, 12),
            new PLAYER_INFO(8, 18, 1, 1, 0, 14)
        };
        play.info     = playerInfoArray[slot_id];
        play.status   = 0;
        play.category = (byte)FF9Play_GetCategory(play.info.menu_type);
        play.bonus    = new FF9LEVEL_BONUS();
        int charId3 = FF9Play_GetCharID3(play);

        play.name = FF9TextTool.CharacterDefaultName(play.info.menu_type);
        FF9Play_SetDefEquips(play.equip, charId3);
        play.info.serial_no = (byte)FF9Play_GetSerialID(play.info.slot_no, (play.category & 16) != 0, play.equip);
        FF9Play_Build(slot_id, 1, playerInfoArray[slot_id], false);
        play.cur.hp   = play.max.hp;
        play.cur.mp   = play.max.mp;
        play.cur.capa = play.max.capa;
    }
Example #2
0
    private void GetDefaultName(out String mainName, out String altName)
    {
        CharacterPresetId presetId = PresetId;

        if (presetId == CharacterPresetId.Cinna1 || presetId == CharacterPresetId.Cinna2 || presetId == CharacterPresetId.StageCinna)
        {
            mainName = FF9TextTool.CharacterDefaultName(CharacterPresetId.Quina);
            altName  = FF9TextTool.CharacterDefaultName(info.menu_type);
            return;
        }
        if (presetId == CharacterPresetId.Marcus1 || presetId == CharacterPresetId.Marcus2 || presetId == CharacterPresetId.StageMarcus)
        {
            mainName = FF9TextTool.CharacterDefaultName(CharacterPresetId.Eiko);
            altName  = FF9TextTool.CharacterDefaultName(info.menu_type);
            return;
        }
        if (presetId == CharacterPresetId.Blank1 || presetId == CharacterPresetId.Blank2 || presetId == CharacterPresetId.StageBlank)
        {
            mainName = FF9TextTool.CharacterDefaultName(CharacterPresetId.Amarant);
            altName  = FF9TextTool.CharacterDefaultName(info.menu_type);
            return;
        }

        mainName = FF9TextTool.CharacterDefaultName(info.menu_type);
        altName  = FF9TextTool.CharacterDefaultName(info.menu_type);
    }
Example #3
0
 private void SetData()
 {
     Background.sprite2D    = Resources.Load <Sprite>("EmbeddedAsset/UI/Sprites/" + GetBackgroundSpritePath());
     MaxCharacterLabel.text = Localization.Get("MaxCharacters") + (Application.platform != RuntimePlatform.WindowsPlayer ? String.Empty : Localization.Get("MaxCharacters2"));
     CharacterProfile.text  = FF9TextTool.CharacterProfile(_currentCharId);
     NameInputField.value   = _isDefaultName
                                ? FF9TextTool.CharacterDefaultName(_currentCharId)
                                : FF9StateSystem.Common.FF9.player[_currentSlotId].name;
 }
Example #4
0
 public void OnResetButtonClick()
 {
     FF9Sfx.FF9SFX_Play(103);
     NameInputField.value = FF9TextTool.CharacterDefaultName(_currentCharId);
 }