コード例 #1
0
    protected override void InitDialog(object data_object)
    {
        base.InitDialog(new Desc(TYPE.DEFAULT, string.Empty, null, null, null, null));
        FriendCharaInfo friendCharaInfo = data_object as FriendCharaInfo;

        SetLabelText(base._transform, UI.LBL_USER_KICK, $"{friendCharaInfo.name} will be kicked from your clan!");
    }
コード例 #2
0
    private HomeCharacterBase CreateChara(WayPoint way_point)
    {
        FriendCharaInfo chara_info = null;

        if (Random.Range(0, 1) == 0)
        {
            List <FriendCharaInfo> chara = MonoBehaviourSingleton <FriendManager> .I.homeCharas.chara;
            int count = chara.Count;
            if (count > 0)
            {
                int num  = Random.Range(0, count);
                int num2 = num;
                do
                {
                    FriendCharaInfo info = chara[num2];
                    if (info != null && !(charas.Find((HomeCharacterBase o) => o.GetFriendCharaInfo() != null && o.GetFriendCharaInfo().userId == info.userId) != null))
                    {
                        chara_info = info;
                        break;
                    }
                    num2 = (num2 + 1) % count;
                }while (num != num2);
            }
        }
        HomeCharacterBase homeCharacterBase = creater.CreatePlayer(this, peopleRoot, chara_info, way_point);

        charas.Add(homeCharacterBase);
        return(homeCharacterBase);
    }
コード例 #3
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();
        });
    }
コード例 #4
0
    public HomeCharacterBase CreatePlayer(HomePeople home_people, Transform parent, FriendCharaInfo chara_info, WayPoint way_point)
    {
        //IL_0013: Unknown result type (might be due to invalid IL or missing references)
        //IL_0018: Expected O, but got Unknown
        //IL_001c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0060: Unknown result type (might be due to invalid IL or missing references)
        //IL_0065: Unknown result type (might be due to invalid IL or missing references)
        //IL_006a: Unknown result type (might be due to invalid IL or missing references)
        //IL_00af: Unknown result type (might be due to invalid IL or missing references)
        HomePlayerCharacter homePlayerCharacter = Utility.CreateGameObjectAndComponent("HomePlayerCharacter", parent, -1) as HomePlayerCharacter;
        Transform           val = homePlayerCharacter.get_transform();

        val.set_position(way_point.GetPosInCollider());
        homePlayerCharacter.SetHomePeople(home_people);
        homePlayerCharacter.SetWayPoint(way_point);
        homePlayerCharacter.SetFriendCharcterInfo(chara_info);
        float num  = 0f;
        float num2 = 0f;

        if (!way_point.get_name().StartsWith("LEAF"))
        {
            Vector3 eulerAngles = way_point.get_transform().get_eulerAngles();
            num  = eulerAngles.y;
            num2 = 0f;
        }
        else
        {
            num  = (float)Random.Range(0, 360);
            num2 = Random.Range(-2f, 2f);
        }
        homePlayerCharacter.SetWaitTime(num2);
        val.set_eulerAngles(new Vector3(0f, num, 0f));
        return(homePlayerCharacter);
    }
コード例 #5
0
    public override void SetupFollowButton()
    {
        FriendCharaInfo friendCharaInfo = MonoBehaviourSingleton <FriendManager> .I.homeCharas.chara.Find((FriendCharaInfo chara) => chara.userId == charaInfo.userId);

        bool flag     = MonoBehaviourSingleton <FriendManager> .I.followNum == MonoBehaviourSingleton <UserInfoManager> .I.userStatus.maxFollow;
        bool flag2    = !friendCharaInfo.following;
        bool follower = friendCharaInfo.follower;

        SetEvent(transRoot, UI.BTN_FOLLOW, "FOLLOW", 0);
        if (flag && flag2)
        {
            SetActive(transRoot, UI.BTN_FOLLOW, true);
            SetActive(transRoot, UI.BTN_UNFOLLOW, false);
            SetEvent(transRoot, UI.BTN_FOLLOW, "INVALID_FOLLOW", 0);
        }
        else
        {
            SetActive(transRoot, UI.BTN_FOLLOW, flag2);
            SetActive(transRoot, UI.BTN_UNFOLLOW, !flag2);
        }
        SetActive(transRoot, UI.OBJ_BLACKLIST_ROOT, true);
        bool flag3 = MonoBehaviourSingleton <BlackListManager> .I.CheckBlackList(charaInfo.userId);

        SetActive(transRoot, UI.BTN_BLACKLIST_IN, !flag3);
        SetActive(transRoot, UI.BTN_BLACKLIST_OUT, flag3);
        SetActive(transRoot, UI.SPR_FOLLOW_ARROW, !flag3 && !flag2);
        SetActive(transRoot, UI.SPR_FOLLOWER_ARROW, !flag3 && follower);
        SetActive(transRoot, UI.SPR_BLACKLIST_ICON, flag3);
    }
コード例 #6
0
    public void SetFollowerToHomeCharaInfo(int userId, bool follower)
    {
        FriendCharaInfo friendCharaInfo = homeCharas.chara.Find((FriendCharaInfo c) => c.userId == userId);

        if (friendCharaInfo != null)
        {
            friendCharaInfo.follower = follower;
        }
    }
コード例 #7
0
    public void RemoveTalkUser(FriendCharaInfo message_user)
    {
        FriendCharaInfo friendCharaInfo = talkUsers.FirstOrDefault((FriendCharaInfo o) => o.userId == message_user.userId);

        if (friendCharaInfo != null)
        {
            talkUsers.Remove(friendCharaInfo);
        }
    }
コード例 #8
0
    public void SetTalkUser(FriendCharaInfo message_user)
    {
        FriendCharaInfo friendCharaInfo = talkUsers.FirstOrDefault((FriendCharaInfo o) => o.userId == message_user.userId);

        if (friendCharaInfo == null)
        {
            talkUsers.Insert(0, message_user);
        }
        talkUser = message_user;
    }
コード例 #9
0
 public override void UpdateUI()
 {
     SetLabelText((Enum)UI.LBL_HUNTER, string.Format(base.sectionData.GetText("TEXT_HUNTER"), _info.currentMem, _info.memCap));
     SetGrid(UI.GRD_LIST, "GuildInfoDetailListItem", members.Count, true, delegate(int i, Transform t, bool b)
     {
         FriendCharaInfo friendCharaInfo = members[i];
         string str = (friendCharaInfo.userId != _clanMasterUserId) ? string.Empty : string.Format("({0})", base.sectionData.GetText("TEXT_MASTER"));
         SetLabelText(t, UI.LBL_NAME, friendCharaInfo.name + str);
         SetEvent(t, "DETAIL", friendCharaInfo);
     });
 }
コード例 #10
0
    public override void OnQuery_FOLLOW_INFO()
    {
        int             num             = (int)GameSection.GetEventData();
        FriendCharaInfo friendCharaInfo = recvList[num];

        MonoBehaviourSingleton <StatusManager> .I.otherEquipSetSaveIndex = num + 4;
        GameSection.SetEventData(new object[2]
        {
            friendCharaInfo,
            lastEventData
        });
    }
コード例 #11
0
    private static PlayerLoader Load(HomePlayerCharacter chara, GameObject go, FriendCharaInfo chara_info, PlayerLoader.OnCompleteLoad callback)
    {
        PlayerLoader   playerLoader   = go.AddComponent <PlayerLoader>();
        PlayerLoadInfo playerLoadInfo = new PlayerLoadInfo();

        if (chara_info != null)
        {
            playerLoadInfo.Apply(chara_info, false, true, true, true);
            chara.sexType = chara_info.sex;
        }
        else
        {
            int num = Random.Range(0, 2);
            int face_type_id;
            int hair_style_id;
            if (num == 0)
            {
                int[] defaultHasManFaceIndexes = Singleton <AvatarTable> .I.defaultHasManFaceIndexes;
                face_type_id = defaultHasManFaceIndexes[Random.Range(0, defaultHasManFaceIndexes.Length)];
                int[] defaultHasManHeadIndexes = Singleton <AvatarTable> .I.defaultHasManHeadIndexes;
                hair_style_id = defaultHasManHeadIndexes[Random.Range(0, defaultHasManHeadIndexes.Length)];
            }
            else
            {
                int[] defaultHasWomanFaceIndexes = Singleton <AvatarTable> .I.defaultHasWomanFaceIndexes;
                face_type_id = defaultHasWomanFaceIndexes[Random.Range(0, defaultHasWomanFaceIndexes.Length)];
                int[] defaultHasWomanHeadIndexes = Singleton <AvatarTable> .I.defaultHasWomanHeadIndexes;
                hair_style_id = defaultHasWomanHeadIndexes[Random.Range(0, defaultHasWomanHeadIndexes.Length)];
            }
            int[] defaultHasSkinColorIndexes = Singleton <AvatarTable> .I.defaultHasSkinColorIndexes;
            int   skin_color_id = defaultHasSkinColorIndexes[Random.Range(0, defaultHasSkinColorIndexes.Length)];
            int[] defaultHasHairColorIndexes = Singleton <AvatarTable> .I.defaultHasHairColorIndexes;
            int   hair_color_id = defaultHasHairColorIndexes[Random.Range(0, defaultHasHairColorIndexes.Length)];
            playerLoadInfo.SetFace(num, face_type_id, skin_color_id);
            playerLoadInfo.SetHair(num, hair_style_id, hair_color_id);
            OutGameSettingsManager.HomeScene.RandomEquip randomEquip = MonoBehaviourSingleton <OutGameSettingsManager> .I.homeScene.randomEquip;
            uint equip_body_item_id = (uint)Utility.Lot(randomEquip.bodys);
            uint equip_head_item_id = (uint)Utility.Lot(randomEquip.helms);
            uint equip_arm_item_id  = (uint)Utility.Lot(randomEquip.arms);
            uint equip_leg_item_id  = (uint)Utility.Lot(randomEquip.legs);
            playerLoadInfo.SetEquipBody(num, equip_body_item_id);
            if (Random.Range(0, 4) != 0)
            {
                playerLoadInfo.SetEquipHead(num, equip_head_item_id);
            }
            playerLoadInfo.SetEquipArm(num, equip_arm_item_id);
            playerLoadInfo.SetEquipLeg(num, equip_leg_item_id);
            chara.sexType = num;
        }
        playerLoader.StartLoad(playerLoadInfo, 0, 99, false, false, true, true, false, false, true, true, SHADER_TYPE.NORMAL, callback, true, -1);
        return(playerLoader);
    }
コード例 #12
0
    public override void Initialize()
    {
        //IL_0068: Unknown result type (might be due to invalid IL or missing references)
        friendCharaInfo = (GameSection.GetEventData() as FriendCharaInfo);
        data            = (GameSection.GetEventData() as CharaInfo);
        if (friendCharaInfo != null)
        {
            dataFollower  = friendCharaInfo.follower;
            dataFollowing = friendCharaInfo.following;
        }
        nowSectionName = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName();

        isFollowerList = Object.op_Implicit(Object.FindObjectOfType(typeof(FriendFollowerList)));
        InitializeBase();
    }
コード例 #13
0
    private void SetButton(FriendCharaInfo data)
    {
        Transform root = FindCtrl(base._transform, UI.OBJ_FRIEND_INFO_ROOT);

        if (data == null || data.requestId == 0)
        {
            SetActive(root, UI.BTN_ACCEPT, false);
            SetActive(root, UI.BTN_REJECT, false);
        }
        else
        {
            SetActive(root, UI.BTN_ACCEPT, true);
            SetActive(root, UI.BTN_REJECT, true);
        }
    }
コード例 #14
0
    protected override void SetListItem(int i, Transform t, string event_name, FriendCharaInfo member)
    {
        SetActive(t, UI.OBJ_OFFLINE_MASK, false);
        bool flag = _invitedList.Contains(member.userId);

        SetActive(t, UI.OBJ_SELECTED, flag);
        SetButtonEnabled(t, !flag);
        if (!flag)
        {
            SetEvent(t, ListItemEvent, new object[2]
            {
                i,
                member
            });
        }
    }
コード例 #15
0
    public bool AddTalkUser(int userId)
    {
        FriendCharaInfo friendCharaInfo = talkUsers.FirstOrDefault((FriendCharaInfo o) => o.userId == userId);

        if (friendCharaInfo != null)
        {
            return(false);
        }
        friendCharaInfo = members.FirstOrDefault((FriendCharaInfo o) => o.userId == userId);
        if (friendCharaInfo != null)
        {
            talkUsers.Add(friendCharaInfo);
            return(true);
        }
        return(false);
    }
コード例 #16
0
    protected void OnQuery_GUILD_INFO()
    {
        //IL_0036: Unknown result type (might be due to invalid IL or missing references)
        //IL_0042: Expected O, but got Unknown
        //IL_005f: Unknown result type (might be due to invalid IL or missing references)
        //IL_007c: Unknown result type (might be due to invalid IL or missing references)
        //IL_00a9: Unknown result type (might be due to invalid IL or missing references)
        memberInfoData = (FriendCharaInfo)GameSection.GetEventData();
        SetButton();
        GameObject sender = GameSceneEvent.current.sender;

        FindCtrl(base._transform, UI.SPR_GUILD_INFO).SetParent(FindCtrl(sender.get_transform(), UI.OBJ_GUILD_INFO));
        FindCtrl(base._transform, UI.SPR_GUILD_INFO).set_localPosition(Vector3.get_zero());
        FindCtrl(base._transform, UI.SPR_GUILD_INFO).set_localScale(Vector3.get_one());
        Transform val = FindCtrl(base._transform, UI.SPR_GUILD_INFO);

        SetActive(base._transform, UI.SPR_GUILD_INFO, !val.get_gameObject().get_activeSelf());
    }
コード例 #17
0
 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();
 }
コード例 #18
0
 public override void UpdateUI()
 {
     SetActive((Enum)UI.OBJ_GUILD_NUMBER_ROOT, true);
     SetLabelText(UI.LBL_GUILD_NUMBER_MAX, allMember.Count);
     if (allMember == null || allMember.Count == 0)
     {
         SetActive((Enum)UI.STR_NON_LIST, true);
         SetActive((Enum)UI.GRD_LIST, false);
     }
     else
     {
         int online_count = 0;
         SetDynamicList((Enum)UI.GRD_LIST, "GuildMemberListItem", allMember.Count, true, (Func <int, bool>) null, (Func <int, Transform, Transform>) null, (Action <int, Transform, bool>) delegate(int i, Transform t, bool is_recycle)
         {
             FriendCharaInfo member = allMember[i];
             bool flag = MonoBehaviourSingleton <BlackListManager> .I.CheckBlackList(member.userId);
             SetActive(t, UI.SPR_BLACKLIST_ICON, flag);
             SetActive(t, UI.SPR_FOLLOW, !flag && member.following);
             SetActive(t, UI.SPR_FOLLOWER, !flag && member.follower);
             SetActive(t, UI.SPR_ICON_FIRST_MET, false);
             SetCharaInfo(member, i, t, is_recycle, 0 == member.userId);
             bool flag2 = status.Any((int st) => st == member.userId);
             if (flag2)
             {
                 online_count++;
             }
             if (requestMembers.Contains(member))
             {
                 SetActive(t, UI.OBJ_OFFLINE_MASK, false);
             }
             else
             {
                 SetActive(t, UI.OBJ_OFFLINE_MASK, !flag2);
             }
             SetActive(t, UI.OBJ_REQUEST_PENDING, requestMembers.Contains(member));
             SetListItem(i, t, ListItemEvent, member);
         });
         SetLabelText((Enum)UI.LBL_GUILD_NUMBER_NOW, online_count.ToString());
         SetActive((Enum)UI.STR_NON_LIST, false);
         SetActive((Enum)UI.GRD_LIST, true);
     }
 }
コード例 #19
0
    private void OnQuery_SELECT()
    {
        object[]        array  = GameSection.GetEventData() as object[];
        int             index  = (int)array[0];
        FriendCharaInfo member = array[1] as FriendCharaInfo;

        GameSection.StayEvent();
        MonoBehaviourSingleton <GuildManager> .I.SendDonateInvite(_info.id, member.userId, delegate(bool success)
        {
            //IL_001f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0025: Unknown result type (might be due to invalid IL or missing references)
            //IL_002a: Expected O, but got Unknown
            if (success)
            {
                Transform ctrl = GetCtrl(UI.GRD_LIST);
                Transform val  = ctrl.GetChild(index).GetChild(0);
                SetActive(val, UI.OBJ_SELECTED, true);
                SetButtonEnabled(val, false);
                _invitedList.Remove(member.userId);
            }
            GameSection.ResumeEvent(false, null);
        });
    }
コード例 #20
0
    private void OnQuery_MESSAGE()
    {
        FriendCharaInfo talkUser = GameSection.GetEventData() as FriendCharaInfo;

        MonoBehaviourSingleton <GuildManager> .I.SetTalkUser(talkUser);
    }
コード例 #21
0
 protected virtual void SetListItem(int i, Transform t, string event_name, FriendCharaInfo member)
 {
     SetEvent(t, event_name, member);
 }
コード例 #22
0
 public void SetFriendCharcterInfo(FriendCharaInfo charaInfo)
 {
     this.charaInfo = charaInfo;
 }
コード例 #23
0
    protected override void UpdateParam()
    {
        //IL_0017: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d0: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d6: Expected O, but got Unknown
        //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
        //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
        //IL_011a: Unknown result type (might be due to invalid IL or missing references)
        //IL_011b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0120: Unknown result type (might be due to invalid IL or missing references)
        //IL_0150: Unknown result type (might be due to invalid IL or missing references)
        //IL_0151: Unknown result type (might be due to invalid IL or missing references)
        //IL_01f4: Unknown result type (might be due to invalid IL or missing references)
        //IL_01f5: Unknown result type (might be due to invalid IL or missing references)
        //IL_0281: Unknown result type (might be due to invalid IL or missing references)
        //IL_0282: Unknown result type (might be due to invalid IL or missing references)
        //IL_0318: Unknown result type (might be due to invalid IL or missing references)
        //IL_0319: Unknown result type (might be due to invalid IL or missing references)
        //IL_031e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0320: Unknown result type (might be due to invalid IL or missing references)
        //IL_0322: Unknown result type (might be due to invalid IL or missing references)
        //IL_0324: Unknown result type (might be due to invalid IL or missing references)
        //IL_0326: Unknown result type (might be due to invalid IL or missing references)
        //IL_0342: Unknown result type (might be due to invalid IL or missing references)
        //IL_0344: Unknown result type (might be due to invalid IL or missing references)
        //IL_0349: Unknown result type (might be due to invalid IL or missing references)
        //IL_0365: Unknown result type (might be due to invalid IL or missing references)
        //IL_0367: Unknown result type (might be due to invalid IL or missing references)
        //IL_036c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0374: Unknown result type (might be due to invalid IL or missing references)
        //IL_0379: Unknown result type (might be due to invalid IL or missing references)
        //IL_037b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0380: Unknown result type (might be due to invalid IL or missing references)
        //IL_0399: Unknown result type (might be due to invalid IL or missing references)
        //IL_03b6: Unknown result type (might be due to invalid IL or missing references)
        //IL_03bb: Unknown result type (might be due to invalid IL or missing references)
        //IL_03bf: Unknown result type (might be due to invalid IL or missing references)
        //IL_03c1: Unknown result type (might be due to invalid IL or missing references)
        //IL_03c6: Unknown result type (might be due to invalid IL or missing references)
        //IL_03f3: Unknown result type (might be due to invalid IL or missing references)
        //IL_0410: Unknown result type (might be due to invalid IL or missing references)
        //IL_0415: Unknown result type (might be due to invalid IL or missing references)
        //IL_0419: Unknown result type (might be due to invalid IL or missing references)
        //IL_041b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0420: Unknown result type (might be due to invalid IL or missing references)
        //IL_044d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0481: Unknown result type (might be due to invalid IL or missing references)
        //IL_0487: Expected O, but got Unknown
        //IL_04bb: Unknown result type (might be due to invalid IL or missing references)
        //IL_04cb: Expected O, but got Unknown
        //IL_04e7: Unknown result type (might be due to invalid IL or missing references)
        //IL_04ed: Expected O, but got Unknown
        //IL_0538: Unknown result type (might be due to invalid IL or missing references)
        //IL_054a: Unknown result type (might be due to invalid IL or missing references)
        //IL_0561: Unknown result type (might be due to invalid IL or missing references)
        //IL_0573: Unknown result type (might be due to invalid IL or missing references)
        //IL_058a: Unknown result type (might be due to invalid IL or missing references)
        //IL_059c: Unknown result type (might be due to invalid IL or missing references)
        //IL_05b7: Unknown result type (might be due to invalid IL or missing references)
        //IL_05bd: Expected O, but got Unknown
        //IL_05ce: Unknown result type (might be due to invalid IL or missing references)
        //IL_05d4: Expected O, but got Unknown
        //IL_06e4: Unknown result type (might be due to invalid IL or missing references)
        //IL_06e5: Unknown result type (might be due to invalid IL or missing references)
        //IL_06e6: Unknown result type (might be due to invalid IL or missing references)
        //IL_06eb: Unknown result type (might be due to invalid IL or missing references)
        //IL_06ed: Unknown result type (might be due to invalid IL or missing references)
        //IL_06ef: Unknown result type (might be due to invalid IL or missing references)
        //IL_0703: Unknown result type (might be due to invalid IL or missing references)
        //IL_0708: Unknown result type (might be due to invalid IL or missing references)
        //IL_0724: Unknown result type (might be due to invalid IL or missing references)
        //IL_079e: Unknown result type (might be due to invalid IL or missing references)
        //IL_082c: Unknown result type (might be due to invalid IL or missing references)
        //IL_083b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0840: Unknown result type (might be due to invalid IL or missing references)
        //IL_0845: Unknown result type (might be due to invalid IL or missing references)
        //IL_0bb4: Unknown result type (might be due to invalid IL or missing references)
        //IL_0bca: Unknown result type (might be due to invalid IL or missing references)
        if (targetPlayer == null || !targetPlayer.get_gameObject().get_activeSelf() || targetPlayer.isLoading || (!MonoBehaviourSingleton <InGameProgress> .I.isGameProgressStop && targetPlayer.isStopCounter) || (!targetPlayer.isCoopInitialized && targetPlayer.IsPuppet()) || !isVisible)
        {
            SetActiveSafe(nearUI, false);
            SetActiveSafe(farUI, false);
            if (arrowUI != null)
            {
                SetActiveSafe(arrowUI, false);
            }
            if (prayerGauge != null)
            {
                SetActiveSafe(prayerGauge.get_gameObject(), false);
            }
        }
        else
        {
            Vector3 position = targetPlayer._position;
            position.y += targetPlayer.playerParameter.uiHeight;
            Vector3 screenUIPosition = Utility.GetScreenUIPosition(MonoBehaviourSingleton <AppMain> .I.mainCamera, MonoBehaviourSingleton <InGameCameraManager> .I.cameraTransform, position);
            screenZ            = screenUIPosition.z;
            screenUIPosition.z = 0f;
            float   num  = 1f / MonoBehaviourSingleton <UIManager> .I.uiRoot.pixelSizeAdjustment;
            Vector3 val  = screenUIPosition;
            bool    flag = false;
            float   num2 = (float)Screen.get_width();
            float   num3 = (float)Screen.get_height();
            if (screenUIPosition.x < screenSideOffset * num)
            {
                screenUIPosition.x = screenSideOffset * num;
                flag = true;
            }
            else if (screenUIPosition.x > num2 - screenSideOffset * num)
            {
                screenUIPosition.x = num2 - screenSideOffset * num;
                flag = true;
            }
            float num4 = screenBottomOffset;
            if (FieldManager.IsValidInGameNoQuest())
            {
                num4 = screenBottomFieldOffset;
            }
            if (screenUIPosition.y < num4 * num)
            {
                screenUIPosition.y = num4 * num;
                flag = true;
            }
            Vector3 val2 = screenUIPosition;
            if (chatUI.get_activeSelf())
            {
                if (val2.x < chatSideOffset * num)
                {
                    val2.x = chatSideOffset * num;
                }
                else if (val2.x > num2 - chatSideOffset * num)
                {
                    val2.x = num2 - chatSideOffset * num;
                }
                if (val2.y > num3 - chatTopOffset * num)
                {
                    val2.y = num3 - chatTopOffset * num;
                }
            }
            Vector3 val3 = screenUIPosition;
            if (chatStampUI.get_activeSelf())
            {
                if (val3.x < chatStampSideOffset * num)
                {
                    val3.x = chatStampSideOffset * num;
                }
                else if (val3.x > num2 - chatStampSideOffset * num)
                {
                    val3.x = num2 - chatStampSideOffset * num;
                }
                if (val3.y > num3 - chatStampTopOffset * num)
                {
                    val3.y = num3 - chatStampTopOffset * num;
                }
            }
            Vector3 val4 = MonoBehaviourSingleton <UIManager> .I.uiCamera.ScreenToWorldPoint(screenUIPosition);

            Vector3 val5 = val4;
            Vector3 val6 = val4;
            if (chatUI.get_activeSelf())
            {
                val5 = MonoBehaviourSingleton <UIManager> .I.uiCamera.ScreenToWorldPoint(val2);
            }
            if (chatStampUI.get_activeSelf())
            {
                val6 = MonoBehaviourSingleton <UIManager> .I.uiCamera.ScreenToWorldPoint(val3);
            }
            Vector3 val7 = transform.get_position() - val4;
            if (val7.get_sqrMagnitude() >= 2E-05f)
            {
                transform.set_position(val4);
            }
            if (chatUI.get_activeSelf())
            {
                Matrix4x4 worldToLocalMatrix = transform.get_worldToLocalMatrix();
                Vector3   localPosition      = worldToLocalMatrix.MultiplyPoint3x4(val5);
                localPosition.y += chatUILocalPos.y;
                localPosition.z  = 0f;
                chatTransform.set_localPosition(localPosition);
            }
            if (chatStampUI.get_activeSelf())
            {
                Matrix4x4 worldToLocalMatrix2 = transform.get_worldToLocalMatrix();
                Vector3   localPosition2      = worldToLocalMatrix2.MultiplyPoint3x4(val6);
                localPosition2.y += chatUILocalPos.y;
                localPosition2.z  = 0f;
                chatStampTransform.set_localPosition(localPosition2);
            }
            if (prayerGauge != null)
            {
                if (targetPlayer.revivalTimePercent > 0f)
                {
                    SetActiveSafe(prayerGauge.get_gameObject(), true);
                    prayerGauge.SetPercent(targetPlayer.revivalTimePercent, true);
                    if (nowPrayer != null)
                    {
                        SetActiveSafe(nowPrayer.get_gameObject(), targetPlayer.isPrayer);
                    }
                    if (targetPlayer.isPrayer)
                    {
                        SetActiveSafe(prayerGaugeAdd.get_gameObject(), true);
                        prayerGaugeAdd.SetPercent(targetPlayer.revivalTimePercent, true);
                        switch (targetPlayer.prayerNum)
                        {
                        default:
                            SetUISpriteColor(prayerGaugeSprite, prayerGaugeColor1);
                            SetUISpriteColor(prayerGaugeAddSprite, prayerGaugeColor1);
                            break;

                        case 2:
                            SetUISpriteColor(prayerGaugeSprite, prayerGaugeColor2);
                            SetUISpriteColor(prayerGaugeAddSprite, prayerGaugeColor2);
                            break;

                        case 3:
                            SetUISpriteColor(prayerGaugeSprite, prayerGaugeColor3);
                            SetUISpriteColor(prayerGaugeAddSprite, prayerGaugeColor3);
                            break;
                        }
                    }
                    else
                    {
                        SetActiveSafe(prayerGaugeAdd.get_gameObject(), false);
                    }
                }
                else
                {
                    SetActiveSafe(prayerGauge.get_gameObject(), false);
                }
            }
            Self self = targetPlayer as Self;
            if (self != null)
            {
                bool flag2 = false;
                if (damagedTimer >= 0f)
                {
                    if (Time.get_time() - damagedTimer >= selfShowTime)
                    {
                        damagedTimer = -1f;
                    }
                    else
                    {
                        flag2 = true;
                    }
                }
                if (!flag2)
                {
                    SetActiveSafe(nearUI, false);
                    SetActiveSafe(farUI, false);
                    return;
                }
            }
            if ((flag && FieldManager.IsValidInGameNoQuest()) || !GameSaveData.instance.headName)
            {
                SetActiveSafe(nearUI, false);
                SetActiveSafe(farUI, false);
            }
            else
            {
                if (targetPlayer.rescueTime > 0f)
                {
                    flag = true;
                }
                if (flag && self == null)
                {
                    SetActiveSafe(nearUI, false);
                    SetActiveSafe(farUI, true);
                    if (arrowUI != null)
                    {
                        Vector3 val8 = val - screenUIPosition;
                        if (val8 != Vector3.get_zero())
                        {
                            float num5 = 90f - Vector3.Angle(Vector3.get_right(), val8);
                            arrowTransform.set_eulerAngles(new Vector3(0f, 0f, num5));
                            SetActiveSafe(arrowUI, true);
                            Vector3 localPosition3 = default(Vector3);
                            localPosition3._002Ector(0f, 0f, 0f);
                            float num6 = Mathf.Sin(num5 * 0.0174532924f);
                            if (num6 > 0.01f)
                            {
                                localPosition3.x = arrowSideOffset;
                            }
                            else if (num6 < -0.01f)
                            {
                                localPosition3.x = 0f - arrowSideOffset;
                            }
                            arrowTransform.set_localPosition(localPosition3);
                        }
                        else
                        {
                            SetActiveSafe(arrowUI, false);
                        }
                    }
                    if (distanceLabel != null)
                    {
                        if (targetPlayer.rescueTime > 0f)
                        {
                            distanceLabel.text = string.Empty + Mathf.CeilToInt(targetPlayer.rescueTime) + "\u3000";
                        }
                        else if (MonoBehaviourSingleton <StageObjectManager> .I.self != null)
                        {
                            Vector3 val9 = targetPlayer._position - MonoBehaviourSingleton <StageObjectManager> .I.self._position;
                            int     num7 = (int)val9.get_magnitude();
                            distanceLabel.text = string.Empty + num7 + "m";
                        }
                    }
                    if (vitalSprite != null)
                    {
                        if (targetPlayer.hp <= 0)
                        {
                            if (targetPlayer.IsRescuable())
                            {
                                vitalSprite.spriteName = "Ingame_member_vitalsign_red";
                            }
                            else
                            {
                                vitalSprite.spriteName = "Ingame_member_vitalsign_gray";
                            }
                        }
                        else if ((float)targetPlayer.hp <= (float)targetPlayer.hpMax * 0.25f)
                        {
                            vitalSprite.spriteName = "Ingame_member_vitalsign_yellow";
                        }
                        else
                        {
                            vitalSprite.spriteName = "Ingame_member_vitalsign_green";
                        }
                    }
                }
                else
                {
                    SetActiveSafe(nearUI, true);
                    SetActiveSafe(farUI, false);
                    if (gaugeUI != null)
                    {
                        float num8 = (float)targetPlayer.hp / (float)targetPlayer.hpMax;
                        if (num8 < 0f)
                        {
                            num8 = 0f;
                        }
                        if (gaugeUI.nowPercent != num8)
                        {
                            gaugeUI.SetPercent(num8, true);
                        }
                    }
                    if (healGaugeUI != null)
                    {
                        float num9 = (float)targetPlayer.healHp / (float)targetPlayer.hpMax;
                        if (num9 < 0f)
                        {
                            num9 = 0f;
                        }
                        if (healGaugeUI.nowPercent != num9)
                        {
                            healGaugeUI.SetPercent(num9, true);
                        }
                    }
                    if (shieldGaugeUI != null)
                    {
                        float num10 = 0f;
                        num10 = ((!targetPlayer.IsValidShield()) ? 0f : ((float)(int)targetPlayer.ShieldHp / (float)(int)targetPlayer.ShieldHpMax));
                        if (num10 < 0f)
                        {
                            num10 = 0f;
                        }
                        if (shieldGaugeUI.nowPercent != num10)
                        {
                            shieldGaugeUI.SetPercent(num10, true);
                        }
                    }
                    if (nameLabel != null)
                    {
                        if (targetPlayer.createInfo != null && targetPlayer.createInfo.charaInfo != null && MonoBehaviourSingleton <FieldManager> .IsValid() && MonoBehaviourSingleton <FieldManager> .I.fieldData != null && MonoBehaviourSingleton <FieldManager> .I.fieldData.field != null && MonoBehaviourSingleton <FieldManager> .I.fieldData.field.slotInfos != null && currentUserId != targetPlayer.createInfo.charaInfo.userId)
                        {
                            List <FieldModel.SlotInfo> slotInfos       = MonoBehaviourSingleton <FieldManager> .I.fieldData.field.slotInfos;
                            FriendCharaInfo            friendCharaInfo = null;
                            bool flag3 = false;
                            int  i     = 0;
                            for (int count = slotInfos.Count; i < count; i++)
                            {
                                if (slotInfos[i].userId == targetPlayer.createInfo.charaInfo.userId)
                                {
                                    friendCharaInfo = slotInfos[i].userInfo;
                                }
                            }
                            if (friendCharaInfo != null)
                            {
                                if (friendCharaInfo.follower && friendCharaInfo.following)
                                {
                                    friendIcon.get_gameObject().SetActive(true);
                                }
                                else
                                {
                                    friendIcon.get_gameObject().SetActive(false);
                                }
                                currentUserId = targetPlayer.createInfo.charaInfo.userId;
                            }
                        }
                        nameLabel.text            = targetPlayer.fullName;
                        nameLabel.supportEncoding = true;
                    }
                }
            }
        }
    }
コード例 #24
0
 public override void Initialize()
 {
     charaInfo = (GameSection.GetEventData() as FriendCharaInfo);
     base.Initialize();
 }
コード例 #25
0
 protected override void SetListItem(int i, Transform t, bool is_recycle, FriendCharaInfo data)
 {
     base.SetListItem(i, t, is_recycle, data);
     SetRankiItem(i, t);
 }