Jump to content

Change sash position from costume window to inventory


Recommended Posts

  • Forum Moderator

Already i posted that in another forum some years ago, but i can't share the link here, check your inbox.

  • Love 1
Link to comment
Share on other sites

  • Forum Moderator

Ok, there're many guys which want that and wroted me in PM, i'll leave the code here.

  • root/uiInventory.py
Spoiler

#1.1) Search for:
	def RefreshItemSlot(self):
		self.RefreshBagSlotWindow()
		self.RefreshEquipSlotWindow()
#1.1) Replace with:
	def RefreshItemSlot(self):
		self.RefreshBagSlotWindow()
		self.RefreshEquipSlotWindow()
		self.RefreshCostumeSlot()
		
#1.2) Search for:
	def SetItemToolTip(self, tooltipItem):
		self.tooltipItem = tooltipItem
		
#1.2) Add after:
	def RefreshCostumeSlot(self):
		for i in xrange(item.COSTUME_SLOT_COUNT):
			slotNumber = item.COSTUME_SLOT_START + i
			self.wndEquip.SetItemSlot(slotNumber, player.GetItemIndex(slotNumber), 0)
		
#1.3) Search in def RefreshEquipSlotWindow(self) for:
		self.wndEquip.RefreshSlot()
		
#1.3) Add before:
		self.RefreshCostumeSlot()

 

  • locale/en/ui/InventoryWindow.py
Spoiler

#1.1) Search for:
import item
#1.1) Add after:
COSTUME_START_INDEX = item.COSTUME_SLOT_START

#1.2) Search in "slot" : ( for:
	{"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
#1.2) Add after:
	#{"index":COSTUME_START_INDEX+0, "x":80, "y":3, "width":32, "height":32}, # Costume - Body
	#{"index":COSTUME_START_INDEX+1, "x":80, "y":3, "width":32, "height":32}, # Costume - Hair
	{"index":COSTUME_START_INDEX+2, "x":80, "y":3, "width":32, "height":32}, # Costume - Acce

 

  • Love 5
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.