예제 #1
0
	private void OnConfirmBtn()
	{
		AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);

		if( false == AsUtil.CheckCharacterName( nameField.Text))
			return;
		
		if( 0 >= nameField.Text.Length)
			return;
		
		body_CS_GUILD_INVITE guildInvite = new body_CS_GUILD_INVITE( nameField.Text);
		byte[] packet = guildInvite.ClassToPacketBytes();
		AsNetworkMessageHandler.Instance.Send( packet);
		
		string msg = string.Format( AsTableManager.Instance.GetTbl_String(239), nameField.Text);
		AsChatManager.Instance.InsertChat( msg, eCHATTYPE.eCHATTYPE_SYSTEM);
		
		nameField.Text = "";
	}
예제 #2
0
	private void GuildInviteBtnDelegate( ref POINTER_INFO ptr)
	{
		if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
		{
			if( IsOnline() && AsUserInfo.Instance.GuildData != null)
			{
				bool bGuildInvite	 = ( eGUILDPERMISSION.eGUILDPERMISSION_INVITE == ( eGUILDPERMISSION.eGUILDPERMISSION_INVITE & AsUserInfo.Instance.GuildData.ePermission)) ? true : false;
				if( bGuildInvite)
				{
					body_CS_GUILD_INVITE guildInvite = new body_CS_GUILD_INVITE( m_data.szCharName);
					byte[] packet = guildInvite.ClassToPacketBytes();
					AsNetworkMessageHandler.Instance.Send( packet);
				}

				AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);
				Close();
			}
		}
	}