Jump to content

Recommended Posts

I think title says it all.  Why this? Why not? ?‍♂️

.gif

Spoiler
## -- 1 -- ##
Search in class CostumeWindow(ui.ScriptWindow): 

	def Close(self):
		self.Hide()

Add after: 

	def GetBasePosition(self):
		x, y = self.wndInventory.GetGlobalPosition()
		return x - 147, y

	def AdjustPositionAndSize(self):
		bx, by = self.GetBasePosition()

		self.SetPosition(bx, by)
		self.SetSize(self.GetWidth(), self.GetHeight())

## -- 2 -- ##
Search in class InventoryWindow(ui.ScriptWindow): ## Probably you dont have "AdjustPositionAndSizeAE", so basically paste is right after "self.wndBelt.AdjustPositionAndSize()" ##

	def OnMoveWindow(self, x, y):
		if self.wndBelt:
			if localeInfo.IsARABIC():
				self.wndBelt.AdjustPositionAndSizeAE()
			else:
				self.wndBelt.AdjustPositionAndSize()

Add after:

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

 

 

  • Metin2 Dev 7
  • Good 2
  • Love 2
Link to comment
https://metin2.dev/topic/32218-costumewindow-sticked-to-inventorywindow/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.