Jump to content

Button Background Problem


Ludwig

Recommended Posts

Hello Community have unfortunately on several systems where I get the window the problem.
Was there ever a release here in the forum for this problem unfortunately find nothing?
Maybe someone has the same problem and the bug already fixed?

Here are a few examples:

Problem

spacer.png

spacer.png

 

Would be grateful for any help ❤️

 

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

  • Honorable Member

First add this:

 

Example for class QuestionDialog(ui.ScriptWindow):

This is the hidden content, please

  • Metin2 Dev 8
  • Good 6
  • Love 4

I don't have any other account.

Stop asking github links and use metin2.download links.

Link to comment
Share on other sites

36 minutes ago, Mali said:

First add this:

 

Example for class QuestionDialog(ui.ScriptWindow):

Hidden Content

 

###@@@uicommon.py:

#Find in class QuestionDialog(ui.ScriptWindow):
	def SetText(self, text):
		self.textLine.SetText(text)

#Change
	def SetText(self, text):
		self.textLine.SetText(text)
		
		new_width = app.GetTextWidth(text) + 20
		if new_width > self.GetWidth():
			self.SetWidth(new_width)

 

 

You are my personal Hero 🦸‍♂️


Thank you very much❤️

  • Metin2 Dev 1
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


  • Similar Content

  • Activity

    1. 20

      Item ToolTip Width Fix

    2. 4

      Connection problem

    3. 1276

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 1276

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    5. 1276

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    6. 1

      Sanii Switchbot problem

    7. 4

      Connection problem

    8. 1

      Maintenance System (For P2P)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.