Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-31-2009, 12:45 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Assigning functions to GUI objects

It would be nice if you could do things like this, without generating a "function not found" error.

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  new 
GuiWindowCtrl("Debug") {
    
this.testFunc = function () {
      echo(
"Sup?");
    };
    
    
this.testFunc();
  }

NPC Code:
GraalScript: Function Debug.testFunc not found in script of Weapon Public/xXziroXx/Debug

__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 01-31-2009 at 04:24 PM.. Reason: <3 Darlene for uncensoring stfu, testFunc is now possible! :D
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 01:44 PM.


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