Is there a way to get the bounds of the front interface?
-
I would like to position some things based on the front interface size so I can resize from a template.
Is there a .get to do that? -
@VirtualVirgin Nope, but it has been requested a few times. Currently the best you can do is store your UI width and height in a constant.
-
@VirtualVirgin Yeah like Dave, I always start my interface script this way:
const var INTERFACE_WIDTH = 1000; const var INTERFACE_HEIGHT = 623; Content.makeFrontInterface(INTERFACE_WIDTH, INTERFACE_HEIGHT);
So this can be used everywhere
-
@ustk You know it would be easy to add this... should I add separate getWidth/getHeight functions, or just a getInterfaceSize function that returns both? I'm thinking the latter.
-
@d-healey The three
-
@ustk The API has a limit on how many functions can be added per class, so I think the one is the way to go :)
-
-
@d-healey yeah perfect again friend Dave
-
@ustk said in Is there a way to get the bounds of the front interface?:
@VirtualVirgin Yeah like Dave, I always start my interface script this way:
const var INTERFACE_WIDTH = 1000; const var INTERFACE_HEIGHT = 623; Content.makeFrontInterface(INTERFACE_WIDTH, INTERFACE_HEIGHT);
So this can be used everywhere
Thanks :) I just added this and it does what I needed.