Jump to content

Costume window opening by inventory sidebar


Recommended Posts

  • 2 weeks later...
  • 5 weeks later...
  • 2 years later...
  • Bronze

Thanks to Galadriela @ J4m

What would it look like?

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

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()

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Love 1
  • Love 1

spacer.png

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.