Quote:
Originally Posted by cbk1994
This would be an awesome addition, though I'd rather seeing it work something like
PHP Code:
new GuiControl(TestControl)
{
x = 40[percent]; // equivalent to screenwidth*.4
y = 50[percent]; // equivalent to screenheight*.5
width = 50[percent]; // half the width of the screen
height = 25[percent]; // 1/4th the height of the screen
}
This forum percent sign crap really needs to be fixed z.z
|
What's the problem with doing this?
PHP Code:
new GuiControl(TestControl)
{
x = screenwidth*.4;
y = screenheight/2;
width = screenwidth/2;
height = screenheight/4;
}
Seems like you're simply providing a different syntax for something that's already possible and not at all hard to do. Am I not understanding what's meant by 'scaling'?