Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-06-2008, 02:19 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I never use the Gui Editor. First because I like things styled my own way the first time. Second because when I create the controls I always set their positions and extents relative to something else rather than a specific point.

Example:
TheScrollCtrl.x = 6;
TheScrollCtrl.y = 24;
TheScrollCtrl.width = TheWindow.width * 0.35;
TheScrollCtrl.height = TheWindow.height - 24 - 6;
ThePanelCtrl.x = TheScrollCtrl.x + TheScrollCtrl.width + 6;
ThePanelCtrl.y = 24;
ThePanelCtrl.width = TheWindow.width - TheScrollCtrl.width - 6 - 6;
ThePanelCtrl.height = TheScrollCtrl.height;

Easier to do that and more complicated stuff without Gui Editor.
__________________
Reply With Quote
  #2  
Old 08-06-2008, 09:46 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Inverness View Post
I never use the Gui Editor. First because I like things styled my own way the first time. Second because when I create the controls I always set their positions and extents relative to something else rather than a specific point.

Example:
TheScrollCtrl.x = 6;
TheScrollCtrl.y = 24;
TheScrollCtrl.width = TheWindow.width * 0.35;
TheScrollCtrl.height = TheWindow.height - 24 - 6;
ThePanelCtrl.x = TheScrollCtrl.x + TheScrollCtrl.width + 6;
ThePanelCtrl.y = 24;
ThePanelCtrl.width = TheWindow.width - TheScrollCtrl.width - 6 - 6;
ThePanelCtrl.height = TheScrollCtrl.height;

Easier to do that and more complicated stuff without Gui Editor.
I agree, I can probably create GUIs faster without the GUI editor, actually.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.