Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Announcements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rating: Thread Rating: 10 votes, 4.60 average. Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 04-13-2013, 05:03 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I still don't see why there's no 'with' statement in GS3. It helps clean up code and is very useful in GUI Building and other object work.

I.e. How I've used it in GS2:

PHP Code:
temp.window addWindow("Example");
with (temp.window) {
  
this.title "Example Window";
  
with (addButton(this"Button")) {

  }
  
with (addButton(this"Button2")) {

  }
}

function 
addWindow(obj_id) {
  
temp.window = new GuiWindowCtrl(obj_id);
  return 
temp.window;
}

function 
addButton(parentobj_id) {
  
temp.button = new GuiButtonCtrl(obj_id);
  
parent.addcontrol(temp.button);
  return 
temp.button;

Quote:
Originally Posted by devilsknite1 View Post
but I would really like to see thorough documentation on this if other languages like Lua will not be used.
Even if he implemented Lua that isn't going to change the fact he still needs to document how the language works with and manipulates the Graal engine. A lot of GS2's current function usage isn't going to change that much in GS3 by the looks of it.
__________________
Quote:
Reply With Quote
 


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 11:56 PM.


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