public static void ShowItemDetailInfo(ITEM Item, G_ID eGID)
	{
		ITEM iTEM = new ITEM();
		iTEM.Set(Item);
		if (iTEM != null && iTEM.m_nItemUnique > 0)
		{
			ItemTooltipDlg itemTooltipDlg = NrTSingleton<FormsManager>.Instance.LoadForm(G_ID.ITEMTOOLTIP_DLG) as ItemTooltipDlg;
			itemTooltipDlg.Set_Tooltip(eGID, iTEM, null, false);
		}
	}
Ejemplo n.º 2
0
    private void OnItemToolTip(IUIObject a_oObject)
    {
        ItemTexture itemTexture = a_oObject as ItemTexture;

        if (itemTexture != null)
        {
            ITEM iTEM = itemTexture.Data as ITEM;
            if (iTEM != null && iTEM.m_nItemUnique > 0)
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.TOOLTIP_DLG);

                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.ITEMTOOLTIP_DLG);

                ItemTooltipDlg itemTooltipDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ITEMTOOLTIP_DLG) as ItemTooltipDlg;

                itemTooltipDlg.Set_Tooltip((G_ID)base.WindowID, iTEM, null, false);
            }
        }
    }
Ejemplo n.º 3
0
    public void OnClickItemAttend(IUIObject obj)
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo == null)
        {
            return;
        }
        byte       index      = (byte)obj.Data;
        ATTENDANCE aTTENDANCE = NrTSingleton <NrAttendance_Manager> .Instance.Get_ConsecutivelyattendanceIndex(index, myCharInfo.ConsecutivelyattendanceRewardType);

        if (aTTENDANCE != null)
        {
            ITEM iTEM = new ITEM();
            iTEM.m_nItemUnique = aTTENDANCE.m_i32Item_Unique;
            iTEM.m_nItemNum    = (int)aTTENDANCE.m_i16Item_Num;
            ItemTooltipDlg itemTooltipDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ITEMTOOLTIP_DLG) as ItemTooltipDlg;

            itemTooltipDlg.Set_Tooltip((G_ID)base.WindowID, iTEM, null, false);
        }
    }
	public void On_ClickItem(IUIObject obj)
	{
		UIScrollList uIScrollList = obj as UIScrollList;
		if (uIScrollList != null)
		{
			UIListItemContainer selectedItem = uIScrollList.SelectedItem;
			if (selectedItem != null)
			{
				ImageSlot imageSlot = selectedItem.Data as ImageSlot;
				if (imageSlot != null && imageSlot.c_oItem != null)
				{
					ITEM iTEM = new ITEM();
					iTEM.Set(imageSlot.c_oItem as ITEM);
					if (iTEM != null && iTEM.m_nItemUnique > 0)
					{
						ItemTooltipDlg itemTooltipDlg = NrTSingleton<FormsManager>.Instance.LoadForm(G_ID.ITEMTOOLTIP_DLG) as ItemTooltipDlg;
						itemTooltipDlg.Set_Tooltip((G_ID)base.WindowID, iTEM, null, false);
					}
				}
			}
		}
	}