Jump to content

Recommended Posts

  • Active Member

Heya,

when a party member is assigned a role, it's tiny icon will be displayed in the beginning instead of predefined position.

 

Inside party.py replace SetAffect function with the following:

	def SetAffect(self, affectSlotIndex, affectValue):

		if affectSlotIndex >= len(self.partyAffectImageList):
			return

		if affectValue > 0:
			self.partyAffectImageList[affectSlotIndex].Show()
		else:
			self.partyAffectImageList[affectSlotIndex].Hide()

		self.affectValueDict[affectSlotIndex] = affectValue
		
		self.__ArrangeAffectPosition()

 

Add this function to the class:

	def __ArrangeAffectPosition(self):
		x_pos = 22
		y_pos = 24
		affectIndex = 0
		for image in self.partyAffectImageList:
			if image.IsShow():
				image.SetPosition(x_pos + 14 * affectIndex, y_pos)
				affectIndex += 1

 

  • Metin2 Dev 2
  • Good 4
  • Love 1
  • Love 5
Link to comment
https://metin2.dev/topic/25879-party-role-icon-position/
Share on other sites

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.