Jump to content

Enable Scaling for Buttons


Recommended Posts

  • Developer

M2 Download Center

This is the hidden content, please
  ( Internal )
This is the hidden content, please
 
( Github )

Helloo!

Someone asked if there's a way to scale buttons and since Metin2 doesn't support this by default, I decided to make this small tutorial.

 

Spoiler

265138F-r-titlu.png

 

How to  use?

your_button.SetScale(scaleWidth, scaleHeight)

E.g:

self.costumeButton.SetScale(0.7, 0.7)

 

Sincerly,

Finnis.

 

  • Metin2 Dev 62
  • kekw 1
  • Eyes 1
  • Angry 1
  • Confused 1
  • Lmao 1
  • Good 15
  • Love 4
  • Love 32

r

Link to comment
Share on other sites

10 hours ago, Finnis said:

M2 Download Center

This is the hidden content, please
  ( Internal )
This is the hidden content, please
 
( Github )

Helloo!

Someone asked if there's a way to scale buttons and since Metin2 doesn't support this by default, I decided to make this small tutorial.

 

  Hide contents

265138F-r-titlu.png

 


How to  use?

your_button.SetScale(scaleWidth, scaleHeight)

E.g:

self.costumeButton.SetScale(0.7, 0.7)

 

Sincerly,

Finnis.

 

 

ma boy finnis 

  • Metin2 Dev 2
  • Love 4
Link to comment
Share on other sites

1 hour ago, Finnis said:

What do you mean? All the windows or what?

He means scaling all windows/buttons/slots.

If you tried playing metin2 with bigger resolutions, you will see that every HUD item remains the same position, it doesn't scale bigger with the resolution so for somebody playing with 4K for example the HUD will be very small and hard to see.

Link to comment
Share on other sites

  • 2 years later...

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.