// Token: 0x0600F154 RID: 61780 RVA: 0x004025B8 File Offset: 0x004007B8
        private void CreateGuild()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateGuild_hotfix != null)
            {
                this.m_CreateGuild_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            bool   isOn         = this.m_approveAutoToggle.isOn;
            string announcement = this.m_configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_DefaultGuildAnnouncement);
            GuildCreateReqNetTask guildCreateReqNetTask = new GuildCreateReqNetTask(this.m_guildNameInputField.text, this.m_guildDeclarationInputField.text, announcement, isOn, this.m_requireLevel);

            guildCreateReqNetTask.EventOnStop += delegate(Task task)
            {
                GuildCreateReqNetTask guildCreateReqNetTask2 = task as GuildCreateReqNetTask;
                if (guildCreateReqNetTask2.Result == 0)
                {
                    this.m_playerContext.RemoveBagItemByType(GoodsType.GoodsType_Item, this.m_configDataLoader.ConfigableConstId_GuildCreateItemId, 1, GameFunctionType.GameFunctionType_None, null);
                    this.m_guildUITask.Stop();
                    UIIntent prevTaskIntent = (this.m_guildUITask.CurrentIntent as UIIntentReturnable).PrevTaskIntent;
                    UIIntent intent         = prevTaskIntent;
                    GuildManagementUITask.StartUITask(null, intent);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(guildCreateReqNetTask2.Result, 2f, null, true);
                }
            };
            guildCreateReqNetTask.Start(null);
        }
예제 #2
0
        // Token: 0x0600F0BD RID: 61629 RVA: 0x00400F24 File Offset: 0x003FF124
        private void OnDetailClick()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnDetailClick_hotfix != null)
            {
                this.m_OnDetailClick_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GuildUITask guildUITask    = UIUtility.FindUITaskWithType(typeof(GuildUITask)) as GuildUITask;
            UIIntent    prevTaskIntent = (guildUITask.CurrentIntent as UIIntentReturnable).PrevTaskIntent;

            GuildManagementUITask.StartUITask(this.m_guildJoinInvitation.GuildId, prevTaskIntent);
        }
예제 #3
0
        // Token: 0x0600F0BB RID: 61627 RVA: 0x00400E0C File Offset: 0x003FF00C
        private void OnAcceptClick()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnAcceptClick_hotfix != null)
            {
                this.m_OnAcceptClick_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GuildJoinPlayerConfirmReqNetTask guildJoinPlayerConfirmReqNetTask = new GuildJoinPlayerConfirmReqNetTask(this.m_guildJoinInvitation.GuildId);

            guildJoinPlayerConfirmReqNetTask.EventOnStop += delegate(Task task)
            {
                GuildJoinPlayerConfirmReqNetTask guildJoinPlayerConfirmReqNetTask2 = task as GuildJoinPlayerConfirmReqNetTask;
                if (guildJoinPlayerConfirmReqNetTask2.Result == 0)
                {
                    GuildUITask guildUITask    = UIUtility.FindUITaskWithType(typeof(GuildUITask)) as GuildUITask;
                    UIIntent    prevTaskIntent = (guildUITask.CurrentIntent as UIIntentReturnable).PrevTaskIntent;
                    guildUITask.Stop();
                    UIIntent intent = prevTaskIntent;
                    GuildManagementUITask.StartUITask(null, intent);
                    string value = this.m_configDataLoader.GetConfigDataStringTable(14016).Value;
                    CommonUIController.Instance.ShowMessage(value, 2f, null, true);
                }
                else if (guildJoinPlayerConfirmReqNetTask2.Result == -5203)
                {
                    TimeSpan timeSpan = this.m_playerContext.CanJoinGuildCDTime();
                    string   format   = this.m_configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Guild_JoinGuildCD);
                    CommonUIController.Instance.ShowMessage(string.Format(format, timeSpan.Hours, timeSpan.Minutes + 1), 2f, null, true);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(guildJoinPlayerConfirmReqNetTask2.Result, 2f, null, true);
                }
                if (this.ItemRefreshEvent != null)
                {
                    this.ItemRefreshEvent();
                }
            };
            guildJoinPlayerConfirmReqNetTask.Start(null);
        }
예제 #4
0
 // Token: 0x0600F10C RID: 61708 RVA: 0x00401CFC File Offset: 0x003FFEFC
 private void OnGuildUpdateInfoNtf(GuildLog log)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnGuildUpdateInfoNtfGuildLog_hotfix != null)
     {
         this.m_OnGuildUpdateInfoNtfGuildLog_hotfix.call(new object[]
         {
             this,
             log
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     if (log.ModeId == 20010)
     {
         this.m_guildUITask.Stop();
         UIIntent prevTaskIntent = (this.m_guildUITask.CurrentIntent as UIIntentReturnable).PrevTaskIntent;
         UIIntent intent         = prevTaskIntent;
         GuildManagementUITask.StartUITask(null, intent);
     }
 }