Jump to content

CostumeWindow sticked to InventoryWindow


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 5
  • Good 2
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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.