2023-12-22 08:42:02 +01:00
|
|
|
function Node_Application_In(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|
|
|
name = "GUI In";
|
|
|
|
update_on_frame = true;
|
|
|
|
|
2024-08-18 06:16:20 +02:00
|
|
|
newInput(0, nodeValue_Surface("GUI", self));
|
2023-12-22 08:42:02 +01:00
|
|
|
|
2023-12-25 12:51:12 +01:00
|
|
|
APP_SURF_OVERRIDE = true;
|
|
|
|
|
2023-12-22 08:42:02 +01:00
|
|
|
static step = function() { #region
|
2023-12-25 12:51:12 +01:00
|
|
|
LIVE_UPDATE = true;
|
|
|
|
} #endregion
|
|
|
|
|
|
|
|
static update = function() { #region
|
2024-08-08 06:57:51 +02:00
|
|
|
var s = inputs[0].getValue();
|
2023-12-22 08:42:02 +01:00
|
|
|
|
|
|
|
if(!is_surface(s)) return;
|
|
|
|
|
|
|
|
surface_set_target(POST_APP_SURF);
|
|
|
|
BLEND_OVERRIDE
|
|
|
|
draw_surface_stretched(s, 0, 0, WIN_W, WIN_H);
|
|
|
|
BLEND_NORMAL
|
|
|
|
surface_reset_target();
|
|
|
|
} #endregion
|
|
|
|
}
|