public void SetData( AS_SC_PARTY_DETAIL_INFO _info, bool bNotice = false) { m_bNotice = bNotice; m_nPartyIdx = _info.nPartyIdx; m_PartyNameText.Text = AsUtil.GetRealString( System.Text.UTF8Encoding.UTF8.GetString( _info.sOption.szPartyName)); if( _info.sOption.eDivide == (int)ePARTYITEMDIVIDE.ePARTYITEMDIVIDE_FREE) m_ItemDivideText.Text = AsTableManager.Instance. GetTbl_String(1953); //Free if( _info.sOption.eDivide == (int)ePARTYITEMDIVIDE.ePARTYITEMDIVIDE_ORDER) m_ItemDivideText.Text = AsTableManager.Instance. GetTbl_String(1952);//Rotation if( _info.sOption.eDivide == (int)ePARTYITEMDIVIDE.ePARTYITEMDIVIDE_EQUIP )// #23004 m_ItemDivideText.Text = AsTableManager.Instance.GetTbl_String(1250);//Equip Tbl_ZoneMap_Record record = AsTableManager.Instance.GetZoneMapRecord( _info.nMapIdx); if( null != record) m_SelectArea.Text = AsTableManager.Instance. GetTbl_String( record.getTooltipStrIdx); for( int i = 0; i < AsGameDefine.MAX_PARTY_USER; ++i) { if( i < _info.nUserCnt) { switch( (eCLASS)_info.body[i].eClass) { case eCLASS.DIVINEKNIGHT: m_UserClassText[i].Text = AsTableManager.Instance. GetTbl_String(1054); break; case eCLASS.MAGICIAN: m_UserClassText[i].Text = AsTableManager.Instance. GetTbl_String(1055); break; case eCLASS.CLERIC: m_UserClassText[i].Text = AsTableManager.Instance. GetTbl_String(1057); break; case eCLASS.HUNTER: m_UserClassText[i].Text = AsTableManager.Instance. GetTbl_String(1056); break; case eCLASS.ASSASSIN: m_UserClassText[i].Text = AsTableManager.Instance. GetTbl_String(1058); break; default: m_UserClassText[i].Text = "Error"; break; } StringBuilder sb = new StringBuilder(); sb.Insert( 0,"Lv."); sb.Append( _info.body[i].nLevel.ToString()); m_UserLevelText[i].Text = sb.ToString(); m_UserNameText[i].Text = AsUtil.GetRealString((System.Text.UTF8Encoding.UTF8.GetString( _info.body[i].szCharName))); } else { m_UserClassText[i].Text = ""; m_UserLevelText[i].Text = ""; m_UserNameText[i].Text = ""; } } }
void PartyDetailInfo(byte[] _packet) { AS_SC_PARTY_DETAIL_INFO partyDetailInfo = new AS_SC_PARTY_DETAIL_INFO(); partyDetailInfo.PacketBytesToClass(_packet); #if _PARTY_LOG_ Debug.Log( "PartyDetailInfo"); Debug.Log( "PartyOptionInfo" + partyDetailInfo.sOption.bPublic.ToString() + partyDetailInfo.sOption.ePurpose.ToString() + "Divide:"+ partyDetailInfo.sOption.eDivide.ToString() + "eGrade" + partyDetailInfo.sOption.eGrade.ToString() ); #endif if( eRESULTCODE.eRESULT_SUCC != partyDetailInfo.eResult) { AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(4086), AsTableManager.Instance.GetTbl_String(390), null, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_ERROR); return; } AsPartyManager.Instance.ReceivePartyDetailInfo(partyDetailInfo); }
public void ReceivePartyDetailInfo( AS_SC_PARTY_DETAIL_INFO _info) { #if _PARTY_LOG_ Debug.Log( "ReceivePartyDetailInfo"); #endif if( null == _info) return; if( null != m_PartyInfoDlg) { GameObject.Destroy( m_PartyInfoDlg); m_PartyInfoDlg = null; } //파티 정보 처리... if( SendDetailPartyIdx == _info.nPartyIdx) { if( null == m_PartyInfoDlg) m_PartyInfoDlg = Instantiate( ResourceLoad.LoadGameObject( "UI/AsGUI/PartyMatching/GUI_PartyInfo")) as GameObject; AsPartyInfoDlg dlg = m_PartyInfoDlg.GetComponentInChildren<AsPartyInfoDlg>(); dlg.SetData( _info, false); } else if( SendNoticePartyIdx == _info.nPartyIdx) { if( null == m_PartyInfoDlg) m_PartyInfoDlg = Instantiate( ResourceLoad.LoadGameObject( "UI/AsGUI/PartyMatching/GUI_PartyInfo")) as GameObject; AsPartyInfoDlg dlg = m_PartyInfoDlg.GetComponentInChildren<AsPartyInfoDlg>(); dlg.SetData( _info, true); } if( PartyIdx == _info.nPartyIdx) { PartyMapIdx = _info.nMapIdx;//#23043 PartyOption = _info.sOption; } }