예제 #1
0
 // Token: 0x0600131C RID: 4892 RVA: 0x002141AC File Offset: 0x002123AC
 public override void OnOpen(int arg1, int arg2)
 {
     base.OnOpen(arg1, arg2);
     if (UIFootBallBoard.NewOpen)
     {
         UIFootBallBoard.isTopBoard    = true;
         UIFootBallBoard.isPersonBoard = true;
         UIFootBallBoard.NewOpen       = false;
         UIFootBallBoard.WorldBoard    = false;
     }
     if (ActivityManager.Instance.GetFIFAState() != EActivityState.EAS_ReplayRanking)
     {
         this.bClose = true;
         return;
     }
     if (LeaderBoardManager.Instance.FootBallTopBoard.AllianceID != (ulong)DataManager.Instance.RoleAlliance.Id)
     {
         LeaderBoardManager.Instance.FootBallBoardTime   = 0L;
         LeaderBoardManager.Instance.BoardUpdateTime[18] = 0L;
     }
     if (LeaderBoardManager.Instance.FootBallBoardTime < ActivityManager.Instance.ServerEventTime)
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_FOOTBALL_TOPBOARD;
         messagePacket.AddSeqId();
         ushort data;
         byte   data2;
         GameConstants.MapIDToPointCode(DataManager.Instance.RoleAttr.CapitalPoint, out data, out data2);
         messagePacket.Add(data);
         messagePacket.Add(data2);
         messagePacket.Send(false);
         UIFootBallBoard.isTopBoard = true;
         this.DataReady             = false;
     }
     else
     {
         this.DataReady = true;
     }
     this.KingdomImg = this.AGS_Form.GetChild(6).GetChild(2).GetComponent <RectTransform>();
     this.KingdomImg.gameObject.SetActive(false);
 }
예제 #2
0
    // Token: 0x06001EAE RID: 7854 RVA: 0x003AA368 File Offset: 0x003A8568
    public void SendDeleteMessage()
    {
        if (this.DM.RoleAlliance.Rank < AllianceRank.RANK4)
        {
            GUIManager.Instance.AddHUDMessage(this.DM.mStringTable.GetStringByID(4753u), 255, true);
            return;
        }
        if (this.DeleteMessageIndex < this.NowList.Count && this.NowList[this.DeleteMessageIndex].AllianceOrRole >= 2)
        {
            GUIManager.Instance.AddHUDMessage(this.DM.mStringTable.GetStringByID(10074u), 255, true);
            return;
        }
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.AddSeqId();
        messagePacket.Protocol = Protocol._MSG_REQUEST_DELETECHAT;
        messagePacket.Add(this.AllianceID);
        messagePacket.Add(this.DeleteMessageID);
        messagePacket.Send(false);
        GUIManager.Instance.ShowUILock(EUILock.MessageBoard);
    }
예제 #3
0
 // Token: 0x0600133B RID: 4923 RVA: 0x0021A994 File Offset: 0x00218B94
 private void MainBoardChange()
 {
     if (LeaderBoardManager.Instance.KingdomBoardNextTime < DataManager.Instance.ServerTime || LeaderBoardManager.Instance.KvKTopBoard.AllianceID != (ulong)DataManager.Instance.RoleAlliance.Id)
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_KVK_TOPBOARD;
         messagePacket.AddSeqId();
         ushort data;
         byte   data2;
         GameConstants.MapIDToPointCode(DataManager.Instance.RoleAttr.CapitalPoint, out data, out data2);
         messagePacket.Add(data);
         messagePacket.Add(data2);
         messagePacket.Send(false);
         UIKVKLBoard.isTopBoard = true;
         return;
     }
     this.CreateTopBoard();
     base.SetOpenType(UILeaderBoardBase.e_OpenType.BoardTypes);
     this.AGS_Panel1.AddNewDataHeight(this.SPHeight, false, true);
     this.AGS_Panel1.GoTo(0);
 }
예제 #4
0
 // Token: 0x06000E5D RID: 3677 RVA: 0x0017B0D0 File Offset: 0x001792D0
 public void OnButtonClick(UIButton sender)
 {
     if (sender.m_BtnID1 == 4)
     {
         string        text          = new string('\0', 13);
         string        data          = "777";
         ushort        data2         = 8;
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_CREATE;
         messagePacket.AddSeqId();
         messagePacket.Add((byte)Encoding.UTF8.GetByteCount(text));
         messagePacket.Add(text, 20);
         messagePacket.Add(data, 3);
         messagePacket.Add(data2);
         messagePacket.Send(false);
     }
     else if (sender.m_BtnID1 == 9)
     {
         this.door.CloseMenu(false);
     }
 }
예제 #5
0
    // Token: 0x060012FA RID: 4858 RVA: 0x00210634 File Offset: 0x0020E834
    public override void OnOpen(int arg1, int arg2)
    {
        base.OnOpen(arg1, arg2);
        RectTransform component = this.AGS_Form.GetChild(1).GetComponent <RectTransform>();

        component.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 450f);
        component = component.GetChild(0).GetComponent <RectTransform>();
        component.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 360f);
        this.Ranking = StringManager.Instance.SpawnString(300);
        UIButton component2 = this.AGS_Form.GetChild(10).GetComponent <UIButton>();

        component2.m_Handler    = this;
        component2.m_EffectType = e_EffectType.e_Normal;
        component2.transition   = Selectable.Transition.None;
        component2.m_BtnID1     = 12;
        UIButtonHint uibuttonHint = component2.gameObject.AddComponent <UIButtonHint>();

        uibuttonHint.m_eHint        = EUIButtonHint.UIArena_Hint;
        uibuttonHint.m_Handler      = this;
        uibuttonHint.ControlFadeOut = GUIManager.Instance.m_Arena_Hint.m_RectTransform.gameObject;
        uibuttonHint.ScrollID       = 1;
        if (ActivityManager.Instance.AllyMobilizationData.EventState != EActivityState.EAS_ReplayRanking)
        {
            this.closeAfter = true;
            return;
        }
        this.closeAfter = false;
        if (LeaderBoardManager.Instance.MobilizationAlliWorldBoardTime < DataManager.Instance.ServerTime || LeaderBoardManager.Instance.MobiAlliWorldAllianceID != DataManager.Instance.RoleAlliance.Id)
        {
            UILeaderBoardBase.TopIndex[20] = 0;
            MessagePacket messagePacket = new MessagePacket(1024);
            messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCEMOBILIZATION_LEGENDRANK;
            messagePacket.AddSeqId();
            messagePacket.Send(false);
        }
        else
        {
            this.DataReady = true;
        }
    }
예제 #6
0
파일: InputBox.cs 프로젝트: gsoec/lm-source
    // Token: 0x06000E6A RID: 3690 RVA: 0x0017BE30 File Offset: 0x0017A030
    public void Congrats(string name)
    {
        byte   b   = 0;
        ushort num = 0;

        if (DataManager.Instance.GetCurItemQuantity((ushort)this.ItemID, 0) == 0)
        {
            b   = 1;
            num = DataManager.Instance.TotalShopItemData.Find((ushort)this.ItemID);
        }
        if (this.Type >= ECaseByCaseType.ECBCT_ReNickName)
        {
            if (b == 0)
            {
                DataManager.Instance.UseItem((ushort)this.ItemID, 1, 0, 0, 0, 0u, name, false);
            }
            else
            {
                DataManager.Instance.sendBuyItem(1, num, (ushort)this.ItemID, true, null, 0, 0, 0u, name, false, 1);
            }
            GUIManager.Instance.CloseMenu(this.m_eWindow);
        }
        else if (GUIManager.Instance.ShowUILock(EUILock.AllianceCreate))
        {
            MessagePacket messagePacket = new MessagePacket(1024);
            messagePacket.Protocol = this.Sending;
            messagePacket.AddSeqId();
            messagePacket.Add(b);
            messagePacket.Add(num);
            messagePacket.Add((ushort)this.ItemID);
            if (this.Type != ECaseByCaseType.ECBCT_AllianceTag)
            {
                messagePacket.Add((byte)Encoding.UTF8.GetByteCount(name));
            }
            messagePacket.Add(name, this.Limits);
            messagePacket.Send(false);
            this.CheckTime = 0f;
        }
    }
예제 #7
0
 // Token: 0x06002150 RID: 8528 RVA: 0x003F68A4 File Offset: 0x003F4AA4
 private void RequestPlayWar(byte MatchID)
 {
     if (MatchID == 0)
     {
         Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door;
         if (door != null)
         {
             door.CloseMenu(false);
         }
     }
     else
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.AddSeqId();
         messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCEWAR_REPLAY;
         byte data = (UI_AlliWarSchedule.Step != UI_AlliWarSchedule.EAWSFightStep.Final) ? 1 : 0;
         messagePacket.Add(data);
         messagePacket.Add(0);
         messagePacket.Add(MatchID);
         messagePacket.Send(false);
         GUIManager.Instance.ShowUILock(EUILock.Activity);
     }
 }
예제 #8
0
 // Token: 0x06000FD1 RID: 4049 RVA: 0x001BB1A4 File Offset: 0x001B93A4
 public override void OnOKCancelBoxClick(bool bOK, int arg1, int arg2)
 {
     if (!bOK)
     {
         return;
     }
     if (arg1 != 7 && arg1 != 8)
     {
         if (arg1 == 13)
         {
             this.KickMember((ushort)(arg2 >> 16), (byte)(arg2 & 65535));
         }
     }
     else
     {
         GUIManager.Instance.ShowUILock(EUILock.Expedition);
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_TROOPRETURN;
         messagePacket.AddSeqId();
         messagePacket.Add((byte)arg2);
         messagePacket.Send(false);
     }
 }
예제 #9
0
    // Token: 0x0600291B RID: 10523 RVA: 0x0044E0DC File Offset: 0x0044C2DC
    public void OnButtonClick(UIButton sender)
    {
        int btnID = sender.m_BtnID1;

        if (btnID != 1)
        {
            if (btnID == 2)
            {
                if (sender.m_BtnID2 == 1)
                {
                    if (!this.AM.AW_bcalculateEnd)
                    {
                        this.GM.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(14613u), 255, true);
                        return;
                    }
                    MessagePacket messagePacket = new MessagePacket(1024);
                    messagePacket.AddSeqId();
                    messagePacket.Protocol = Protocol._MSG_REQUEST_AWS_SCHEDULE;
                    messagePacket.Add(ActivityManager.Instance.AW_Round);
                    messagePacket.Send(false);
                    GUIManager.Instance.ShowUILock(EUILock.AWS_Schedule);
                }
            }
        }
        else if (sender.m_BtnID2 == 1)
        {
            if (this.door != null)
            {
                this.door.CloseMenu(false);
            }
        }
        else if (sender.m_BtnID2 == 2 && this.door != null)
        {
            this.door.OpenMenu(EGUIWindow.UI_AllianceMatchInfo, 0, 0, false);
        }
    }
예제 #10
0
    // Token: 0x060008C8 RID: 2248 RVA: 0x000B4D5C File Offset: 0x000B2F5C
    public static bool sendInitBattleEx()
    {
        if (!GUIManager.Instance.ShowUILock(EUILock.Battle))
        {
            return(false);
        }
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.AddSeqId();
        messagePacket.Protocol = Protocol._MSG_REQUEST_EX_BATTLEINIT_NPC;
        ushort num = BattleNetwork.battlePointID;

        if (!BattleNetwork.bReplay)
        {
            num = DataManager.StageDataController.currentPointID;
            BattleNetwork.battlePointID = num;
        }
        StageMode stageMode = DataManager.StageDataController.StageDareMode(BattleNetwork.battlePointID);

        messagePacket.Add((stageMode != StageMode.Full) ? 2 : 1);
        if (stageMode == StageMode.Lean)
        {
            num /= 3;
        }
        messagePacket.Add(num);
        for (int i = 0; i < 5; i++)
        {
            messagePacket.Add(DataManager.Instance.heroBattleData[i].HeroID);
        }
        byte currentNodus = DataManager.StageDataController.currentNodus;

        messagePacket.Add(currentNodus);
        if (!messagePacket.Send(false))
        {
            GUIManager.Instance.HideUILock(EUILock.Battle);
            return(false);
        }
        StageManager stageDataController = DataManager.StageDataController;
        DataManager  instance            = DataManager.Instance;

        if (stageDataController.StageDareMode(num) == StageMode.Lean)
        {
            LevelEX levelEXBycurrentPointID = stageDataController.GetLevelEXBycurrentPointID(0);
            if (currentNodus == 1)
            {
                instance.BattleConditionKey = levelEXBycurrentPointID.NodusOneID;
            }
            else if (currentNodus == 2)
            {
                instance.BattleConditionKey = levelEXBycurrentPointID.NodusTwoID;
            }
            else if (currentNodus == 3)
            {
                instance.BattleConditionKey = levelEXBycurrentPointID.NodusThrID;
            }
        }
        else
        {
            instance.BattleConditionKey = stageDataController.GetLevelEXBycurrentPointID(0).NodusTwoID;
        }
        return(true);
    }
예제 #11
0
    // Token: 0x06000F44 RID: 3908 RVA: 0x001AFF8C File Offset: 0x001AE18C
    public void OnButtonClick(UIButton sender)
    {
        switch (sender.m_BtnID1)
        {
        case 0:
            if (this.door != null)
            {
                this.door.CloseMenu(false);
            }
            break;

        case 1:
            this.DM.AllianceView.Id = this.DM.RoleAlliance.Id;
            this.door.OpenMenu(EGUIWindow.UIAlliance_publicinfo, 0, 0, false);
            break;

        case 2:
            if (MobilizationManager.Instance.mMissionID != 0 && MobilizationManager.Instance.mMissionStatus == 0)
            {
                this.GUIM.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(505u), this.DM.mStringTable.GetStringByID(16091u), 8, 0, this.DM.mStringTable.GetStringByID(3u), this.DM.mStringTable.GetStringByID(4773u));
            }
            else
            {
                this.GUIM.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(505u), this.DM.mStringTable.GetStringByID(506u), 4, 0, this.DM.mStringTable.GetStringByID(507u), this.DM.mStringTable.GetStringByID(4773u));
            }
            break;

        case 3:
            if (GUIManager.Instance.ShowUILock(EUILock.Alliance_Manage))
            {
                MessagePacket messagePacket = new MessagePacket(1024);
                messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_MODIFY_NEEDAPPLY;
                messagePacket.AddSeqId();
                byte data = 0;
                if (this.bPublicRecruit)
                {
                    data = 1;
                }
                messagePacket.Add(data);
                messagePacket.Send(false);
            }
            break;

        case 4:
            this.SloganT.transform.SetParent(this.GUIM.m_SecWindowLayer, false);
            this.SloganT.gameObject.SetActive(true);
            break;

        case 5:
            this.door.CloseMenu(false);
            this.GUIM.UpdateUI(EGUIWindow.UI_Alliance_Info, 2, 0);
            break;

        case 6:
            this.DM.AllianceView.Id       = this.DM.RoleAlliance.Id;
            this.DM.AllianceView.Language = this.DM.RoleAlliance.Language;
            this.DM.AllianceView.Tag      = this.DM.RoleAlliance.Tag.ToString();
            this.DM.AllianceView.Name     = this.DM.RoleAlliance.Name.ToString();
            this.DM.AllianceView.Notice   = this.DM.RoleAlliance.Notice;
            this.DM.AllianceView.Header   = this.DM.RoleAlliance.Header;
            this.DM.AllianceView.Leader   = this.DM.RoleAlliance.Leader.ToString();
            this.DM.AllianceView.Power    = this.DM.RoleAlliance.Power;
            this.DM.AllianceView.Emblem   = this.DM.RoleAlliance.Emblem;
            this.DM.AllianceView.Member   = this.DM.RoleAlliance.Member;
            this.DM.AllianceView.Approval = this.DM.RoleAlliance.Approval;
            this.DM.AllianceView.GiftLv   = this.DM.RoleAlliance.GiftLv;
            this.door.OpenMenu(EGUIWindow.UIAlliance_publicinfo, 0, 0, false);
            this.GUIM.UpdateUI(EGUIWindow.UIAlliance_publicinfo, 5, 0);
            break;

        case 7:
            this.DM.CurSelectLanguage = this.DM.RoleAlliance.Language;
            this.door.OpenMenu(EGUIWindow.UI_LanguageSelect, 1, 0, false);
            break;

        case 8:
            this.GUIM.UseOrSpend(1007, this.DM.mStringTable.GetStringByID(4957u), 0, 0, 0, UseOrSpendType.UST_DIAMOND_NORMAL, null, null, null, 0);
            break;

        case 9:
            this.GUIM.UseOrSpend(1120, this.DM.mStringTable.GetStringByID(4957u), 0, 0, 0, UseOrSpendType.UST_DIAMOND_NORMAL, null, null, null, 0);
            break;

        case 10:
            this.DM.CurSelectBadge = this.DM.RoleAlliance.Emblem;
            this.door.OpenMenu(EGUIWindow.UIAlliance_Badge, 100, 0, false);
            break;

        case 11:
        {
            if (ActivityManager.Instance.IsInKvK(0, false))
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(9571u), 255, true);
                return;
            }
            CString cstring = StringManager.Instance.StaticString1024();
            cstring.ClearString();
            if (this.DM.RoleAlliance.KingdomID != DataManager.MapDataController.kingdomData.kingdomID)
            {
                cstring.IntToFormat((long)this.DM.RoleAlliance.KingdomID, 1, false);
                cstring.IntToFormat((long)DataManager.MapDataController.kingdomData.kingdomID, 1, false);
                cstring.AppendFormat(this.DM.mStringTable.GetStringByID(9569u));
                GUIManager.Instance.OpenSpendWindow_Normal(this, this.DM.mStringTable.GetStringByID(9567u), cstring.ToString(), 1000, 6, 0, this.DM.mStringTable.GetStringByID(9146u), false);
            }
            else
            {
                cstring.IntToFormat((long)DataManager.MapDataController.kingdomData.kingdomID, 1, false);
                cstring.AppendFormat(this.DM.mStringTable.GetStringByID(9570u));
                GUIManager.Instance.OpenMessageBox(this.DM.mStringTable.GetStringByID(9567u), cstring.ToString(), this.DM.mStringTable.GetStringByID(3u), null, 0, 0, false, false, false, false, false);
            }
            break;
        }

        case 12:
            if (DataManager.MapDataController.IsKing())
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(9366u), 255, true);
            }
            else if (this.CheckWonderID())
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(9369u), 255, true);
            }
            else
            {
                this.door.OpenMenu(EGUIWindow.UI_Alliance_List, 2, 0, false);
            }
            break;

        case 13:
            if (DataManager.MapDataController.IsKing())
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(9366u), 255, true);
            }
            else if (this.CheckWonderID())
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(9369u), 255, true);
            }
            else
            {
                this.GUIM.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(520u), this.DM.mStringTable.GetStringByID(521u), 1, 0, this.DM.mStringTable.GetStringByID(522u), this.DM.mStringTable.GetStringByID(4773u));
            }
            break;

        case 14:
            this.door.OpenMenu(EGUIWindow.UI_Alliance_Permission, 0, 0, false);
            break;

        case 15:
            this.SloganT.transform.SetParent(this.GameT, false);
            this.SloganT.transform.SetSiblingIndex(5);
            this.SloganT.gameObject.SetActive(false);
            break;

        case 16:
        {
            if (!GUIManager.Instance.ShowUILock(EUILock.Alliance_Manage) || this.DM.RoleAlliance.Rank < AllianceRank.RANK4)
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(4753u), 255, true);
                return;
            }
            char[] array = this.text_Slogan.text.ToCharArray();
            if (this.DM.m_BannedWord != null)
            {
                this.DM.m_BannedWord.CheckBannedWord(array);
            }
            byte[]        bytes          = Encoding.UTF8.GetBytes(array, 0, this.text_Slogan.text.Length);
            MessagePacket messagePacket2 = new MessagePacket(1024);
            messagePacket2.Protocol = Protocol._MSG_REQUEST_ALLIANCE_MODIFY_SLOGAN;
            messagePacket2.AddSeqId();
            messagePacket2.Add((byte)bytes.Length);
            messagePacket2.Add(bytes, 0, 20);
            messagePacket2.Send(false);
            break;
        }

        case 17:
        case 19:
            this.SetDisbandShow(false);
            this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(9649u), 255, true);
            break;

        case 18:
            if (this.btn_DisbandOK.image.sprite == this.SArray.m_Sprites[0] && this.DM.mAllianceDisband == 0)
            {
                byte data2 = 2;
                if (GUIManager.Instance.ShowUILock(EUILock.Alliance_Manage))
                {
                    MessagePacket messagePacket3 = new MessagePacket(1024);
                    messagePacket3.Protocol = Protocol._MSG_REQUEST_ALLIANCE_QUIT;
                    messagePacket3.AddSeqId();
                    messagePacket3.Add(data2);
                    messagePacket3.Send(false);
                }
            }
            break;
        }
    }
예제 #12
0
    // Token: 0x06001D78 RID: 7544 RVA: 0x003668E8 File Offset: 0x00364AE8
    public void OnButtonClick(UIButton sender)
    {
        switch (sender.m_BtnID1)
        {
        case 0:
        {
            byte[] bytes = Encoding.UTF8.GetBytes(this.mInputEditor.text);
            if (bytes.Length > 0)
            {
                this.GUIM.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(6034u), this.DM.mStringTable.GetStringByID(6035u), 1, 0, this.DM.mStringTable.GetStringByID(6036u), this.DM.mStringTable.GetStringByID(6037u));
            }
            else
            {
                this.door.CloseMenu(false);
            }
            this.DM.bMailAddBookMark = false;
            break;
        }

        case 2:
        {
            if (sender.image.color == Color.gray)
            {
                this.GUIM.MsgStr.ClearString();
                this.GUIM.MsgStr.IntToFormat(8L, 1, false);
                this.GUIM.MsgStr.AppendFormat(this.DM.mStringTable.GetStringByID(9167u));
                this.GUIM.AddHUDMessage(this.GUIM.MsgStr.ToString(), 255, true);
                return;
            }
            if (this.mEditorKind == 3 && this.DM.RoleAlliance.Rank < AllianceRank.RANK2)
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(4753u), 255, true);
                return;
            }
            char[] array  = this.mInputTitle.text.ToCharArray();
            char[] array2 = this.mInputEditor.text.ToCharArray();
            if (this.DM.Letter_ReplyTitle == null)
            {
                this.DM.Letter_ReplyTitle = string.Empty;
            }
            char[] array3 = this.DM.Letter_ReplyTitle.ToCharArray();
            if (this.DM.Letter_ReplyName == null)
            {
                this.DM.Letter_ReplyName = string.Empty;
            }
            char[] array4 = this.DM.Letter_ReplyName.ToCharArray();
            if (this.DM.m_BannedWord != null)
            {
                this.DM.m_BannedWord.CheckBannedWord(array);
                this.DM.m_BannedWord.CheckBannedWord(array2);
                this.DM.m_BannedWord.CheckBannedWord(array3);
                this.DM.m_BannedWord.CheckBannedWord(array4);
            }
            byte[] bytes2 = Encoding.UTF8.GetBytes(array);
            byte[] bytes3 = Encoding.UTF8.GetBytes(array2);
            byte[] bytes4 = Encoding.UTF8.GetBytes(this.mInputName.text);
            byte[] bytes5 = Encoding.UTF8.GetBytes(array3);
            byte[] bytes6 = Encoding.UTF8.GetBytes(array4);
            int    num    = 0;
            int    num2   = 0;
            while (num2 <= 32 && num2 < bytes6.Length)
            {
                if (bytes6[num2] == 0)
                {
                    break;
                }
                if (bytes6[num2] != 0)
                {
                    num++;
                }
                num2++;
            }
            if (this.mEditorKind == 0)
            {
                if (bytes4.Length > 13)
                {
                    this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(5379u), 255, true);
                    return;
                }
            }
            else if (this.mEditorKind != 3 && num > 13)
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(5379u), 255, true);
                return;
            }
            int num3 = 0;
            for (int i = 0; i < 10; i++)
            {
                if (this.DM.RoleBookMark.SelectBookMarkIndex[i] != 0)
                {
                    num3++;
                }
            }
            this.text_Editor2.text = this.mInputEditor.text;
            float preferredHeight = this.text_Editor2.preferredHeight;
            if (preferredHeight > 557f)
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(6049u), 255, true);
                return;
            }
            num = 0;
            int num4 = 0;
            while (num4 <= 64 && num4 < bytes2.Length)
            {
                if (bytes2[num4] == 0)
                {
                    break;
                }
                if (bytes2[num4] != 0)
                {
                    num++;
                }
                num4++;
            }
            if (((this.mEditorKind == 0 || this.mEditorKind == 2) && num > 64) || (this.mEditorKind == 3 && bytes5.Length > 64) || (this.mEditorKind == 1 && this.mEditorType != 1 && num > 64))
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(6018u), 255, true);
                return;
            }
            if (bytes3.Length > 1024)
            {
                this.GUIM.AddHUDMessage(this.DM.mStringTable.GetStringByID(6017u), 255, true);
                return;
            }
            if (GUIManager.Instance.ShowUILock(EUILock.LetterEditor))
            {
                uint          data          = 0u;
                MessagePacket messagePacket = new MessagePacket(1124);
                if (this.mEditorKind != 3)
                {
                    messagePacket.Protocol = Protocol._MSG_REQUEST_SENDREGMAIL;
                }
                else
                {
                    messagePacket.Protocol = Protocol._MSG_REQUEST_SENDALLIMAIL;
                }
                messagePacket.AddSeqId();
                if (this.mEditorKind != 3)
                {
                    if (this.mEditorKind == 1)
                    {
                        data = this.DM.Letter_ReplyID;
                    }
                    messagePacket.Add(data);
                    if (this.mEditorKind == 0)
                    {
                        messagePacket.Add(this.mInputName.text, 13);
                    }
                    else
                    {
                        messagePacket.Add(this.DM.Letter_ReplyName, 13);
                    }
                }
                if (this.DM.ServerVersionMajor != 0)
                {
                    byte data2;
                    if (ArabicTransfer.Instance.IsArabicStr(this.mInputEditor.text))
                    {
                        data2 = 2;
                    }
                    else
                    {
                        data2 = 1;
                    }
                    messagePacket.Add(data2);
                }
                if (this.mEditorKind == 1)
                {
                    messagePacket.Add((byte)bytes5.Length);
                    messagePacket.Add((ushort)bytes3.Length);
                    messagePacket.Add((byte)num3);
                    messagePacket.Add(bytes5, 0, 0);
                }
                else
                {
                    messagePacket.Add((byte)bytes2.Length);
                    messagePacket.Add((ushort)bytes3.Length);
                    messagePacket.Add((byte)num3);
                    messagePacket.Add(bytes2, 0, 0);
                }
                messagePacket.Add(bytes3, 0, 0);
                messagePacket.Add(this.DM.RoleBookMark.SelectBookMarkIndex, 0, 0);
                messagePacket.Send(false);
            }
            break;
        }
        }
    }
예제 #13
0
파일: UIJail.cs 프로젝트: gsoec/lm-source
    // Token: 0x06001D11 RID: 7441 RVA: 0x0034288C File Offset: 0x00340A8C
    public override void OnOpen(int arg1, int arg2)
    {
        this.DM   = DataManager.Instance;
        this.door = (Door)GUIManager.Instance.FindMenu(EGUIWindow.Door);
        this.B_ID = (ushort)arg1;
        Font ttffont = GUIManager.Instance.GetTTFFont();

        this.AGS_Form = base.transform;
        UIText component = this.AGS_Form.GetChild(2).GetChild(0).GetChild(0).GetComponent <UIText>();

        component.font       = ttffont;
        component            = this.AGS_Form.GetChild(2).GetChild(3).GetChild(0).GetComponent <UIText>();
        component.font       = ttffont;
        component.text       = this.DM.mStringTable.GetStringByID(7752u);
        component            = this.AGS_Form.GetChild(2).GetChild(3).GetChild(1).GetComponent <UIText>();
        component.font       = ttffont;
        component            = this.AGS_Form.GetChild(2).GetChild(4).GetChild(0).GetComponent <UIText>();
        component.text       = this.DM.mStringTable.GetStringByID(7753u);
        component.font       = ttffont;
        component            = this.AGS_Form.GetChild(2).GetChild(4).GetChild(1).GetComponent <UIText>();
        component.font       = ttffont;
        component            = this.AGS_Form.GetChild(2).GetChild(4).GetChild(3).GetComponent <UIText>();
        component.font       = ttffont;
        this.AGS_ScrollPanel = this.AGS_Form.GetChild(3).GetComponent <ScrollPanel>();
        component            = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <UIText>();
        component.text       = this.DM.mStringTable.GetStringByID(7755u);
        component.font       = ttffont;
        component            = this.AGS_Form.GetChild(4).GetChild(1).GetComponent <UIText>();
        component.text       = this.DM.mStringTable.GetStringByID(7756u);
        component.font       = ttffont;
        this.AGS_Form.GetChild(5).gameObject.SetActive(false);
        component      = this.AGS_Form.GetChild(5).GetChild(2).GetComponent <UIText>();
        component.font = ttffont;
        component      = this.AGS_Form.GetChild(5).GetChild(3).GetComponent <UIText>();
        component.font = ttffont;
        component      = this.AGS_Form.GetChild(5).GetChild(8).GetComponent <UIText>();
        component.font = ttffont;
        component      = this.AGS_Form.GetChild(5).GetChild(9).GetComponent <UIText>();
        component.font = ttffont;
        UIButton component2 = this.AGS_Form.GetChild(5).GetChild(0).GetComponent <UIButton>();

        component2.m_Handler = this;
        for (int i = 0; i < 4; i++)
        {
            this.tmpString[i] = StringManager.Instance.SpawnString(30);
        }
        for (int j = 0; j < 4; j++)
        {
            this.SPName[j] = StringManager.Instance.SpawnString(30);
            this.SPLv[j]   = StringManager.Instance.SpawnString(30);
            this.SPTime[j] = StringManager.Instance.SpawnString(30);
            this.SPStat[j] = StringManager.Instance.SpawnString(30);
        }
        this.updatePrisonerAmount();
        this.updateEff();
        GUIManager.Instance.UpdateUI(EGUIWindow.Door, 1, 2);
        if (!this.DM.Prisoner_Requested)
        {
            MessagePacket messagePacket = new MessagePacket(1024);
            messagePacket.Protocol = Protocol._MSG_REQUEST_PRISONER_LIST;
            messagePacket.AddSeqId();
            messagePacket.Send(false);
        }
        else
        {
            this.UpdateScrollPanel(false);
            this.updateScrollPanelTimeBar();
        }
    }
예제 #14
0
    // Token: 0x060015CA RID: 5578 RVA: 0x002514D4 File Offset: 0x0024F6D4
    public void OnClickBtn(int mkind)
    {
        switch (mkind)
        {
        case 1:
            GUIManager.Instance.OpenUI_Queued_Restricted_Top(EGUIWindow.UI_Other_Account, 0, 0, false, 0);
            break;

        case 2:
            this.door.OpenMenu(EGUIWindow.UI_Other_Set, 0, 0, false);
            break;

        case 3:
            this.door.OpenMenu(EGUIWindow.UI_Other_FunctionSwitch, 0, 0, false);
            break;

        case 4:
            this.door.OpenMenu(EGUIWindow.UI_Other_FunctionSwitch, 1, 0, false);
            break;

        case 5:
            this.door.OpenMenu(EGUIWindow.UI_SearchList, 0, 0, false);
            break;

        case 6:
            if (GUIManager.Instance.BuildingData.GetBuildData(8, 0).Level < 8)
            {
                GUIManager.Instance.MsgStr.ClearString();
                GUIManager.Instance.MsgStr.StringToFormat(this.DM.mStringTable.GetStringByID(7028u));
                GUIManager.Instance.MsgStr.IntToFormat(8L, 1, false);
                GUIManager.Instance.MsgStr.AppendFormat(this.DM.mStringTable.GetStringByID(9749u));
                GUIManager.Instance.AddHUDMessage(GUIManager.Instance.MsgStr.ToString(), 255, true);
            }
            else
            {
                UILeaderBoard.NewOpen = true;
                this.door.OpenMenu(EGUIWindow.UI_LeaderBoard, 2, 0, false);
            }
            break;

        case 7:
            this.door.OpenMenu(EGUIWindow.UI_BlackList, 0, 0, false);
            break;

        case 8:
            this.door.OpenMenu(EGUIWindow.UI_Other_Forum, 0, 0, false);
            break;

        case 9:
            this.door.OpenMenu(EGUIWindow.UI_Other_Forum, 1, 0, false);
            break;

        case 10:
            this.door.OpenMenu(EGUIWindow.UI_LanguageSelect, 2, 0, false);
            break;

        case 11:
            IGGSDKPlugin.OpenFbByUrl("http://weibo.com/lordsmobilecn");
            break;

        case 12:
            GUIManager.Instance.OpenMenu(EGUIWindow.UI_PaySetting, 0, 0, false, true, false);
            break;

        case 13:
            DataManager.FBMissionDataManager.m_FBBindEnd = false;
            this.door.OpenMenu(EGUIWindow.UI_MissionFB, 0, 0, true);
            if (DataManager.FBMissionDataManager.bFB_CDTime || DataManager.FBMissionDataManager.GetRemainTime() == 0u)
            {
                DataManager.FBMissionDataManager.bFB_btnShow = false;
                DataManager.FBMissionDataManager.ReSetFB_CDTime(null);
            }
            break;

        case 14:
        {
            bool flag = false;
            if (!this.DM.CheckPrizeFlag(28))
            {
                MessagePacket messagePacket = new MessagePacket(1024);
                messagePacket.Protocol = Protocol._MSG_WEGAMER_RESP_OFFICIAL_LIVE;
                messagePacket.AddSeqId();
                messagePacket.Send(false);
                DataManager dm = this.DM;
                dm.RoleAttr.PrizeFlag = (dm.RoleAttr.PrizeFlag | 268435456u);
                flag = true;
            }
            this.GUIM.StopShowLiveScale = 2;
            if (this.uToolBG_S)
            {
                this.uToolBG_S.enabled = false;
                this.uToolBG_S.SetCurrentValueToStart();
            }
            if (this.uToolBGF_S)
            {
                this.uToolBGF_S.enabled = false;
                this.uToolBGF_S.SetCurrentValueToStart();
            }
            if (this.uToolBGF_A)
            {
                this.uToolBGF_A.enabled = false;
                this.uToolBGF_A.SetCurrentValueToStart();
            }
            this.GUIM.UpdateUI(EGUIWindow.Door, 20, 0);
            if (!flag)
            {
                this.OpenH5();
            }
            break;
        }
        }
    }
예제 #15
0
 // Token: 0x06001F65 RID: 8037 RVA: 0x003C08F0 File Offset: 0x003BEAF0
 private void AllianceUpdate(int arg1, int arg2)
 {
     if (AllianceHint.Search == null)
     {
         return;
     }
     if (arg1 == 0)
     {
         AllianceHint.Pending = (long)(AllianceHint.SearchNum = Mathf.Min((int)DataManager.msgBuffer[1], 100));
     }
     else if (arg1 == 2)
     {
         AllianceHint.SearchPage = 0;
         while (AllianceHint.SearchPage < AllianceHint.SearchNum && this.m_scroll && AllianceHint.SearchPage < this.m_panel.Length && this.m_panel[AllianceHint.SearchPage] && this.m_panel[AllianceHint.SearchPage].m_BtnID1 >= 0)
         {
             this.UpDateRowItem(this.m_panel[AllianceHint.SearchPage].gameObject, this.m_panel[AllianceHint.SearchPage].m_BtnID1, 0, 1);
             AllianceHint.SearchPage++;
         }
     }
     else if (arg1 == 22)
     {
         if ((AllianceHint.SearchNum / 10 > (int)AllianceHint.SearchIdx || (AllianceHint.SearchNum / 10 == (int)AllianceHint.SearchIdx && AllianceHint.SearchNum % 10 != 0)) && NetworkManager.Connected())
         {
             byte searchIdx = AllianceHint.SearchIdx;
             AllianceHint.SearchIdx = searchIdx + 1;
             AllianceHint.Pending   = (long)searchIdx;
             MessagePacket messagePacket = new MessagePacket(1024);
             messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_SEARCHRESULT;
             messagePacket.AddSeqId();
             messagePacket.Add(AllianceHint.SearchIdx);
             messagePacket.Send(false);
         }
     }
     else if (arg1 == 23)
     {
         this.m_scroll.gameObject.SetActive(false);
     }
     else if (arg1 == 24)
     {
         this.m_scroll.gameObject.SetActive(true);
     }
     if (arg2 == 10)
     {
         if (AllianceHint.SearchNum > 0)
         {
             this.SetEmptyMsgAlly(eMsgPanel.None);
             for (int i = 0; i < AllianceHint.SearchNum; i++)
             {
                 if (!this.DM.mAllianceSearchView)
                 {
                     AllianceHint.Search[i].ID = 0u;
                 }
                 if (this.ItemsHeight.Count < AllianceHint.SearchNum)
                 {
                     this.ItemsHeight.Add(96f);
                 }
             }
             if (this.ItemsHeight.Count > AllianceHint.SearchNum)
             {
                 this.ItemsHeight.RemoveRange(AllianceHint.SearchNum - 1, this.ItemsHeight.Count - AllianceHint.SearchNum);
             }
         }
         else
         {
             this.ItemsHeight.Clear();
             AllianceHint.SearchIdx = 0;
             this.SetEmptyMsgAlly(eMsgPanel.PlzInputName);
         }
         if (this.m_scroll)
         {
             this.m_scroll.gameObject.SetActive(true);
             this.m_scroll.AddNewDataHeight(this.ItemsHeight, true, true);
         }
     }
 }
예제 #16
0
 // Token: 0x06001F57 RID: 8023 RVA: 0x003BEEA0 File Offset: 0x003BD0A0
 public void OnButtonClick(UIButton sender)
 {
     if (sender.m_BtnID2 > 0)
     {
         if (sender.m_BtnID2 == 2)
         {
             this.DM.mLastSearchPage  = 30;
             AllianceHint.Positioning = this.m_scroll.GetTopIdx();
             AllianceHint.Scrolling   = this.SearchRT.anchoredPosition.y;
             this.DM.AllianceView.Id  = AllianceHint.Search[sender.m_BtnID1].ID;
             this.m_door.OpenMenu(EGUIWindow.UIAlliance_publicinfo, 5, 0, false);
             this.DM.mAllianceSearchView = true;
         }
         else if (sender.m_BtnID1 == 31)
         {
             if (AllianceHint.FilterIdx == 0 && AllianceHint.FilterName.Length == 0)
             {
                 GUIManager.Instance.AddHUDMessage(this.DM.mStringTable.GetStringByID(4711u), 255, true);
                 return;
             }
             if (AllianceHint.FilterName.Length > 0 && AllianceHint.FilterName.Length < 3)
             {
                 GUIManager.Instance.AddHUDMessage(this.DM.mStringTable.GetStringByID(4710u), 255, true);
                 return;
             }
             AllianceHint.Proceeding = 1L;
             GUIManager.Instance.ShowUILock(EUILock.AllianceCreate);
             MessagePacket messagePacket = new MessagePacket(1024);
             messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_SEARCH;
             messagePacket.AddSeqId();
             messagePacket.Add(AllianceHint.FilterIdx);
             if (AllianceHint.FilterName.Length > 0)
             {
                 messagePacket.Add((byte)AllianceHint.FilterName.Length);
                 messagePacket.Add(AllianceHint.FilterName, AllianceHint.FilterName.Length);
             }
             messagePacket.Send(false);
             this.Path.Length      = 0;
             this.m_filter.text    = (AllianceHint.SearchLang = ((AllianceHint.FilterIdx <= 0) ? string.Empty : this.Path.AppendFormat(this.DM.mStringTable.GetStringByID(4703u), this.Alliance.GetChild(3).GetChild(17).GetChild(0).GetComponent <UIText>().text).ToString()));
             this.Path.Length      = 0;
             this.m_text[8].text   = (AllianceHint.SearchName = ((AllianceHint.FilterName.Length <= 0) ? string.Empty : this.Path.AppendFormat(this.DM.mStringTable.GetStringByID(4703u), AllianceHint.FilterName).ToString()));
             AllianceHint.SeekKind = byte.MaxValue;
         }
         else if (sender.m_BtnID1 == 32)
         {
             this.DM.mLastSearchPage   = 30;
             this.DM.CurSelectLanguage = AllianceHint.GenuineLang;
             this.m_door.OpenMenu(EGUIWindow.UI_LanguageSelect, 0, 0, false);
             this.DM.mAllianceSearchView = true;
         }
         else if (sender.m_BtnID1 == 33)
         {
             this.s_input.text      = string.Empty;
             AllianceHint.SeekKind  = 0;
             AllianceHint.SearchNum = 0;
             this.m_text[8].text    = (AllianceHint.SearchName = (AllianceHint.FilterName = string.Empty));
             this.AllianceUpdate(4, 10);
         }
         else if (sender.m_BtnID1 == 34)
         {
             this.SetFilterName(0);
             AllianceHint.SeekKind    = 0;
             AllianceHint.SearchNum   = 0;
             AllianceHint.GenuineLang = (AllianceHint.FilterIdx = (this.DM.CurSelectLanguage = 0));
             this.m_filter.text       = (AllianceHint.SearchLang = string.Empty);
             this.AllianceUpdate(5, 10);
         }
         return;
     }
     if (sender.m_BtnID1 == 999)
     {
         this.ClearUIInfo();
         this.ClearAlliance();
         this.m_door.CloseMenu(false);
     }
     else if (sender.m_BtnID1 == 998)
     {
         if (this.m_InputField.text.Length >= 3)
         {
             this.DM.SendSearchPlayer(this.m_InputField.text);
             this.SetSearchText(true);
         }
         else
         {
             this.GM.AddHUDMessage(this.DM.mStringTable.GetStringByID(4710u), 255, true);
         }
     }
     else if (sender.m_BtnID1 == 997)
     {
         this.SetEmptyInput();
     }
     else if (sender.m_BtnID1 == 996)
     {
         this.SetTabPanel(eTabPanel.Personal);
     }
     else if (sender.m_BtnID1 == 995)
     {
         this.SetTabPanel(eTabPanel.Alliance);
     }
     else if (sender.m_BtnID1 >= 0 && sender.m_BtnID1 < (int)this.DM.m_RecvSearchPlayerCount)
     {
         this.SaveUIInfo();
         if (sender.m_BtnID1 < (int)this.DM.m_RecvSearchPlayerCount && sender.m_BtnID1 >= 0)
         {
             this.DM.ShowLordProfile(this.DM.m_SearchPlayerData[sender.m_BtnID1].Name.ToString());
         }
     }
 }
예제 #17
0
 // Token: 0x06001600 RID: 5632 RVA: 0x002588CC File Offset: 0x00256ACC
 public void CheckPushSwitch()
 {
     if (this.DM.mSetNotice != 65535)
     {
         if ((this.DM.mSetNotice & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 1UL);
         }
         if ((this.DM.mSetNotice >> 1 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 2UL);
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 4UL);
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 8UL);
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 16UL);
         }
         if ((this.DM.mSetNotice >> 2 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 32UL);
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 64UL);
         }
         if ((this.DM.mSetNotice >> 3 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 32768UL);
         }
         if ((this.DM.mSetNotice >> 4 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 65536UL);
         }
         if ((this.DM.mSetNotice >> 5 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 131072UL);
         }
         if ((this.DM.mSetNotice >> 6 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 262144UL);
         }
         if ((this.DM.mSetNotice >> 7 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 524288UL);
         }
         if ((this.DM.mSetNotice >> 8 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 2048UL);
         }
         if ((this.DM.mSetNotice >> 9 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 256UL);
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 512UL);
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 1024UL);
         }
         if ((this.DM.mSetNotice >> 10 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 2097152UL);
         }
         if ((this.DM.mSetNotice >> 11 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 1048576UL);
         }
         if ((this.DM.mSetNotice >> 12 & 1) != 1)
         {
             this.DM.mNewPushSwitch = (this.DM.mNewPushSwitch | 128UL);
         }
         this.DM.mSetNotice = ushort.MaxValue;
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_SET_PUSH_SWITCH;
         messagePacket.AddSeqId();
         messagePacket.Add(this.DM.mSetNotice);
         messagePacket.Send(false);
     }
 }
예제 #18
0
    // Token: 0x06001D33 RID: 7475 RVA: 0x003457D4 File Offset: 0x003439D4
    public void OnButtonClick(UIButton sender)
    {
        switch (sender.m_BtnID1)
        {
        case 0:
            switch (sender.m_BtnID2)
            {
            case 0:
                this.door.CloseMenu(false);
                break;

            case 1:
                this.SetNext(true);
                break;

            case 2:
                this.SetNext(false);
                break;
            }
            break;

        case 1:
        {
            UIJailMoney uijailMoney = (UIJailMoney)GUIManager.Instance.OpenMenu(EGUIWindow.UI_JailMoney, 0, (int)this.DMIdx, false, true, false);
            if (this.DM.PrisonerList[(int)this.DMIdx].Ransom > 0u)
            {
                uijailMoney.SetMoney(this.DM.PrisonerList[(int)this.DMIdx].Ransom);
            }
            break;
        }

        case 2:
            this.openOkBox = true;
            GUIManager.Instance.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(3971u), this.DM.mStringTable.GetStringByID(7793u), 0, 0, null, null);
            break;

        case 3:
        {
            MessagePacket messagePacket = new MessagePacket(1024);
            messagePacket.Protocol = Protocol._MSG_REQUEST_EXECUTE_PRISONER;
            messagePacket.AddSeqId();
            messagePacket.Add(this.DMIdx);
            messagePacket.Send(false);
            this.door.CloseMenu(false);
            break;
        }

        case 4:
            this.DM.ShowLordProfile(this.DM.PrisonerList[(int)this.DMIdx].name.ToString());
            break;

        case 5:
            DataManager.Instance.Letter_ReplyName = this.DM.PrisonerList[(int)this.DMIdx].name.ToString();
            this.door.OpenMenu(EGUIWindow.UI_LetterEditor, 2, 0, false);
            break;

        case 6:
            GUIManager.Instance.OpenSpendWindow_ItemID(3, this.DM.mStringTable.GetStringByID(4957u), 1314, (int)this.DMIdx, 0, null, null, null);
            this.openOkBox = true;
            break;
        }
    }