.kju 3245 Posted March 22, 2013 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
sakura_chan 9 Posted March 23, 2013 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 Large interface Share this post Link to post Share on other sites
.kju 3245 Posted March 23, 2013 master85 showed me the solution doable with new tech :bounce3: sizeEx = "0.013 / (getResolution select 5)";//0.013 1 Share this post Link to post Share on other sites
sakura_chan 9 Posted March 23, 2013 Sweet! I had done that work pre-1.55 haha Share this post Link to post Share on other sites
gammadust 12 Posted March 27, 2013 Thank you for sharing this :) Share this post Link to post Share on other sites