2023-12-22 08:42:02 +01:00
|
|
|
globalvar APP_SURF, PRE_APP_SURF, POST_APP_SURF, APP_SURF_OVERRIDE;
|
|
|
|
APP_SURF = surface_create(1, 1);
|
|
|
|
PRE_APP_SURF = surface_create(1, 1);
|
|
|
|
POST_APP_SURF = surface_create(1, 1);
|
|
|
|
APP_SURF_OVERRIDE = false;
|
|
|
|
|
|
|
|
function Node_Application_Out(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|
|
|
name = "GUI Out";
|
|
|
|
update_on_frame = true;
|
|
|
|
|
2024-09-04 03:57:11 +02:00
|
|
|
newOutput(0, nodeValue_Output("GUI", self, VALUE_TYPE.surface, noone));
|
2023-12-22 08:42:02 +01:00
|
|
|
|
2023-12-25 12:51:12 +01:00
|
|
|
APP_SURF_OVERRIDE = true;
|
|
|
|
|
2024-09-23 13:27:31 +02:00
|
|
|
static step = function() {
|
2023-12-25 12:51:12 +01:00
|
|
|
LIVE_UPDATE = true;
|
2024-09-23 13:27:31 +02:00
|
|
|
}
|
2023-12-25 12:51:12 +01:00
|
|
|
|
2024-09-23 13:27:31 +02:00
|
|
|
static update = function() {
|
2024-08-08 06:57:51 +02:00
|
|
|
outputs[0].setValue(PRE_APP_SURF);
|
2024-09-23 13:27:31 +02:00
|
|
|
}
|
2023-12-22 08:42:02 +01:00
|
|
|
}
|