Jump to content
metin2dev
  • 0
Driguezgames

open [PROBLEM] Change Look System

Question

Hello, i have a Small Bug, all its Working but the Icon on a Item Transmuted don't show, so...

my problem is: 

148faab.png

 

But i don't know where i put this, i don't have wndMgr.SetSlotID(self.hWnd, renderingSlotNumber, id) on Ui.Py like the Tutorial said, what i do?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Take a look on ui.py on the def SetItemSlot function:

	def SetItemSlot(self, renderingSlotNumber, ItemIndex, ItemCount = 0, diffuseColor = (1.0, 1.0, 1.0, 1.0), id = 0):
		if ItemIndex == None or ItemIndex == 0:
			wndMgr.ClearSlot(self.hWnd, renderingSlotNumber)
			return
		
		item.SelectItem(ItemIndex)
		itemIcon = item.GetIconImage()
		(width, height) = item.GetItemSize()
		wndMgr.SetSlot(self.hWnd, renderingSlotNumber, ItemIndex, width, height, itemIcon, diffuseColor)
		wndMgr.SetSlotCount(self.hWnd, renderingSlotNumber, ItemCount)
		wndMgr.SetSlotID(self.hWnd, renderingSlotNumber, id)
		if app.ENABLE_CHANGELOOK_SYSTEM:
			wndMgr.SetCoverButton(self.hWnd, renderingSlotNumber, "d:/ymir work/ui/game/quest/slot_button_00.sub", "d:/ymir work/ui/game/quest/slot_button_00.sub", "d:/ymir work/ui/game/quest/slot_button_00.sub", "icon/item/ingame_convert_mark.tga", False, False)



Best regards
Raylee

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, Raylee said:

Take a look on ui.py on the def SetItemSlot function:


	def SetItemSlot(self, renderingSlotNumber, ItemIndex, ItemCount = 0, diffuseColor = (1.0, 1.0, 1.0, 1.0), id = 0):
		if ItemIndex == None or ItemIndex == 0:
			wndMgr.ClearSlot(self.hWnd, renderingSlotNumber)
			return
		
		item.SelectItem(ItemIndex)
		itemIcon = item.GetIconImage()
		(width, height) = item.GetItemSize()
		wndMgr.SetSlot(self.hWnd, renderingSlotNumber, ItemIndex, width, height, itemIcon, diffuseColor)
		wndMgr.SetSlotCount(self.hWnd, renderingSlotNumber, ItemCount)
		wndMgr.SetSlotID(self.hWnd, renderingSlotNumber, id)
		if app.ENABLE_CHANGELOOK_SYSTEM:
			wndMgr.SetCoverButton(self.hWnd, renderingSlotNumber, "d:/ymir work/ui/game/quest/slot_button_00.sub", "d:/ymir work/ui/game/quest/slot_button_00.sub", "d:/ymir work/ui/game/quest/slot_button_00.sub", "icon/item/ingame_convert_mark.tga", False, False)



Best regards
Raylee

Solved, thanks

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×