示例#1
0
	void ConditionCoolProcess(Tbl_Emoticon_Record _record, eAutoCondition _condition)
	{
//		StartCoroutine(ConditionCoolProcess_CR(_record, _condition));
		
//		if(m_dicConditionCool.ContainsKey(_condition) == false)
//			m_dicConditionCool.Add(_condition, _record.GetConditionCool(_condition));
//		else
//			m_dicConditionCool[_condition] = _record.GetConditionCool(_condition);
		
		m_ConditionCool[(int)_condition] = _record.GetConditionCool(_condition) * 0.001f;
	}
示例#2
0
	public override void LoadTable(string _path)
	{
		try{
			XmlElement root = GetXmlRootElement(_path);
			XmlNodeList nodes = root.ChildNodes;
			
			foreach(XmlNode node in nodes)
			{
				Tbl_Emoticon_Record record = new Tbl_Emoticon_Record((XmlElement)node);
				m_ResourceTable.Add(record.Index, record);
				
				switch(record.Section)
				{
				case eEmoticonType.Hunt:
					m_listHunt.Add(record);
					break;
				case eEmoticonType.Normal:
					m_listNormal.Add(record);
					break;
				}
				
				foreach(EmoticonCondition node2 in record.listCondition)
				{
					if(node2.ActivationType != eActivationType.NONE)
						m_mdicCondition.Add(node2.AutoCondition, record);
				}
			}
		}
		catch(System.Exception e)
		{
			Debug.LogError(e);
		}
	}
示例#3
0
	void ConditionProcess(Tbl_Emoticon_Record _record, eAutoCondition _condition)
	{
		if(AsGameMain.GetOptionState(OptionBtnType.OptionBtnType_AutoChat) == false)
			return;
		
		if(_record == null)
			return;
		
		if(CheckEnableConditon(_condition) == true)
			ConditionCoolProcess(_record, _condition);
		else
			return;
		
		switch(_record.GetConditionActivation(_condition))
		{
		case eActivationType.NONE:
			Debug.LogWarning("AsEmoticonManager::ConditionProcess: cannot be process in this condition = " + eActivationType.NONE);
			break;
		case eActivationType.Auto:
			Request_Emoticon(_record.Index - 1);
			break;
		case eActivationType.Choice:
			m_ReservedRecord = _record;
			
			// button init
			m_Button = Instantiate(ResourceLoad.LoadGameObject("UI/Optimization/Prefab/GUI_Balloon_ChatMacro")) as GameObject;
			AsChatMacroContainer container = m_Button.GetComponent<AsChatMacroContainer>();
			container.ButtonActivate(_record.Index - 1);//, OnIconClicked);
			
//			string path = "Btn_";
//			if(m_ReservedRecord.Section == eEmoticonType.Normal)
//				path += "Normal_" + (m_ReservedRecord.Index + AsEmoticonPanel.s_BtnCount - 1);
//			else
//				path += "Hunting_" + (m_ReservedRecord.Index - 1);
			
//			Transform buttons = m_Button.transform.Find("Buttons");
//			Transform child = buttons.transform.Find(path);
//			child.parent = m_Button.transform;
//			Destroy(buttons.gameObject);
//			Destroy(m_Button, 3f);
			
			AsSkillCoolTimeAlramDelegatorManager.Instance.DestroyAlarm();
			
//			UIButton btn = child.GetComponent<UIButton>();
//			btn.SetInputDelegate(OnIconClicked);
			
			break;
		}
	}
示例#4
0
	public Msg_Emoticon_Seat_Indicate( Tbl_Emoticon_Record _record)
	{
		m_MessageType = eMessageType.EMOTICON_SEAT_INDICATION;
	}