As
an example, then, the barest minimum that you could enter into a script utilizing the nGui framework
might look like this:
import nGui.Manager;
class Basic
{
public static function main()
{
var bs = new Basic();
}
public function new()
{
var mng = new Manager();
mng.alarm( ???Welcome...???, ???Welcome to the nGui framework???, ???Okay??? );
mng.loop();
mng.close();
}
}
484
Part III: Extending the Possibilities
Now, you might think that this could be simplified further still, by removing the call to the alarm
method of the Manager class. However, the nGui loop only remains in existence as long as controls exist
in play. Therefore, if no control is called at all, then the loop will immediately exit.
Working with Static Controls
Static controls provide no interactive functionality, but exist to provide an aesthetic or informative role.
For example, the label control cannot be interacted with in any way, yet its value may be changed and
updated in real time, thus providing information to the user.
Pages:
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899