-
-
Notifications
You must be signed in to change notification settings - Fork 5
Useful Things
Nenkai edited this page Jul 14, 2024
·
4 revisions
context.addTimeOut("myFunctionTimeout", (context) =>
{
// ...
}, context);
context.setTimeOut("myFunctionTimeout", 0.5); // Will be called in 0.5s
<module>.load("path_to_script"); // no .adc extension
main::sound.play(sfx_name); // i.e "cursor"
DialogUtil::openConfirmDialog(context, DialogUtil::..., message);
CursorUtil::setCursor(context, cursor_name);
// GT4/5
// Get the specified string at specified category & key
context.translate(category, key);
// Page & category are combined i.e MyRoot::MyCategory)
context.translate(page, category, mode);
manager.translate(category, key);
for (var it = <widget>.first; it != nil; it = it.next_widget)
{
// ...
}
<module>.setFocus(widget); // example: ROOT.setFocus(my_widget);
context.wait(seconds_float) // example: 0.5