Jump to content
Sign in to follow this  
.kju

Interface adjusted font size possible?

Recommended Posts

It is possible to do make font size (set by sizeEx) a text the same relative size no matter the interface size an user uses (from very small, over normal, to very large)?

Ref: http://community.bistudio.com/wiki/SafeZone

As far as I understand it, it should be doable with using safeZone variables as modifiers.

Using the definitions of the A3 button does not work (well) though.

size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
class HitZone
{
	left = 0;
	top = 0;
	right = 0;
	bottom = 0;
};
class ShortcutPos
{
	left = 0.0145;
	top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)) / 2";
	w = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2) * (3/4)";
	h = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
};
class TextPos
{
	left = "(((safezoneW / safezoneH) min 1.2) / 32) * 1.5";
	top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20)*2 - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)) / 2";
	right = 0.005;
	bottom = 0;
};

Ingame:

http://imgur.com/a/QDsMK#0

http://imgur.com/a/VqENJ#0

http://imgur.com/a/oM28q#0

---------- Post added at 01:28 PM ---------- Previous post was at 01:23 PM ----------

PS: The change in positioning, from top left moving to lower right for lower interface size, is also a problem.

Share this post


Link to post
Share on other sites

Yeah the variable interface size is a huge burden to anyone doing dialogs. The way I did it was to detect the interface size and then adjust the text using the scripted commands. I wouldn't recommend adjusting the size of the text box like that. If you are using safezones in the format that the ingame gui editor spits out, all you have to do is change the size of the text and it will remain in the correct position across all the various interface sizes. Also, the size change should be handled by plus and minus, not multiplication and division.

Very small interface size

verysmall.jpg

Large interface

large.jpg

Share this post


Link to post
Share on other sites

master85 showed me the solution doable with new tech :bounce3:

sizeEx = "0.013 / (getResolution select 5)";//0.013

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×