Jump to content

Enable Scaling for Buttons


Recommended Posts

  • VIP

M2 Download Center

Download Here  ( Internal )
Download Here  ( 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 1
  • Love 11
  • Good 2

r

Link to post
  • ASIKOO changed the title to Enable Scaling for Buttons
10 hours ago, Finnis said:

M2 Download Center

Download Here  ( Internal )
Download Here  ( 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 

  • Love 1
Link to post
  • VIP
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 post
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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

×
×
  • 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.