Thread: GUI scaling
View Single Post
  #17  
Old 12-26-2009, 07:46 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by cbk1994 View Post
This would be an awesome addition, though I'd rather seeing it work something like

PHP Code:
new GuiControl(TestControl)
{
  
40[percent]; // equivalent to screenwidth*.4
  
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)
{
  
screenwidth*.4;
  
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'?
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote