Jump to content
×
×
  • Create New...

Party role icon position


Recommended Posts

  • Premium

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

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


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.