Ejemplo n.º 1
0
    public void ShowList()
    {
        this.m_lbRankList.Clear();
        string text  = string.Empty;
        string empty = string.Empty;

        foreach (UI_RANKINFO current in this.ListRankInfo)
        {
            NewListItem newListItem = new NewListItem(this.m_lbRankList.ColumnNum, true, string.Empty);
            newListItem.SetListItemData(0, current.Charname, null, null, null);
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1031");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "count",
                current.iCharLevel
            });

            newListItem.SetListItemData(1, empty, null, null, null);
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2093");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "rank",
                current.i32Rank
            });

            newListItem.SetListItemData(2, empty, null, null, null);
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2091");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "ratingpoint",
                1000L + current.i64MatchPoint
            });

            newListItem.SetListItemData(3, empty, null, null, null);
            newListItem.SetListItemData(4, false);
            this.m_lbRankList.Add(newListItem);
        }
    }
Ejemplo n.º 2
0
    private NewListItem SetListItem(COMMUNITY_USER_INFO info)
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        NewListItem  newListItem = new NewListItem(this.m_lbCommunityList.ColumnNum, true, string.Empty);
        string       text        = string.Empty;
        string       text2       = string.Empty;

        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1030");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
        {
            text,
            "name",
            info.strName
        });

        newListItem.SetListItemData(0, text2, null, null, null);
        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1031");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
        {
            text,
            "count",
            info.i16Level
        });

        newListItem.SetListItemData(1, text2, null, null, null);
        text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("575");

        newListItem.SetListItemData(2, text2, info, new EZValueChangedDelegate(this.BtnClickWhisper), null);
        text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("542");

        newListItem.SetListItemData(3, text2, info, new EZValueChangedDelegate(this.BtnInvite), null);
        text2 = Client.GetInstance().Get_WorldServerName_InfoFromID(info.i32WorldID_Connect);
        newListItem.SetListItemData(4, text2, null, null, null);
        if (kMyCharInfo.m_kFriendInfo.IsFriend(info.i64PersonID) || NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(info.i64PersonID) != null)
        {
            newListItem.SetListItemData(5, true);
            newListItem.SetListItemData(6, true);
        }
        else
        {
            newListItem.SetListItemData(5, false);
            newListItem.SetListItemData(6, false);
        }
        newListItem.Data = info;
        return(newListItem);
    }
    private void _LinkItemData()
    {
        foreach (ITEM current in this.m_ItemList)
        {
            NewListItem      newListItem = new NewListItem(this.m_lbItemList.ColumnNum, true, string.Empty);
            UIBaseInfoLoader itemTexture = NrTSingleton <ItemManager> .Instance.GetItemTexture(current.m_nItemUnique);

            newListItem.SetListItemData(0, itemTexture, null, null, null);
            string itemNameByItemUnique = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(current.m_nItemUnique);

            newListItem.SetListItemData(1, itemNameByItemUnique, null, null, null);
            int    nItemNum = current.m_nItemNum;
            string text     = Protocol_Item.Money_Format((long)nItemNum) + NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("442");

            newListItem.SetListItemData(2, text, null, null, null);
            this.m_lbItemList.Add(newListItem);
        }
        this.m_lbItemList.RepositionItems();
    }
Ejemplo n.º 4
0
    public void ShowList(int _index)
    {
        NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.solArray[_index].CharKind);

        if (charKindInfo == null)
        {
            return;
        }
        string imageKey;

        if (UIDataManager.IsUse256Texture())
        {
            imageKey = charKindInfo.GetPortraitFile1((int)this.solArray[_index].Grade, string.Empty) + "_256";
        }
        else
        {
            imageKey = charKindInfo.GetPortraitFile1((int)this.solArray[_index].Grade, string.Empty) + "_512";
        }
        NewListItem newListItem = new NewListItem(this.nlb_CardArea1.ColumnNum, true, string.Empty);

        newListItem.SetListItemData(0, this._backBG, null, null, null, null);
        for (int i = 1; i <= 6; i++)
        {
            newListItem.SetListItemData(i, false);
        }
        newListItem.SetListItemData((int)(this.solArray[_index].Grade + 1), true);
        Texture2D texture = NrTSingleton <UIImageBundleManager> .Instance.GetTexture(imageKey);

        newListItem.SetListItemData(7, texture, null, null, null, null);
        string empty = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"),
            "count",
            charKindInfo.GetSeason(this.solArray[_index].Grade) + 1
        });

        newListItem.SetListItemData(8, empty, null, null, null);
        newListItem.SetListItemData(9, true);
        newListItem.SetListItemData(10, true);
        newListItem.SetListItemData(11, charKindInfo.GetName(), null, null, null);
        if (_index < 6)
        {
            this.nlb_CardArea1.Add(newListItem);
            this.nlb_CardArea1.RepositionItems();
        }
        else
        {
            this.nlb_CardArea2.Add(newListItem);
            this.nlb_CardArea2.RepositionItems();
        }
    }
Ejemplo n.º 5
0
    private void SetSolListInfo()
    {
        string empty = string.Empty;

        this.SoldierSelectList.Clear();
        for (int i = 0; i < this.m_kSolSortList.Count; i++)
        {
            NkSoldierInfo  nkSoldierInfo     = this.m_kSolSortList[i];
            NewListItem    newListItem       = new NewListItem(this.SoldierSelectList.ColumnNum, true, string.Empty);
            EVENT_HERODATA eventHeroCharCode = NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharCode(nkSoldierInfo.GetCharKind(), nkSoldierInfo.GetGrade());

            if (eventHeroCharCode != null)
            {
                newListItem.SetListItemData(1, "Win_I_EventSol", null, null, null);
                newListItem.EventMark = true;
            }
            else
            {
                UIBaseInfoLoader legendFrame = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendFrame(nkSoldierInfo.GetCharKind(), (int)nkSoldierInfo.GetGrade());

                if (legendFrame != null)
                {
                    newListItem.SetListItemData(1, legendFrame, null, null, null);
                }
            }
            newListItem.SetListItemData(0, false);
            newListItem.SetListItemData(2, nkSoldierInfo.GetListSolInfo(false), null, null, null);
            newListItem.SetListItemData(3, nkSoldierInfo.GetName(), null, null, null);
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("167"),
                "count1",
                nkSoldierInfo.GetLevel().ToString(),
                "count2",
                nkSoldierInfo.GetSolMaxLevel().ToString()
            });

            newListItem.SetListItemData(4, empty, null, null, null);
            ITEM equipItemByUnique = nkSoldierInfo.GetEquipItemByUnique(this.m_nSearch_ItemUnique);
            if (equipItemByUnique != null && equipItemByUnique.IsValid())
            {
                newListItem.SetListItemData(5, equipItemByUnique, this.m_pkEquipItem, nkSoldierInfo.GetSolID(), new EZValueChangedDelegate(this.OnClickItemIcon), null);
            }
            else
            {
                newListItem.SetListItemData(5, false);
            }
            newListItem.Data = nkSoldierInfo.GetSolID();
            this.SoldierSelectList.Add(newListItem);
        }
        this.SoldierSelectList.RepositionItems();
    }
Ejemplo n.º 6
0
    public override void SetTicketList()
    {
        COMMON_CONSTANT_Manager instance = COMMON_CONSTANT_Manager.GetInstance();

        if (instance == null)
        {
            Debug.LogError("ERROR, SolRecruitDlg_ChallengeQuest.cs, SetTicketList(), pkConstant is null");
            return;
        }
        string text  = string.Empty;
        string empty = string.Empty;

        this.m_TicketList.Clear();
        if (!NrTSingleton <ContentsLimitManager> .Instance.IsLegendHire())
        {
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2862");

            NewListItem newListItem = new NewListItem(this.m_TicketList.ColumnNum, true, string.Empty);
            int         value       = instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_ESSENCE_ITEMUNIQUE);
            int         needItemNum = SolRecruitDlg.GetNeedItemNum(13);
            newListItem.SetListItemData(1, NrTSingleton <ItemManager> .Instance.GetItemTexture(value), null, null, null);
            newListItem.SetListItemEnable(3, true);
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "targetname",
                NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(value),
                "count1",
                needItemNum,
                "count2",
                SolRecruitDlg.GetSolCount(13)
            });

            newListItem.SetListItemData(2, empty, null, null, null);
            newListItem.SetListItemData(3, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("573"), eSolRecruitType.SOLRECRUIT_ESSENCE_ONE, new EZValueChangedDelegate(this.ClickTicketList), null);
            newListItem.SetListItemData(4, false);
            newListItem.SetListItemData(6, false);
            newListItem.Data = eSolRecruitType.SOLRECRUIT_ESSENCE_ONE;
            this.m_TicketList.Add(newListItem);
        }
        this.m_TicketList.RepositionItems();
    }
    private void SetDifficultData()
    {
        sbyte dayOfWeek = NrTSingleton <DailyDungeonManager> .Instance.GetDayOfWeek();

        Dictionary <sbyte, EVENT_DAILY_DUNGEON_INFO> dailyDungeonInfo = EVENT_DAILY_DUNGEON_DATA.GetInstance().GetDailyDungeonInfo(dayOfWeek);

        if (dailyDungeonInfo == null)
        {
            return;
        }
        this.m_nlDifficulty.Clear();
        foreach (EVENT_DAILY_DUNGEON_INFO current in dailyDungeonInfo.Values)
        {
            if (current != null)
            {
                NewListItem newListItem = new NewListItem(this.m_nlDifficulty.ColumnNum, true, string.Empty);
                string      empty       = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697"),
                    "itemname",
                    NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(current.i32RewardItemUnique),
                    "count",
                    current.i32RewardItemNum.ToString()
                });

                newListItem.SetListItemData(0, empty, null, null, null);
                UIBaseInfoLoader loader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_I_WorrGradeS" + current.i8Difficulty.ToString());

                newListItem.SetListItemData(1, loader, null, null, null);
                newListItem.SetListItemData(3, new ITEM
                {
                    m_nItemUnique = current.i32RewardItemUnique,
                    m_nItemNum    = current.i32RewardItemNum
                }, null, null, null);
                newListItem.Data = current;
                this.m_nlDifficulty.Add(newListItem);
                this.m_nlDifficulty.RepositionItems();
            }
        }
    }
Ejemplo n.º 8
0
    private void SetNpcList()
    {
        for (int i = 0; i < this.AutoNpc.Length; i++)
        {
            NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.AutoNpc[i]);

            if (charKindInfo != null)
            {
                if (!NrTSingleton <ContentsLimitManager> .Instance.IsNPCLimit(charKindInfo.GetCharKind()))
                {
                    if (charKindInfo.IsATB(512L))
                    {
                        if (!NrTSingleton <ContentsLimitManager> .Instance.IsPointExchage())
                        {
                            goto IL_113;
                        }
                    }
                    else if (charKindInfo.IsATB(1152921504606846976L))
                    {
                        if (!NrTSingleton <ContentsLimitManager> .Instance.IsGuildWarExchangeLimit())
                        {
                            goto IL_113;
                        }
                    }
                    else if (charKindInfo.IsATB(549755813888L) && !NrTSingleton <ContentsLimitManager> .Instance.IsItemLevelCheckBlock() && !NrTSingleton <ContentsLimitManager> .Instance.IsItemEvolution(false))
                    {
                        goto IL_113;
                    }
                    NewListItem newListItem = new NewListItem(3, true, string.Empty);
                    newListItem.SetListItemData(1, charKindInfo.GetCharKind(), null, null, null);
                    newListItem.SetListItemData(2, charKindInfo.GetName(), null, null, null);
                    newListItem.Data = charKindInfo.GetCharKind();
                    this.m_NpcAutoMoveList.Add(newListItem);
                }
            }
            IL_113 :;
        }
        this.m_NpcAutoMoveList.RepositionItems();
        this.m_NpcAutoMoveList.SetSelectedItem(0);
        this.OnNPCClick(null);
    }
Ejemplo n.º 9
0
    private void ShowTicketList()
    {
        this.m_kList.SetMultiSelectMode(false);
        this.m_kList.Clear();
        List <ITEM> functionItemsByInvenType = NkUserInventory.instance.GetFunctionItemsByInvenType(6, eITEM_SUPPLY_FUNCTION.SUPPLY_GETSOLDIER);

        foreach (ITEM current in functionItemsByInvenType)
        {
            if (!NrTSingleton <ItemManager> .Instance.IsItemATB(current.m_nItemUnique, 2048L))
            {
                PointTable pointTable = NrTSingleton <PointManager> .Instance.GetPointTable(current.m_nItemUnique);

                if (pointTable != null)
                {
                    if (0 < pointTable.m_nGetPoint)
                    {
                        NewListItem newListItem = new NewListItem(this.m_kList.ColumnNum, true, string.Empty);
                        string      name        = NrTSingleton <ItemManager> .Instance.GetName(current);

                        newListItem.SetListItemData(1, current, null, null, null);
                        newListItem.SetListItemData(2, name, null, null, null);
                        newListItem.SetListItemData(3, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2254"), null, null, null);
                        newListItem.SetListItemData(4, NrTSingleton <CTextParser> .Instance.GetTextColor("1107") + pointTable.m_nGetPoint.ToString(), null, null, null);
                        newListItem.SetListItemData(5, false);
                        newListItem.SetListItemData(6, false);
                        newListItem.Data = current;
                        this.m_kList.Add(newListItem);
                    }
                }
            }
        }
        this.m_kList.RepositionItems();
        functionItemsByInvenType.Clear();
    }
Ejemplo n.º 10
0
    public void SetData(byte i8Level)
    {
        for (int i = 0; i < 11; i++)
        {
            VipSubInfo vipSubInfo = NrTSingleton <NrVipSubInfoManager> .Instance.Get_VipSubInfo((byte)i);

            NewListItem newListItem = new NewListItem(this.m_nlbVip.ColumnNum, true, string.Empty);
            newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox(vipSubInfo.strTitle.ToString()), vipSubInfo.byVipLevel, new EZValueChangedDelegate(this.ClickVip), null);
            newListItem.SetListItemData(1, false);
            if ((int)this.m_nCurrMyVipLevel == i)
            {
                newListItem.SetListItemData(2, true);
            }
            else
            {
                newListItem.SetListItemData(2, false);
            }
            this.m_nlbVip.Add(newListItem);
        }
        this.m_nlbVip.RepositionItems();
        this.SetVipInfo(i8Level);
    }
Ejemplo n.º 11
0
    private void ShowTicketList()
    {
        this.m_nUseTicketNum = 0;
        this.m_kList.Clear();
        Dictionary <int, PointTable> totalPointTable = NrTSingleton <PointManager> .Instance.GetTotalPointTable();

        foreach (PointTable current in totalPointTable.Values)
        {
            if (0 < current.m_nBuyPoint)
            {
                NewListItem newListItem          = new NewListItem(this.m_kList.ColumnNum, true, string.Empty);
                string      itemNameByItemUnique = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(current.m_nItemUnique);

                newListItem.SetListItemData(1, NrTSingleton <ItemManager> .Instance.GetItemTexture(current.m_nItemUnique), null, null, null);
                newListItem.SetListItemData(2, itemNameByItemUnique, null, null, null);
                if (current.m_nItemUnique == PointManager.HERO_TICKET)
                {
                    newListItem.SetListItemData(3, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2254"), null, null, null);
                }
                else
                {
                    newListItem.SetListItemData(3, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2255"), null, null, null);
                }
                string empty = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1041"),
                    "count",
                    NrTSingleton <CTextParser> .Instance.GetTextColor("1107") + current.m_nBuyPoint
                });

                newListItem.SetListItemData(4, empty, null, null, null);
                newListItem.Data = current;
                this.m_kList.Add(newListItem);
            }
        }
        this.m_kList.RepositionItems();
        this.m_kList.SetSelectedItem(0);
    }
Ejemplo n.º 12
0
    public void ShowTopGradeList()
    {
        this.SetListTotalRank();
        this.m_lbTopRankList.Clear();
        string text  = string.Empty;
        string text2 = string.Empty;
        int    num   = 1;

        foreach (COLOSSEUM_RANKINFO current in this.ListRankInfo)
        {
            NewListItem newListItem = new NewListItem(this.m_lbTopRankList.ColumnNum, true, string.Empty);
            string      text3       = TKString.NEWString(current.szCharName);
            newListItem.SetListItemData(0, text3, null, null, null);
            text2 = num.ToString();
            newListItem.SetListItemData(2, text2, null, null, null);
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2091");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
            {
                text,
                "ratingpoint",
                1000L + current.i64MatchPoint
            });

            newListItem.SetListItemData(3, text2, null, null, null);
            string   text4 = string.Empty;
            string[] array = TKString.NEWString(current.szGuildName).Split(new char[]
            {
                '_'
            });
            text4 = array[0];
            if (array.Length > 1)
            {
                text4 = NrTSingleton <CTextParser> .Instance.GetTextColor("1401") + text4;
            }
            newListItem.SetListItemData(5, text4, null, null, null);
            if (text4 != string.Empty)
            {
                string topGuildRank = this.GetTopGuildRank(current.i64GuildID);
                if (topGuildRank == string.Empty)
                {
                    newListItem.SetListItemData(6, false);
                }
                else
                {
                    newListItem.SetListItemData(6, true);
                    newListItem.SetListItemData(6, topGuildRank, null, null, null);
                }
            }
            this.m_lbTopRankList.Add(newListItem);
            num++;
        }
        this.m_lbTopRankList.RepositionItems();
    }
Ejemplo n.º 13
0
    public void GuildImageSetting()
    {
        this.m_nlbWaitGuildInfo.Clear();
        long guildID = NrTSingleton <NewGuildManager> .Instance.GetGuildID();

        this.m_nTotalCount = 0;
        for (int i = 0; i < this.m_TempGuildInfo.Count; i++)
        {
            NewListItem newListItem = new NewListItem(this.m_nlbWaitGuildInfo.ColumnNum, true, string.Empty);
            if (this.m_TempGuildInfo[i].nGuildID == guildID)
            {
                newListItem.SetListItemData(0, NrTSingleton <CTextParser> .Instance.GetTextColor("1107") + this.m_TempGuildInfo[i].strGuildName, null, null, null);
            }
            else
            {
                newListItem.SetListItemData(0, this.m_TempGuildInfo[i].strGuildName, null, null, null);
            }
            if (this.m_TempGuildInfo[i].isHiddenInfo)
            {
                newListItem.SetListItemData(1, NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_BI_Nomark"), true, null, null);
            }
            else
            {
                newListItem.SetListItemData(1, NrTSingleton <NewGuildManager> .Instance.GetGuildDefualtTexture(), true, null, null);
            }
            this.m_nlbWaitGuildInfo.Add(newListItem);
        }
        this.m_nlbWaitGuildInfo.RepositionItems();
        for (int j = 0; j < this.m_TempGuildInfo.Count; j++)
        {
            if (!this.m_TempGuildInfo[j].isHiddenInfo)
            {
                string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(this.m_TempGuildInfo[j].nGuildID);

                WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), j);
            }
        }
    }
Ejemplo n.º 14
0
    protected override void BtnClickListBox(IUIObject obj)
    {
        UIListItemContainer selectedItem = this.ComposeNewListBox.SelectedItem;

        if (selectedItem == null)
        {
            return;
        }
        NkSoldierInfo nkSoldierInfo = (NkSoldierInfo)selectedItem.data;

        if (nkSoldierInfo == null)
        {
            return;
        }
        if (this._selectedDummySoldierList.Contains(nkSoldierInfo))
        {
            this._selectedDummySoldierList.Remove(nkSoldierInfo);
        }
        else
        {
            this._selectedDummySoldierList.Add(nkSoldierInfo);
        }
        this._selectedDummySolInfo = nkSoldierInfo;
        NewListItem newListItem = base.UpdateSolList(nkSoldierInfo);

        if (this._selectedDummySoldierList.Contains(nkSoldierInfo))
        {
            newListItem.SetListItemData(7, true);
            newListItem.SetListItemData(7, "Com_I_Check", null, null, null);
        }
        else
        {
            newListItem.SetListItemData(7, false);
            newListItem.SetListItemData(7, string.Empty, null, null, null);
        }
        newListItem.SetListItemData(9, false);
        this.ComposeNewListBox.UpdateContents(selectedItem.GetIndex(), newListItem);
    }
Ejemplo n.º 15
0
    public void MakeFundUseInfoItem(NEWGUILD_FUND_USE_INFO Data)
    {
        if (Data == null)
        {
            return;
        }
        NewListItem newListItem = new NewListItem(this.m_nlbGoldRecord.ColumnNum, true, string.Empty);
        DateTime    dueDate     = PublicMethod.GetDueDate(Data.i64UseTime);

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("602"),
            "year",
            dueDate.Year,
            "month",
            dueDate.Month,
            "day",
            dueDate.Day
        });

        newListItem.SetListItemData(0, this.m_strText, null, null, null);
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1527"),
            "hour",
            dueDate.Hour,
            "min",
            dueDate.Minute,
            "sec",
            dueDate.Second
        });

        newListItem.SetListItemData(1, this.m_strText, null, null, null);
        newListItem.SetListItemData(2, NrTSingleton <NewGuildManager> .Instance.GetStringFromFundUseType((NewGuildDefine.eNEWGUILD_FUND_USE_TYPE)Data.ui8UseType), null, null, null);
        newListItem.SetListItemData(3, ANNUALIZED.Convert(Data.i64UseFund), null, null, null);
        newListItem.SetListItemData(4, TKString.NEWString(Data.szUseCharName), null, null, null);
        this.m_nlbGoldRecord.Add(newListItem);
    }
        private void MakeCombinationSolPortrait(List <int> charOwnSoldierKindList, NewListItem item, SolCombinationInfo_Data combinationInfoData)
        {
            int num = 3;

            for (int i = 0; i < 5; i++)
            {
                int            num2  = i * num + 1;
                int            index = num2 + 1;
                NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(combinationInfoData.m_szCombinationIsCharCode[i]);

                if (charKindInfoFromCode == null)
                {
                    item.SetListItemData(index, false);
                    item.SetListItemData(num2, false);
                }
                else
                {
                    bool flag = charOwnSoldierKindList != null && charOwnSoldierKindList.Contains(charKindInfoFromCode.GetCharKind());
                    item.SetListItemData(index, !flag);
                    item.SetListItemData(num2, this.GetSolInfoByKind(charKindInfoFromCode), charKindInfoFromCode, new EZValueChangedDelegate(this.OnSelectSolPortrait), null);
                }
            }
        }
Ejemplo n.º 17
0
        private void SetCostumePortrait(NewListItem item, CharCostumeInfo_Data costumeData)
        {
            CostumeDrawTextureInfo costumeDrawTextureInfo = new CostumeDrawTextureInfo();

            costumeDrawTextureInfo.imageType = eCharImageType.MIDDLE;
            NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(costumeData.m_CharCode);

            if (charKindInfoFromCode != null)
            {
                costumeDrawTextureInfo.charKind = charKindInfoFromCode.GetCharKind();
            }
            costumeDrawTextureInfo.costumePortraitPath = costumeData.m_PortraitPath;
            item.SetListItemData(3, costumeDrawTextureInfo, costumeData, null, null);
        }
    public void UpdateList()
    {
        this.m_lxList.Clear();
        string empty  = string.Empty;
        string empty2 = string.Empty;
        int    num    = (this.m_Page.CURRENT_PAGE - 1) * 14;
        int    num2   = Mathf.Min(num + 14, this.m_CommunityUserList.Count);

        for (int i = num; i < num2; i++)
        {
            COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = this.m_CommunityUserList[i];
            NewListItem         newListItem         = new NewListItem(this.m_lxList.ColumnNum, true, string.Empty);
            CommunityUI_DLG.CurrentLocationName(cOMMUNITY_USER_INFO, ref empty, ref empty2);
            newListItem.SetListItemData(0, this.GetLoaderImg(CommunityUI_DLG.CommunityIcon(cOMMUNITY_USER_INFO)), null, null, null);
            newListItem.SetListItemData(1, cOMMUNITY_USER_INFO.strName, null, null, null);
            newListItem.SetListItemData(2, cOMMUNITY_USER_INFO.i16Level.ToString(), null, null, null);
            newListItem.SetListItemData(3, NrTSingleton <CTextParser> .Instance.GetTextColor(empty2) + empty, null, null, null);
            newListItem.Data = cOMMUNITY_USER_INFO;
            this.m_lxList.Add(newListItem);
        }
        this.m_lxList.RepositionItems();
        this.m_bxCurrentPage.Text = string.Format("{0}/{1}", this.m_Page.CURRENT_PAGE, this.m_Page.MAX_PAGE);
    }
Ejemplo n.º 19
0
        private void SetPortrait(ref NewListItem item, NkSoldierInfo solInfo)
        {
            if (item == null || solInfo == null)
            {
                return;
            }
            Texture2D portraitLeaderSol = this.GetPortraitLeaderSol(solInfo.GetCharKind());

            if (portraitLeaderSol != null)
            {
                item.SetListItemData(1, portraitLeaderSol, solInfo, solInfo.GetLevel(), new EZValueChangedDelegate(this._myCharListSetter._callbackProcessor.OnClickListUpBox), null);
                return;
            }
            NkListSolInfo nkListSolInfo = new NkListSolInfo();

            nkListSolInfo.SolCharKind            = solInfo.GetCharKind();
            nkListSolInfo.SolGrade               = (int)solInfo.GetGrade();
            nkListSolInfo.SolLevel               = solInfo.GetLevel();
            nkListSolInfo.FightPower             = solInfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_FIGHTINGPOWER);
            nkListSolInfo.SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath((int)solInfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_COSTUME));

            if (NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(solInfo.GetCharKind()) == null)
            {
                return;
            }
            if (50 <= solInfo.GetLevel())
            {
                nkListSolInfo.ShowCombat = true;
                nkListSolInfo.ShowLevel  = false;
            }
            else
            {
                nkListSolInfo.ShowCombat = false;
                nkListSolInfo.ShowLevel  = true;
            }
            item.SetListItemData(1, nkListSolInfo, solInfo, new EZValueChangedDelegate(this._myCharListSetter._callbackProcessor.OnClickListUpBox), null);
        }
Ejemplo n.º 20
0
    private NewListItem GetExtracteSolItem(NkSoldierInfo solInfo)
    {
        NewListItem      newListItem = new NewListItem(this.GetListBox().ColumnNum, true, string.Empty);
        UIBaseInfoLoader legendFrame = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendFrame(solInfo.GetCharKind(), (int)solInfo.GetGrade());

        if (legendFrame != null)
        {
            newListItem.SetListItemData(0, legendFrame, null, null, null);
        }
        newListItem.SetListItemData(2, solInfo.GetListSolInfo(false), null, null, null);
        string legendName = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendName(solInfo.GetCharKind(), (int)solInfo.GetGrade(), solInfo.GetName());

        newListItem.SetListItemData(3, legendName, null, null, null);
        string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("167");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromInterface, new object[]
        {
            textFromInterface,
            "count1",
            solInfo.GetLevel(),
            "count2",
            solInfo.GetSolMaxLevel()
        });

        newListItem.SetListItemData(4, textFromInterface, null, null, null);
        string empty = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3274"),
            "season",
            solInfo.GetSeason() + 1
        });

        newListItem.SetListItemData(5, empty, null, null, null);
        newListItem.SetListItemData(6, false);
        newListItem.SetListItemData(7, false);
        newListItem.SetListItemData(8, false);
        newListItem.SetListItemData(9, string.Empty, solInfo.GetSolID(), new EZValueChangedDelegate(this.OnClickRemove), null);
        newListItem.Data = solInfo.GetSolID();
        return(newListItem);
    }
Ejemplo n.º 21
0
    public void SetList()
    {
        this.m_nlbDeclareWarList.Clear();
        string text    = string.Empty;
        string text2   = string.Empty;
        string text3   = string.Empty;
        string text4   = string.Empty;
        long   guildID = NrTSingleton <NewGuildManager> .Instance.GetGuildID();

        foreach (DECLAREWAR_SATE_SUB_INFO current in this.m_declareWarList)
        {
            NewListItem newListItem = new NewListItem(this.m_nlbDeclareWarList.ColumnNum, true);
            text3 = string.Format("{0}", current.SUB_INFO.i32Point);
            text4 = string.Format("{0}", current.SUB_INFO.i32EnemyPoint);
            newListItem.SetListItemData(0, text3, null, null, null);
            newListItem.SetListItemData(1, text4, null, null, null);
            newListItem.SetListItemData(2, string.Empty, current.SUB_INFO.i64GuildID, new EZValueChangedDelegate(this.OnClickGuildMark), null);
            newListItem.SetListItemData(3, string.Empty, current.SUB_INFO.i64EnemyGuildID, new EZValueChangedDelegate(this.OnClickGuildMark), null);
            DeclareWarGuildMarkData declareWarGuildMarkData = new DeclareWarGuildMarkData();
            declareWarGuildMarkData.i64GuildID = current.SUB_INFO.i64GuildID;
            if (current.SUB_INFO.i64EnemyGuildID == guildID)
            {
                declareWarGuildMarkData.isEnemy = true;
            }
            DeclareWarGuildMarkData declareWarGuildMarkData2 = new DeclareWarGuildMarkData();
            declareWarGuildMarkData2.i64GuildID = current.SUB_INFO.i64EnemyGuildID;
            if (current.SUB_INFO.i64GuildID == guildID)
            {
                declareWarGuildMarkData.isEnemy = true;
            }
            newListItem.SetListItemData(4, NrTSingleton <NewGuildManager> .Instance.GetGuildDefualtTexture(), declareWarGuildMarkData, new EZValueChangedDelegate(this.OnClickGuildMark), null);
            newListItem.SetListItemData(5, NrTSingleton <NewGuildManager> .Instance.GetGuildDefualtTexture(), declareWarGuildMarkData2, new EZValueChangedDelegate(this.OnClickGuildMark), null);
            text  = TKString.NEWString(current.szGuildName);
            text2 = TKString.NEWString(current.szEnemyGuildName);
            newListItem.SetListItemData(6, text, null, null, null);
            newListItem.SetListItemData(7, text2, null, null, null);
            newListItem.SetListItemData(8, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2843"), null, null, null);
            this.m_nlbDeclareWarList.Add(newListItem);
        }
        this.m_nlbDeclareWarList.RepositionItems();
        this.SetGuildMark();
    }
Ejemplo n.º 22
0
    private void Show_ExchangeList()
    {
        this.m_nUseTicketNum = 0;
        this.m_nlbList.Clear();
        Dictionary <int, MythicSolTable> totalMythicSolTable = NrTSingleton <PointManager> .Instance.GetTotalMythicSolTable();

        foreach (MythicSolTable current in totalMythicSolTable.Values)
        {
            if (this.m_eType == (ExchangeMythicSolDlg.TYPE)current.m_nType)
            {
                if (!NrTSingleton <PointManager> .Instance.IsMythicSolLimit(current.m_nItemUnique))
                {
                    NewListItem newListItem          = new NewListItem(this.m_nlbList.ColumnNum, true, string.Empty);
                    string      itemNameByItemUnique = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(current.m_nItemUnique);

                    newListItem.SetListItemData(1, NrTSingleton <ItemManager> .Instance.GetItemTexture(current.m_nItemUnique), null, null, null);
                    newListItem.SetListItemData(2, itemNameByItemUnique, null, null, null);
                    newListItem.SetListItemData(3, NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(current.m_nNeedItemUnique), null, null, null);
                    string empty = string.Empty;
                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                    {
                        NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("632"),
                        "count",
                        NrTSingleton <CTextParser> .Instance.GetTextColor("1107") + current.m_nNeedNum
                    });

                    newListItem.SetListItemData(4, empty, null, null, null);
                    newListItem.SetListItemData(5, false);
                    newListItem.Data = current;
                    this.m_nlbList.Add(newListItem);
                }
            }
        }
        this.m_nlbList.RepositionItems();
        this.m_nlbList.SetSelectedItem(0);
    }
Ejemplo n.º 23
0
    public void SetFileList()
    {
        string directory = NrTSingleton <NkBattleReplayManager> .Instance.Directory;

        string[] files = Directory.GetFiles(directory, "*.dat");
        for (int i = 0; i < files.Length; i++)
        {
            NewListItem newListItem = new NewListItem(this.m_nlbFileList.ColumnNum, true, string.Empty);
            string      text        = files[i].Replace(directory, string.Empty);
            newListItem.SetListItemData(0, text, null, null, null);
            newListItem.Data = text;
            this.m_nlbFileList.Add(newListItem);
            this.m_nlbFileList.RepositionItems();
        }
    }
Ejemplo n.º 24
0
    public void SetTakenUserInfo()
    {
        this.m_nlbReward.Clear();
        List <AGIT_GOLDENEGG_INFO_SUB_DATA> rewardPersonInfoList = NrTSingleton <NewGuildManager> .Instance.GetRewardPersonInfoList();

        rewardPersonInfoList.Reverse(0, rewardPersonInfoList.Count);
        foreach (AGIT_GOLDENEGG_INFO_SUB_DATA current in rewardPersonInfoList)
        {
            this.m_lbDefaultTakenInfo.Hide(true);
            NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(current.i64PersonID);

            if (memberInfoFromPersonID == null)
            {
                return;
            }
            string charName             = memberInfoFromPersonID.GetCharName();
            string itemNameByItemUnique = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(current.i32ItemUnique);

            string text = string.Empty;
            if (current.i8GoldenEggType == 1)
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2778");
            }
            else
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2779");
            }
            NewListItem newListItem = new NewListItem(this.m_nlbReward.ColumnNum, true, string.Empty);
            string      empty       = string.Empty;
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2770"),
                "charname",
                charName,
                "type",
                text,
                "itemname",
                itemNameByItemUnique,
                "itemnum",
                current.i32ItemQuentity
            });

            newListItem.SetListItemData(0, empty, null, null, null);
            this.m_nlbReward.Add(newListItem);
        }
        this.m_nlbReward.RepositionItems();
        rewardPersonInfoList.Reverse(0, rewardPersonInfoList.Count);
    }
Ejemplo n.º 25
0
 public void SetMyCharListBoxItem(ref NewListItem item, NkSoldierInfo solInfo)
 {
     item.Data = solInfo;
     this.SetFrame(ref item, solInfo);
     this.SetPortrait(ref item, solInfo);
     this.SetSelectedUI(ref item, solInfo);
     item.SetListItemData(1, true);
     item.SetListItemData(2, false);
     item.SetListItemData(3, false);
     item.SetListItemData(4, false);
     item.SetListItemData(5, false);
     item.SetListItemData(6, false);
     item.SetListItemData(7, false);
 }
Ejemplo n.º 26
0
    public bool SetGuildMemberUpdate(NewGuildMember GuildMember, int iIndex)
    {
        if (GuildMember == null)
        {
            return(false);
        }
        NewListItem newListItem = new NewListItem(this.m_nlbMember.ColumnNum, true, string.Empty);

        newListItem.SetListItemData(0, true);
        if (NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(GuildMember.GetFaceCharKind()) == null)
        {
            return(false);
        }
        EVENT_HERODATA eventHeroCharFriendCode = NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharFriendCode(GuildMember.GetFaceCharKind());

        if (eventHeroCharFriendCode != null)
        {
            newListItem.SetListItemData(0, "Win_I_EventSol", null, null, null);
            newListItem.EventMark = true;
        }
        newListItem.SetListItemData(1, this.GetGuildMemberPortraitInfo(GuildMember), null, null, null);
        newListItem.SetListItemData(2, GuildMember.GetCharName(), null, null, null);
        newListItem.SetListItemData(3, string.Empty, GuildMember, new EZValueChangedDelegate(this.ClickRightMenu), null);
        string empty  = string.Empty;
        string empty2 = string.Empty;
        bool   result = NewGuildMemberDlg.CurrentLocationName(GuildMember, ref empty, ref empty2);

        newListItem.SetListItemData(4, NrTSingleton <CTextParser> .Instance.GetTextColor(empty2) + empty, null, null, null);
        string rankText = GuildMember.GetRankText();

        newListItem.SetListItemData(5, rankText, null, null, null);
        newListItem.SetListItemData(6, GuildMember.GetLevel().ToString(), null, null, null);
        newListItem.SetListItemData(7, GuildMember.GetContribute().ToString(), null, null, null);
        newListItem.Data = GuildMember;
        this.m_nlbMember.Add(newListItem);
        this.m_nlbMember.RepositionItems();
        return(result);
    }
Ejemplo n.º 27
0
    public void SetFloorList()
    {
        Dictionary <short, NEWEXPLORATION_DATA> dataList = NrTSingleton <NewExplorationManager> .Instance.GetDataList();

        sbyte  b     = -1;
        string empty = string.Empty;

        this.m_nlbFloor.Clear();
        sbyte floor = NrTSingleton <NewExplorationManager> .Instance.GetFloor();

        sbyte b2 = -1;
        NEWEXPLORATION_DATA nEWEXPLORATION_DATA = NrTSingleton <NewExplorationManager> .Instance.CanGetTreasureData();

        if (nEWEXPLORATION_DATA != null)
        {
            b2 = nEWEXPLORATION_DATA.bFloor;
        }
        foreach (KeyValuePair <short, NEWEXPLORATION_DATA> current in dataList)
        {
            if ((int)b != (int)current.Value.bFloor)
            {
                b = current.Value.bFloor;
                NewListItem newListItem = new NewListItem(this.m_nlbFloor.ColumnNum, true, string.Empty);
                newListItem.SetListItemData(1, string.Empty, b, new EZValueChangedDelegate(this.OnClickFloorList), null);
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3424"),
                    "count",
                    (int)b
                });

                newListItem.SetListItemData(2, empty, null, null, null);
                newListItem.SetListItemData(3, (int)b < (int)floor);
                for (int i = 0; i < 3; i++)
                {
                    newListItem.SetListItemData(i + 4, false);
                    newListItem.SetListItemData(i + 7, false);
                }
                newListItem.SetListItemData(10, (int)b == (int)this.m_bSelectedFloor);
                newListItem.SetListItemData(11, (int)b == (int)b2);
                this.m_nlbFloor.Add(newListItem);
            }
        }
        this.m_nlbFloor.RepositionItems();
        this.SetStageList();
    }
Ejemplo n.º 28
0
    public void SetData()
    {
        for (short num = 0; num < NrTSingleton <NrGameHelpInfoManager> .Instance.GetCount(); num += 1)
        {
            GameHelpInfo_Data data = NrTSingleton <NrGameHelpInfoManager> .Instance.GetData(num + 1);

            if (data != null && data.m_byListOnOff == 0)
            {
                if (NrTSingleton <ContentsLimitManager> .Instance.IsItemLevelCheckBlock() || !(data.m_HelpListName == eHELP_LIST.Gear_Grinding.ToString()))
                {
                    if (!NrTSingleton <ContentsLimitManager> .Instance.IsItemNormalSkillBlock() || !(data.m_HelpListName == eHELP_LIST.Gear_Carving.ToString()))
                    {
                        NewListItem newListItem = new NewListItem(1, true, string.Empty);
                        newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(data.m_strTitle), null, null, null);
                        newListItem.Data = data.m_nSort;
                        this.m_HelpList.Add(newListItem);
                    }
                }
            }
        }
        this.m_HelpList.RepositionItems();
    }
Ejemplo n.º 29
0
    private void SetSolColum(int pos, ref NewListItem item)
    {
        if (this.m_kSolSortList.Count <= pos)
        {
            return;
        }
        if (this.m_kSolSortList[pos] == null)
        {
            TsLog.Log("m_kSolSortList[pos] == null", new object[0]);
            return;
        }
        EVENT_HERODATA eventHeroCharCode = NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharCode(this.m_kSolSortList[pos].GetCharKind(), this.m_kSolSortList[pos].GetGrade());

        if (eventHeroCharCode != null)
        {
            item.EventMark = true;
            item.SetListItemData(1, "Win_I_EventSol", null, null, null);
        }
        else
        {
            UIBaseInfoLoader legendFrame = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendFrame(this.m_kSolSortList[pos].GetCharKind(), (int)this.m_kSolSortList[pos].GetGrade());

            if (legendFrame != null)
            {
                item.SetListItemData(1, legendFrame, null, null, null);
            }
        }
        item.SetListItemData(2, this.m_kSolSortList[pos].GetListSolInfo(false), null, null, null);
        string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("167");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromInterface, new object[]
        {
            textFromInterface,
            "count1",
            this.m_kSolSortList[pos].GetLevel(),
            "count2",
            this.m_kSolSortList[pos].GetSolMaxLevel()
        });

        item.SetListItemData(3, this.m_kSolSortList[pos].GetName(), null, null, null);
        item.SetListItemData(4, textFromInterface, null, null, null);
        item.SetListItemData(0, false);
        item.Data = this.m_kSolSortList[pos];
    }
    public void MakeBaseRewarItem(GUILDWAR_REWARD_DATA Data)
    {
        NewListItem newListItem = new NewListItem(this.m_nlbBaseReward.ColumnNum, true, string.Empty);

        newListItem.SetListItemData(0, ANNUALIZED.Convert(Data.Win_Guild_Point), null, null, null);
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697"),
            "itemname",
            NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(Data.Win_Reward_ItemUnique),
            "count",
            ANNUALIZED.Convert(Data.Win_Reward_ItemCount)
        });

        newListItem.SetListItemData(1, this.m_strText, null, null, null);
        newListItem.SetListItemData(2, ANNUALIZED.Convert(Data.Win_Reward_Gold), null, null, null);
        newListItem.SetListItemData(5, Data.Max_Guild_Rank.ToString(), null, null, null);
        newListItem.SetListItemData(6, "~", null, null, null);
        newListItem.SetListItemData(7, Data.Min_Guild_Rank.ToString(), null, null, null);
        newListItem.SetListItemData(8, NrTSingleton <ItemManager> .Instance.GetItemTexture(Data.Win_Reward_ItemUnique), null, null, null);
        this.m_nlbBaseReward.Add(newListItem);
    }