Jump to content

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

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.