Jump to content

[Python] Insert Sash on Inventory


Web
 Share

Recommended Posts

Open uiinventory.py and search:

		self.wndItem.RefreshSlot()
		if self.wndBelt:
			self.wndBelt.RefreshSlot()

Add below:

	def RefreshNewSlotAcce(self):
		getAcceVnum=player.GetItemIndex
		
		illumina_slot_acce = item.COSTUME_SLOT_COUNT
		for acce_illumina in xrange(illumina_slot_acce):
			slot_Acce = item.COSTUME_SLOT_START + acce_illumina
			self.wndEquip.SetItemSlot(slot_Acce, getAcceVnum(slot_Acce), 0)

		self.wndEquip.RefreshSlot()

Search:

	def Show(self):
		self.__LoadWindow()

Add below:

self.RefreshNewSlotAcce()

Search:

			setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount)
			
		getItemVNum=player.GetItemIndex

Add below:

		illumina_slot_acce = item.COSTUME_SLOT_COUNT
		for acce_illumina in xrange(illumina_slot_acce):
			slot_Acce = item.COSTUME_SLOT_START + acce_illumina
			self.wndEquip.SetItemSlot(slot_Acce, getItemVNum(slot_Acce), 0)

 

Now open inventorywindow.py and search:

import item

Add below:

SLOT_ACCE_ILLUMINA = item.COSTUME_SLOT_START

Search:

"slot" : (

Add below:

{"index":SLOT_ACCE_ILLUMINA+2, "x":80, "y":3, "width":32, "height":32}, # Slot Acce Illumina

 

->  Screenshot_1.png.dfcea93d6c25c4aa115822aa1e246063.png <-

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...