![]() |
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:
NPC Code:GraalScript: Function Debug.testFunc not found in script of Weapon Public/xXziroXx/Debug |
I don't understand, why shouldn't it give an error?
|
Quote:
http://forums.graalonline.com/forums...ad.php?t=74042 |
I'm not sure, but function prototypes may not automatically be declared public and it looks like the way it's calling it is "Debug.function()" when you use "this." making it required to be public...
Although that's all speculation. |
Quote:
|
Quote:
|
Quote:
|
Interesting.
This does NOT work: PHP Code:
PHP Code:
This works... PHP Code:
This works... PHP Code:
:noob: |
Final bump for today! ^_^
|
Well, I know that function pointers (funcPointer = this.funcName; ) must be used with public functions.
Perhaps the Gui Control declaration is, in practice, equivalent to this: PHP Code:
|
| All times are GMT +2. The time now is 02:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.