// Token: 0x0600EF85 RID: 61317 RVA: 0x003FDEE0 File Offset: 0x003FC0E0
        private void OnGuildJoinClick()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnGuildJoinClick_hotfix != null)
            {
                this.m_OnGuildJoinClick_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GuildJoinApplyReqNetTask guildJoinApplyReqNetTask = new GuildJoinApplyReqNetTask(this.m_selectGuildInfo.Id);

            guildJoinApplyReqNetTask.EventOnStop += delegate(Task task)
            {
                GuildJoinApplyReqNetTask guildJoinApplyReqNetTask2 = task as GuildJoinApplyReqNetTask;
                if (guildJoinApplyReqNetTask2.Result == 0)
                {
                    this.m_guildUIController.m_guildListUIController.RefreshGuildList();
                    this.SetSelectGuildInfo(this.m_selectGuildInfo);
                    if (!string.IsNullOrEmpty(this.m_playerContext.GetGuildId()))
                    {
                        GuildUITask guildUITask    = UIUtility.FindUITaskWithType(typeof(GuildUITask)) as GuildUITask;
                        UIIntent    prevTaskIntent = (guildUITask.CurrentIntent as UIIntentReturnable).PrevTaskIntent;
                        guildUITask.Stop();
                        UIIntent intent = prevTaskIntent;
                        GuildManagementUITask.StartUITask(null, intent);
                    }
                }
                else if (guildJoinApplyReqNetTask2.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(guildJoinApplyReqNetTask2.Result, 2f, null, true);
                }
            };
            guildJoinApplyReqNetTask.Start(null);
        }
Exemplo n.º 2
0
 // Token: 0x0600F9CC RID: 63948 RVA: 0x0041C068 File Offset: 0x0041A268
 public LuaExportHelper(GuildUITask owner)
 {
     this.m_owner = owner;
 }