Jump to content

how to fix windows mobs info pls help <3


Go to solution Solved by xUniverse,

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
hace 12 horas, blackcatq8 dijo:

I want to fix x and y for size just tell me pls where can i put it middle 

VF2GoSC.png

 

there Some buttons are subject to wrong side

I want to know how to fix it pls help me for learn more❤️

An idea, open uiTarget.py

1. To fix the position of the (?) button, check the function SetEnemyVID(self, vid):

	def SetEnemyVID(self, vid):

      	(...)

		if app.ENABLE_SEND_TARGET_INFO:
			(textWidth, textHeight) = self.name.GetTextSize()

			self.infoButton.SetPosition(textWidth + 25, 12) # HERE
			self.infoButton.SetWindowHorizontalAlignLeft() #

			self.vnum = vnum
			self.infoButton.Show()	

2. (not tested) To fix the align of the item names, go to the class InfoBoard(ui.ThinBoard), check the init of class ItemListBoxItem(ui.ListBoxExNew.Item) and add:

	if app.ENABLE_SEND_TARGET_INFO:
		class InfoBoard(ui.ThinBoard):
			class ItemListBoxItem(ui.ListBoxExNew.Item):
				def __init__(self, width):
					ui.ListBoxExNew.Item.__init__(self)

					image = ui.ExpandedImageBox()
					image.SetParent(self)
					image.Show()
					self.image = image

					nameLine = ui.TextLine()
					nameLine.SetParent(self)
					nameLine.SetPosition(32 + 5, 0)
					##
					nameLine.SetWindowHorizontalAlignRight() #add this line
					nameLine.SetHorizontalAlignRight() #add this line
					##
					nameLine.Show()
					self.nameLine = nameLine

					self.SetSize(width, 32 + 5)

##########

And:

hace 7 horas, T4UMP dijo:

wtf, dont use this fucking arabic lang

Is better to respect different cultures and languages :)

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

12 hours ago, xUniverse said:

An idea, open uiTarget.py

1. To fix the position of the (?) button, check the function SetEnemyVID(self, vid):


	def SetEnemyVID(self, vid):

      	(...)

		if app.ENABLE_SEND_TARGET_INFO:
			(textWidth, textHeight) = self.name.GetTextSize()

			self.infoButton.SetPosition(textWidth + 25, 12) # HERE
			self.infoButton.SetWindowHorizontalAlignLeft() #

			self.vnum = vnum
			self.infoButton.Show()	

2. (not tested) To fix the align of the item names, go to the class InfoBoard(ui.ThinBoard), check the init of class ItemListBoxItem(ui.ListBoxExNew.Item) and add:


	if app.ENABLE_SEND_TARGET_INFO:
		class InfoBoard(ui.ThinBoard):
			class ItemListBoxItem(ui.ListBoxExNew.Item):
				def __init__(self, width):
					ui.ListBoxExNew.Item.__init__(self)

					image = ui.ExpandedImageBox()
					image.SetParent(self)
					image.Show()
					self.image = image

					nameLine = ui.TextLine()
					nameLine.SetParent(self)
					nameLine.SetPosition(32 + 5, 0)
					##
					nameLine.SetWindowHorizontalAlignRight() #add this line
					nameLine.SetHorizontalAlignRight() #add this line
					##
					nameLine.Show()
					self.nameLine = nameLine

					self.SetSize(width, 32 + 5)

##########

And:

Is better to respect different cultures and languages :)

thanks dude this so good very nice thank you very much 

شكرا جزيلاُ يا صديقي

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.