Jump to content
  • 0

Costume window opening by inventory sidebar


ReFresh

Question

8 answers to this question

Recommended Posts

  • 0

Thanks to Galadriela @ J4m

What would it look like?

https://i.gyazo.com/3344cc4f49f24a4ae5923398eab901ef.mp4

1. Replace your costumewindow.py with this one:

https://pastebin.com/wXMGS6CN

2. Replace class CostumeWindow from uiinventory with this one:

https://pastebin.com/ctzEAnUg

3. Search for

 

		# 인벤토리를 닫을 때 코스츔이 열려있었다면 인벤토리를 열 때 코스츔도 같이 열도록 함.	
		if self.isOpenedCostumeWindowWhenClosingInventory and self.wndCostume:	
			self.wndCostume.Show()

 

4. Replace with:

		# 인벤토리를 닫을 때 코스츔이 열려있었다면 인벤토리를 열 때 코스츔도 같이 열도록 함.
		if self.wndCostume:
			self.wndCostume.Show(self.isOpenedCostumeWindowWhenClosingInventory)

 

5. Search for

self.costumeButton = self.GetChild2("CostumeButton")

 

6.  Add below

self.costumeButton.Hide()

 

7. Search & Delete this:

			if self.costumeButton and not app.ENABLE_COSTUME_SYSTEM:	
				self.costumeButton.Hide()	
				self.costumeButton.Destroy()	
				self.costumeButton = 0

 

8. Search this:

			if app.ENABLE_NEW_EQUIPMENT_SYSTEM:
				self.wndBelt = BeltInventoryWindow(self)

9. Add below:

			# Costume Window
			if app.ENABLE_COSTUME_SYSTEM:
				self.wndCostume = CostumeWindow(self)

 

10. Search:

		# Costume Button	
		if self.costumeButton:	
			self.costumeButton.SetEvent(ui.__mem_func__(self.ClickCostumeButton))
		self.wndCostume = None

11. Replace with:

		# Costume Button
		##if self.costumeButton:
		##	self.costumeButton.SetEvent(ui.__mem_func__(self.ClickCostumeButton))

		self.wndCostume = CostumeWindow(self)

 

12. Search for:

				self.isOpenedCostumeWindowWhenClosingInventory = self.wndCostume.IsShow()			# 인벤토리 창이 닫힐 때 코스츔이 열려 있었는가?

13. Replace with:

			self.isOpenedCostumeWindowWhenClosingInventory = self.wndCostume.IsOpeningInventory()
			print "Is Opening Costume window?? ", self.isOpenedCostumeWindowWhenClosingInventory

 

14. Search for

		def OnMoveWindow(self, x, y):	
#		print "Inventory Global Pos : ", self.GetGlobalPosition()	
		if self.wndBelt:	
#			print "Belt Global Pos : ", self.wndBelt.GetGlobalPosition()	
			self.wndBelt.AdjustPositionAndSize()

15. Add below:

		if self.wndCostume:
			self.wndCostume.AdjustPositionAndSize()

 

Link to comment

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


  • Read our Rules
  • Activity

    1. 0

      Help with quest

    2. 0

      Will anyone modify the mount?Mounts need to be mounted to increase their stats.

    3. 11

      Lock Picking Skill + Missions

    4. 4

      Quest Deleter

    5. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    6. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    7. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    8. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    9. 6

      Skill Book Combination System

  • Recently Browsing

×
×
  • 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.