Jump to content

[PROBLEM] Change Look System


Recommended Posts

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?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Forum Moderator

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

  • Love 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.