Pixel-Composer/scripts/__node_template/__node_template.gml

26 lines
835 B
Text
Raw Normal View History

2023-10-18 14:58:55 +02:00
function Node_Template(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
name = "";
2024-08-18 06:16:20 +02:00
newInput(0, nodeValue_Surface("", self));
2023-10-18 14:58:55 +02:00
2024-09-04 03:57:11 +02:00
newOutput(0, nodeValue_Output("", self, VALUE_TYPE.surface, noone));
2023-10-18 14:58:55 +02:00
input_display_list = [ 0 ];
2024-03-14 14:35:19 +01:00
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {}
2023-10-18 14:58:55 +02:00
static step = function() {}
static update = function() {}
2025-02-04 05:39:46 +01:00
}
/*
#region
FN_NODE_CONTEXT_INVOKE {
addHotkey("", " > Set", KEY_GROUP.numeric, MOD_KEY.none, () => { PANEL_GRAPH_FOCUS_STR _n.inputs[1].setValue(toNumber(chr(keyboard_key))); });
addHotkey("", " > ", "", MOD_KEY.none, () => { PANEL_GRAPH_FOCUS_STR _n.inputs[1].setValue(); });
addHotkey("", " > Toggle", "", MOD_KEY.none, () => { PANEL_GRAPH_FOCUS_STR _n.inputs[1].setValue((_n.inputs[1].getValue() + 1) % 2); });
});
#endregion