Jump to content
×
×
  • Create New...

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 18
  • Love 16
  • Good 9

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

  • Developer
On 1/27/2021 at 10:51 AM, Hunger said:

How about slots? 

Sure, will update the topic one of these days, gotta find some free time.

Edited by Finnis

r

Link to comment
Share on other sites

  • Developer
12 hours ago, Speachless said:

How about to scale the whole game client ? would that be ever possible ?

What do you mean? All the windows or what?

r

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

  • Recently Browsing   0 members

    • No registered users viewing this page.


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.