public void Init( body_SC_GUILD_INFO_DETAIL_RESULT data) { AsUtil.SetRenderingState( gameObject, true); int expIndex = savedLevel + 4210 - 1; curLevel.Text = string.Format( "{0}{1}", AsTableManager.Instance.GetTbl_String( 1094), savedLevel); curMaxGuilder.Text = string.Format( "{0}{1}", data.nCurMaxMember, AsTableManager.Instance.GetTbl_String(337)); curStorage.Text = string.Format( "{0}", AsTableManager.Instance.GetTbl_String( expIndex)); if( MAX_GUILD_LEVEL > savedLevel) { nextLevel.Text = string.Format( "{0}{1}", AsTableManager.Instance.GetTbl_String( 1094), ( savedLevel + 1)); nextMaxGuilder.Text = string.Format( "{0}{1}", data.nNextMaxMember, AsTableManager.Instance.GetTbl_String(337)); nextStorage.Text = string.Format( "{0}", AsTableManager.Instance.GetTbl_String( expIndex + 1)); needGold.Text = data.nPrice.ToString( "#,#0", CultureInfo.InvariantCulture); } else { nextLevel.gameObject.SetActiveRecursively( false); nextMaxGuilder.gameObject.SetActiveRecursively( false); nextStorage.gameObject.SetActiveRecursively( false); needGold.gameObject.SetActiveRecursively( false); levelUpBtn.SetControlState( UIButton.CONTROL_STATE.DISABLED); levelUpBtn.spriteText.Color = Color.gray; } }
void GuildInfoDetailResult( byte[] _packet) { body_SC_GUILD_INFO_DETAIL_RESULT result = new body_SC_GUILD_INFO_DETAIL_RESULT(); result.PacketBytesToClass( _packet); if( null == AsHudDlgMgr.Instance.GuildDetailInfoDlg) { Debug.LogWarning( "Guild detail info dlg is not exist"); return; } AsGuildDetailInfo detailInfoDlg = AsHudDlgMgr.Instance.GuildDetailInfoDlg.gameObject.GetComponentInChildren<AsGuildDetailInfo>(); detailInfoDlg.Init( result); }