Esempio n. 1
0
    protected void SetCharaInfo(FriendCharaInfo data, int i, Transform t, bool is_recycle, bool isGM)
    {
        //IL_001f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0033: Unknown result type (might be due to invalid IL or missing references)
        //IL_006b: Unknown result type (might be due to invalid IL or missing references)
        //IL_007f: Unknown result type (might be due to invalid IL or missing references)
        if (isGM)
        {
            SetRenderNPCModel(t, UI.TEX_MODEL, 0, new Vector3(0f, -1.49f, 1.87f), new Vector3(0f, 154f, 0f), 10f, null);
        }
        else
        {
            SetRenderPlayerModel(t, UI.TEX_MODEL, PlayerLoadInfo.FromCharaInfo(data, false, true, false, true), 99, new Vector3(0f, -1.536f, 1.87f), new Vector3(0f, 154f, 0f), true, null);
        }
        SetLabelText(t, UI.LBL_NAME, data.name);
        SetLabelText(t, UI.LBL_LEVEL, data.level.ToString());
        SetLabelText(t, UI.LBL_COMMENT, data.comment);
        SetLabelText(t, UI.LBL_LAST_LOGIN, base.sectionData.GetText("LAST_LOGIN"));
        SetLabelText(t, UI.LBL_LAST_LOGIN_TIME, data.lastLogin);
        EquipSetCalculator otherEquipSetCalculator = MonoBehaviourSingleton <StatusManager> .I.GetOtherEquipSetCalculator(i + 4);

        otherEquipSetCalculator.SetEquipSet(data.equipSet, false);
        SimpleStatus finalStatus = otherEquipSetCalculator.GetFinalStatus(0, data.hp, data.atk, data.def);

        SetLabelText(t, UI.LBL_ATK, finalStatus.GetAttacksSum().ToString());
        SetLabelText(t, UI.LBL_DEF, finalStatus.defences[0].ToString());
        SetLabelText(t, UI.LBL_HP, finalStatus.hp.ToString());
        DegreePlate component = FindCtrl(t, UI.OBJ_DEGREE_FRAME_ROOT).GetComponent <DegreePlate>();

        component.Initialize(data.selectedDegrees, false, delegate
        {
            GetCtrl(UI.GRD_LIST).GetComponent <UIGrid>().Reposition();
        });
    }
Esempio n. 2
0
    private void InitRally(int index, Transform t)
    {
        //IL_0072: Unknown result type (might be due to invalid IL or missing references)
        //IL_0086: Unknown result type (might be due to invalid IL or missing references)
        SetEvent(t, "JOIN_MAP", index);
        LoungeModel.SlotInfo slotInfo           = rallyInvites[index];
        CharaInfo            userInfo           = slotInfo.userInfo;
        FollowLoungeMember   followLoungeMember = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetFollowLoungeMember(userInfo.userId);

        EquipSetCalculator otherEquipSetCalculator = MonoBehaviourSingleton <StatusManager> .I.GetOtherEquipSetCalculator(index + 4);

        otherEquipSetCalculator.SetEquipSet(slotInfo.userInfo.equipSet, false);
        SetRenderPlayerModel(t, UI.TEX_MODEL, PlayerLoadInfo.FromCharaInfo(userInfo, false, true, false, true), 99, new Vector3(0f, -1.536f, 1.87f), new Vector3(0f, 154f, 0f), true, null);
        SetLabelText(t, UI.LBL_NAME, userInfo.name);
        SetLabelText(t, UI.LBL_LEVEL, userInfo.level.ToString());
        SetFollowStatus(t, userInfo.userId, followLoungeMember.following, followLoungeMember.follower);
        SetActive(t, UI.SPR_ICON_HOST, userInfo.userId == MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData.ownerUserId);
        SetPlayingStatus(t, userInfo.userId);
        SetActive(t, UI.SPR_ICON_FIRST_MET, MonoBehaviourSingleton <LoungeMatchingManager> .I.CheckFirstMet(userInfo.userId));
        DegreePlate component = FindCtrl(t, UI.OBJ_DEGREE_FRAME_ROOT).GetComponent <DegreePlate>();

        component.Initialize(userInfo.selectedDegrees, false, delegate
        {
            RepositionTable();
        });
    }
    private void SetMemberInfo(LoungeModel.SlotInfo data, int i, Transform t)
    {
        //IL_005b: Unknown result type (might be due to invalid IL or missing references)
        //IL_006f: Unknown result type (might be due to invalid IL or missing references)
        CharaInfo          userInfo           = data.userInfo;
        FollowLoungeMember followLoungeMember = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetFollowLoungeMember(userInfo.userId);

        EquipSetCalculator otherEquipSetCalculator = MonoBehaviourSingleton <StatusManager> .I.GetOtherEquipSetCalculator(i + 4);

        otherEquipSetCalculator.SetEquipSet(data.userInfo.equipSet, false);
        SetRenderPlayerModel(t, UI.TEX_MODEL, PlayerLoadInfo.FromCharaInfo(userInfo, false, true, false, true), 99, new Vector3(0f, -1.536f, 1.87f), new Vector3(0f, 154f, 0f), true, null);
        SetLabelText(t, UI.LBL_NAME, userInfo.name);
        SetLabelText(t, UI.LBL_LEVEL, userInfo.level.ToString());
        SetFollowStatus(t, userInfo.userId, followLoungeMember.following, followLoungeMember.follower);
        SetActive(t, UI.SPR_ICON_HOST, userInfo.userId == MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData.ownerUserId);
        SetPlayingStatus(t, userInfo.userId);
        SetActive(t, UI.SPR_ICON_FIRST_MET, MonoBehaviourSingleton <LoungeMatchingManager> .I.CheckFirstMet(userInfo.userId));
        DegreePlate component = FindCtrl(t, UI.OBJ_DEGREE_FRAME_ROOT).GetComponent <DegreePlate>();

        component.Initialize(userInfo.selectedDegrees, false, delegate
        {
            GetCtrl(UI.GRD_LIST).GetComponent <UIGrid>().Reposition();
        });
        if (MonoBehaviourSingleton <LoungeMatchingManager> .I.IsRallyUser(userInfo.userId))
        {
            SetBadge(t, -1, 1, 10, 0, true);
        }
    }
    protected void SetCharaInfo(FriendCharaInfo data, int i, Transform t, bool is_recycle, bool isGM)
    {
        //IL_0045: Unknown result type (might be due to invalid IL or missing references)
        //IL_0059: Unknown result type (might be due to invalid IL or missing references)
        //IL_0091: Unknown result type (might be due to invalid IL or missing references)
        //IL_00a5: Unknown result type (might be due to invalid IL or missing references)
        object[] event_data = new object[2]
        {
            data.userId,
            t
        };
        SetEvent(t, "SELECT_FRIEND", event_data);
        if (isGM)
        {
            SetRenderNPCModel(t, UI.TEX_MODEL, 0, new Vector3(0f, -1.49f, 1.87f), new Vector3(0f, 154f, 0f), 10f, null);
        }
        else
        {
            SetRenderPlayerModel(t, UI.TEX_MODEL, PlayerLoadInfo.FromCharaInfo(data, false, true, false, true), 99, new Vector3(0f, -1.536f, 1.87f), new Vector3(0f, 154f, 0f), true, null);
        }
        SetLabelText(t, UI.LBL_NAME, data.name);
        SetLabelText(t, UI.LBL_LEVEL, data.level.ToString());
        SetLabelText(t, UI.LBL_COMMENT, data.comment);
        SetLabelText(t, UI.LBL_LAST_LOGIN, base.sectionData.GetText("LAST_LOGIN"));
        SetLabelText(t, UI.LBL_LAST_LOGIN_TIME, data.lastLogin);
        EquipSetCalculator otherEquipSetCalculator = MonoBehaviourSingleton <StatusManager> .I.GetOtherEquipSetCalculator(i + 4);

        otherEquipSetCalculator.SetEquipSet(data.equipSet, false);
        SimpleStatus finalStatus = otherEquipSetCalculator.GetFinalStatus(0, data.hp, data.atk, data.def);

        SetLabelText(t, UI.LBL_ATK, finalStatus.GetAttacksSum().ToString());
        SetLabelText(t, UI.LBL_DEF, finalStatus.defences[0].ToString());
        SetLabelText(t, UI.LBL_HP, finalStatus.hp.ToString());
        if ((int)data.level < 15)
        {
            SetActive(t, UI.OBJ_DISABLE_USER_MASK, true);
            SetActive(t, UI.SPR_SELECTED, false);
            SetActive(t, UI.STR_LIMIT_LVL, true);
            SetEvent(t, "_", null);
        }
        else if (mInviteFriendIDs.Contains(data.userId))
        {
            SetActive(t, UI.OBJ_DISABLE_USER_MASK, true);
            SetActive(t, UI.SPR_SELECTED, true);
            SetActive(t, UI.STR_LIMIT_LVL, false);
        }
        else
        {
            SetActive(t, UI.OBJ_DISABLE_USER_MASK, false);
            SetActive(t, UI.SPR_SELECTED, false);
            SetActive(t, UI.STR_LIMIT_LVL, false);
        }
    }
 protected virtual void LoadModel()
 {
     //IL_0041: Unknown result type (might be due to invalid IL or missing references)
     //IL_0055: Unknown result type (might be due to invalid IL or missing references)
     SetRenderPlayerModel(transRoot, UI.TEX_MODEL, PlayerLoadInfo.FromCharaInfo(data, true, true, true, isVisualMode), PLAYER_ANIM_TYPE.GetStatus(data.sex), new Vector3(0f, -0.75f, 14f), new Vector3(0f, 180f, 0f), isVisualMode, delegate(PlayerLoader player_loader)
     {
         if (player_loader != null)
         {
             loader = player_loader;
         }
     });
 }
    private void SetFollowerInfo(GuildSearchFollowerRoomModel.GuildFollowerModel data, Transform t)
    {
        //IL_0029: Unknown result type (might be due to invalid IL or missing references)
        //IL_003d: Unknown result type (might be due to invalid IL or missing references)
        SetRenderPlayerModel(t, UI.TEX_MODEL, PlayerLoadInfo.FromCharaInfo(data.charInfo, false, true, false, true), 99, new Vector3(0f, -1.536f, 1.87f), new Vector3(0f, 154f, 0f), true, null);
        SetLabelText(t, UI.LBL_NAME, data.charInfo.name);
        SetLabelText(t, UI.LBL_LEVEL, data.charInfo.level.ToString());
        DegreePlate component = FindCtrl(t, UI.OBJ_DEGREE_FRAME_ROOT).GetComponent <DegreePlate>();

        component.Initialize(data.charInfo.selectedDegrees, false, delegate
        {
            GetCtrl(UI.GRD_LIST).GetComponent <UIGrid>().Reposition();
        });
    }
Esempio n. 7
0
 public InGameRecorder.PlayerRecord CreateInGameRecord(CharaInfo _charaInfo)
 {
     if (_charaInfo != null)
     {
         charaInfo = _charaInfo;
     }
     InGameRecorder.PlayerRecord playerRecord = new InGameRecorder.PlayerRecord();
     playerRecord.id               = ((!isSelf) ? charaInfo.userId : 0);
     playerRecord.isNPC            = false;
     playerRecord.isSelf           = isSelf;
     playerRecord.charaInfo        = charaInfo;
     playerRecord.beforeLevel      = charaInfo.level;
     playerRecord.playerLoadInfo   = PlayerLoadInfo.FromCharaInfo(charaInfo, true, true, true, false);
     playerRecord.animID           = playerRecord.playerLoadInfo.weaponModelID / 1000;
     playerRecord.givenTotalDamage = givenTotalDamage;
     return(playerRecord);
 }
    protected void SetCharaInfo(FriendCharaInfo data, int i, Transform t, bool is_recycle, bool isGM)
    {
        //IL_002d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0041: Unknown result type (might be due to invalid IL or missing references)
        //IL_007a: Unknown result type (might be due to invalid IL or missing references)
        //IL_008e: Unknown result type (might be due to invalid IL or missing references)
        SetEvent(t, "FOLLOW_INFO", i);
        if (isGM)
        {
            SetRenderNPCModel(t, UI.TEX_MODEL, 0, new Vector3(0f, -1.49f, 1.87f), new Vector3(0f, 154f, 0f), 10f, null);
        }
        else
        {
            ForceSetRenderPlayerModel(t, UI.TEX_MODEL, PlayerLoadInfo.FromCharaInfo(data, false, true, false, true), 99, new Vector3(0f, -1.536f, 1.87f), new Vector3(0f, 154f, 0f), true, null);
        }
        CharaInfo.ClanInfo clanInfo = data.clanInfo;
        if (clanInfo == null)
        {
            clanInfo        = new CharaInfo.ClanInfo();
            clanInfo.clanId = -1;
            clanInfo.tag    = string.Empty;
        }
        bool isSameTeam = clanInfo.clanId > -1 && MonoBehaviourSingleton <GuildManager> .I.guildData != null && clanInfo.clanId == MonoBehaviourSingleton <GuildManager> .I.guildData.clanId;

        SetSupportEncoding(t, UI.LBL_NAME, true);
        SetLabelText(t, UI.LBL_NAME, Utility.GetNameWithColoredClanTag(clanInfo.tag, data.name, data.userId == MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id, isSameTeam));
        SetLabelText(t, UI.LBL_LEVEL, data.level.ToString());
        SetLabelText(t, UI.LBL_COMMENT, data.comment);
        SetLabelText(t, UI.LBL_LAST_LOGIN, base.sectionData.GetText("LAST_LOGIN"));
        SetLabelText(t, UI.LBL_LAST_LOGIN_TIME, data.lastLogin);
        EquipSetCalculator otherEquipSetCalculator = MonoBehaviourSingleton <StatusManager> .I.GetOtherEquipSetCalculator(i + 4);

        otherEquipSetCalculator.SetEquipSet(data.equipSet, false);
        SimpleStatus finalStatus = otherEquipSetCalculator.GetFinalStatus(0, data.hp, data.atk, data.def);

        SetLabelText(t, UI.LBL_ATK, finalStatus.GetAttacksSum().ToString());
        SetLabelText(t, UI.LBL_DEF, finalStatus.GetDefencesSum().ToString());
        SetLabelText(t, UI.LBL_HP, finalStatus.hp.ToString());
        DegreePlate component = FindCtrl(t, UI.OBJ_DEGREE_FRAME_ROOT).GetComponent <DegreePlate>();

        component.Initialize(data.selectedDegrees, false, delegate
        {
            GetCtrl(UI.GRD_LIST).GetComponent <UIGrid>().Reposition();
        });
    }
 public override void Initialize()
 {
     charaInfo = (GameSection.GetEventData() as FriendCharaInfo);
     InGameRecorder.PlayerRecord playerRecord = new InGameRecorder.PlayerRecord();
     playerRecord.id             = charaInfo.userId;
     playerRecord.isNPC          = false;
     playerRecord.isSelf         = false;
     playerRecord.playerLoadInfo = PlayerLoadInfo.FromCharaInfo(charaInfo, true, true, true, true);
     playerRecord.animID         = PLAYER_ANIM_TYPE.GetStatus(charaInfo.sex);
     playerRecord.charaInfo      = charaInfo;
     GameSection.SetEventData(new object[3]
     {
         playerRecord,
         false,
         false
     });
     base.Initialize();
 }
    private void SetFollowerInfo(LoungeSearchFollowerRoomModel.LoungeFollowerModel data, Transform t)
    {
        //IL_0090: Unknown result type (might be due to invalid IL or missing references)
        //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
        CharaInfo charaInfo = null;

        for (int i = 0; i < data.slotInfos.Count; i++)
        {
            if (data.slotInfos[i].userInfo != null && data.slotInfos[i].userInfo.userId == data.followerUserId)
            {
                charaInfo = data.slotInfos[i].userInfo;
            }
        }
        SetRenderPlayerModel(t, UI.TEX_MODEL, PlayerLoadInfo.FromCharaInfo(charaInfo, false, true, false, true), 99, new Vector3(0f, -1.536f, 1.87f), new Vector3(0f, 154f, 0f), true, null);
        SetLabelText(t, UI.LBL_NAME, charaInfo.name);
        SetLabelText(t, UI.LBL_LEVEL, charaInfo.level.ToString());
        DegreePlate component = FindCtrl(t, UI.OBJ_DEGREE_FRAME_ROOT).GetComponent <DegreePlate>();

        component.Initialize(charaInfo.selectedDegrees, false, delegate
        {
            GetCtrl(UI.GRD_LIST).GetComponent <UIGrid>().Reposition();
        });
        SetActive(t, UI.SPR_ICON_FIRST_MET, CheckFirstMet(charaInfo.userId));
    }
    protected override void LoadModel()
    {
        if (record != null)
        {
            PlayerLoadInfo playerLoadInfo = record.playerLoadInfo;
            if (isSelfData)
            {
                if (reloadModel)
                {
                    if (isQuestResult)
                    {
                        playerLoadInfo = PlayerLoadInfo.FromCharaInfo(record.charaInfo, true, true, true, isVisualMode);
                        EquipItemTable.EquipItemData equipItemData = null;
                        if (playerLoadInfo.weaponModelID == -1)
                        {
                            EquipSetInfo equipSet = MonoBehaviourSingleton <StatusManager> .I.GetEquipSet(selfCharaEquipSetNo);

                            equipItemData = Singleton <EquipItemTable> .I.GetEquipItemData(equipSet.item[0].tableID);

                            if (equipItemData != null)
                            {
                                playerLoadInfo.weaponModelID      = equipItemData.GetModelID(MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex);
                                playerLoadInfo.weaponColor0       = equipItemData.modelColor0;
                                playerLoadInfo.weaponColor1       = equipItemData.modelColor1;
                                playerLoadInfo.weaponColor2       = equipItemData.modelColor2;
                                playerLoadInfo.weaponEffectID     = equipItemData.effectID;
                                playerLoadInfo.weaponEffectColor  = equipItemData.effectColor;
                                playerLoadInfo.weaponEffectParam  = equipItemData.effectParam;
                                playerLoadInfo.weaponSpAttackType = (uint)equipItemData.spAttackType;
                            }
                        }
                        else
                        {
                            playerLoadInfo.weaponModelID      = record.playerLoadInfo.weaponModelID;
                            playerLoadInfo.weaponColor0       = record.playerLoadInfo.weaponColor0;
                            playerLoadInfo.weaponColor1       = record.playerLoadInfo.weaponColor1;
                            playerLoadInfo.weaponColor2       = record.playerLoadInfo.weaponColor2;
                            playerLoadInfo.weaponEffectID     = record.playerLoadInfo.weaponEffectID;
                            playerLoadInfo.weaponEffectColor  = record.playerLoadInfo.weaponEffectColor;
                            playerLoadInfo.weaponEffectParam  = record.playerLoadInfo.weaponEffectParam;
                            playerLoadInfo.weaponSpAttackType = record.playerLoadInfo.weaponSpAttackType;
                        }
                        record.animID = -1;
                    }
                    else
                    {
                        playerLoadInfo = PlayerLoadInfo.FromUserStatus(true, isVisualMode, selfCharaEquipSetNo);
                    }
                }
                else if (AlwaysNowStatusModel || record.playerLoadInfo.weaponModelID == -1)
                {
                    record.playerLoadInfo = PlayerLoadInfo.FromUserStatus(true, isVisualMode, -1);
                    record.animID         = -1;
                    playerLoadInfo        = record.playerLoadInfo;
                }
            }
            else if (isVisualMode)
            {
                playerLoadInfo = record.playerLoadInfo;
            }
            else
            {
                playerLoadInfo = PlayerLoadInfo.FromCharaInfo(record.charaInfo, true, true, true, isVisualMode);
                playerLoadInfo.weaponModelID      = record.playerLoadInfo.weaponModelID;
                playerLoadInfo.weaponColor0       = record.playerLoadInfo.weaponColor0;
                playerLoadInfo.weaponColor1       = record.playerLoadInfo.weaponColor1;
                playerLoadInfo.weaponColor2       = record.playerLoadInfo.weaponColor2;
                playerLoadInfo.weaponEffectID     = record.playerLoadInfo.weaponEffectID;
                playerLoadInfo.weaponEffectColor  = record.playerLoadInfo.weaponEffectColor;
                playerLoadInfo.weaponEffectParam  = record.playerLoadInfo.weaponEffectParam;
                playerLoadInfo.weaponSpAttackType = record.playerLoadInfo.weaponSpAttackType;
            }
            SetRenderPlayerModel(playerLoadInfo);
        }
    }