Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
UNN

Interface Size

Recommended Posts

How to compensate for Interface size i.e. "Normal","Small" and "Very Small" when displaying dialogs?

I'm happy with the offsets thanks to the screens aspect ratio, but I don't want the controls to be scaled down when a user chooses one of the smaller interface sizes in Video Options. Any ideas how to avoid this?

Cheers

Edited by UNN

Share this post


Link to post
Share on other sites

Hmm....

Define the control dimensions and properties, as percentages of SafeZoneW and SafeZoneH.

It's crazy, but it might just work.

Share this post


Link to post
Share on other sites

You are on the right way!

I use in mind the default 1 x 1 size.

But I write:

x = ((0.5 * SafeZoneW) - SafeZoneX)
y = ((0.5 * SafeZoneH) - SafeZoneY)
w = (0.5 * SafeZoneW)
h = (0.5 * SafeZoneH)

U can alter the "0.5" value to any value between 0 and 1, and the controls/dialog will resize all to a full screen dialog.

And yes, you can use this syntax in description.ext and config.cpp files.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×