Exemplo n.º 1
0
	private void _AppendItemGet(AsSlot slot, byte slotIndex)
	{
		if( true == _isOpenMsgBox())
			return;

		if( true == readMailInfo.bAccount)
		{
			Color titleColor = new Color( 1.0f, 0.494f, 0.0f, 1.0f);
			string title = titleColor.ToString() + AsTableManager.Instance.GetTbl_String(1442);
			string msg = AsTableManager.Instance.GetTbl_String(1443);
			m_msgboxItem = AsNotify.Instance.MessageBox( title, msg, this, "OnMsgBox_AppendItemGet_Ok", "OnMsgBox_AppendItemGet_Cancel", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION);
			m_slotBuf = slot;
			m_slotIndexBuf = slotIndex;
		}
		else
		{
			// server packet
			RecieveMailItem( slotIndex);
			slot.SetEmpty();
		}

		if( false == _isGetItemInReadMailInfo())
		{
			btnTakeAll.SetControlState( UIButton.CONTROL_STATE.DISABLED);
			btnTakeAll.spriteText.Color = Color.gray;
		}
	}
Exemplo n.º 2
0
	private void SetSlotsInSlot( AsSlot _slot, int iBeginIndex, sQUICKSLOT[] qucikSlots, int i)
	{
		if( iBeginIndex+i >= qucikSlots.Length )
		{
			Debug.LogError("AsQuickSlotManager SetSlotsInSlot array index overflow![" + (iBeginIndex+i).ToString() + "]"); 
			return;
		}
		
		sQUICKSLOT _quickSlot = qucikSlots[ iBeginIndex + i];
		if( (int)eQUICKSLOT_TYPE.eQUICKSLOT_TYPE_ITEM == _quickSlot.eType)
		{
			if( _quickSlot.nValue == 0)
				_slot.SetEmpty();
			else
				_slot.SetItem( _quickSlot.nValue);
		}
		else if( (int)eQUICKSLOT_TYPE.eQUICKSLOT_TYPE_SKILL == _quickSlot.eType)
		{
			if( _quickSlot.nValue == 0)
			{
				_slot.SetEmpty();
			}
			else if( SkillBook.Instance.dicCurSkill.ContainsKey(_quickSlot.nValue) ) 
			{
				SkillView _skill = SkillBook.Instance.dicCurSkill[_quickSlot.nValue];
				_slot.SetSkill( _skill.nSkillTableIdx, _skill.nSkillLevel);
			}
		}
		else
		{
			_slot.SetEmpty();
		}
	}
Exemplo n.º 3
0
	private void _AppendItemCancel(AsSlot slot)
	{
		ItemMgr.HadItemManagement.Inven.SetSlotMoveLock(slot.getRealItem.getSlot, false);
		if (true == AsHudDlgMgr.Instance.IsOpenInven)
			AsHudDlgMgr.Instance.invenDlg.ApplySlotMoveLock();
		slot.SetEmpty();
	}