From af9901120ccfd3000afad28bc58807fd42dc6e2b Mon Sep 17 00:00:00 2001 From: Tanasart Date: Fri, 19 Jul 2024 10:20:18 +0700 Subject: [PATCH] - New HTTP request node. --- PixelComposer.resource_order | 44 +++++---- PixelComposer.yyp | 2 + scripts/async_functions/async_functions.gml | 3 +- scripts/node_data/node_data.gml | 4 +- scripts/node_http_request/node_counter.yy | 12 +++ .../node_http_request/node_http_request.gml | 56 +++++++++++ .../node_http_request/node_http_request.yy | 13 +++ scripts/node_registry/node_registry.gml | 1 + scripts/vectorRangeBox/vectorRangeBox.gml | 8 +- .../0db0bd25-1356-48c9-bcbe-5f5e141f3d5d.png | Bin 0 -> 1723 bytes .../51a16257-accf-424e-a8e4-8517e3104ed3.png | Bin 0 -> 1723 bytes sprites/s_node_http/s_node_http.yy | 90 ++++++++++++++++++ 12 files changed, 204 insertions(+), 29 deletions(-) create mode 100644 scripts/node_http_request/node_counter.yy create mode 100644 scripts/node_http_request/node_http_request.gml create mode 100644 scripts/node_http_request/node_http_request.yy create mode 100644 sprites/s_node_http/0db0bd25-1356-48c9-bcbe-5f5e141f3d5d.png create mode 100644 sprites/s_node_http/layers/0db0bd25-1356-48c9-bcbe-5f5e141f3d5d/51a16257-accf-424e-a8e4-8517e3104ed3.png create mode 100644 sprites/s_node_http/s_node_http.yy diff --git a/PixelComposer.resource_order b/PixelComposer.resource_order index 5fe30acd3..41ed72eb4 100644 --- a/PixelComposer.resource_order +++ b/PixelComposer.resource_order @@ -80,8 +80,8 @@ {"name":"for","order":6,"path":"folders/nodes/data/iterate/for.yy",}, {"name":"lua","order":21,"path":"folders/nodes/data/lua.yy",}, {"name":"misc","order":22,"path":"folders/nodes/data/misc.yy",}, - {"name":"lovify","order":26,"path":"folders/nodes/data/misc/lovify.yy",}, - {"name":"tunnel","order":27,"path":"folders/nodes/data/misc/tunnel.yy",}, + {"name":"lovify","order":24,"path":"folders/nodes/data/misc/lovify.yy",}, + {"name":"tunnel","order":25,"path":"folders/nodes/data/misc/tunnel.yy",}, {"name":"MK_effects","order":23,"path":"folders/nodes/data/MK_effects.yy",}, {"name":"src","order":14,"path":"folders/nodes/data/MK_effects/src.yy",}, {"name":"PCX","order":24,"path":"folders/nodes/data/PCX.yy",}, @@ -361,7 +361,7 @@ {"name":"__node_3d_transform","order":8,"path":"scripts/__node_3d_transform/__node_3d_transform.yy",}, {"name":"__node_3d","order":8,"path":"scripts/__node_3d/__node_3d.yy",}, {"name":"__node_controller","order":15,"path":"scripts/__node_controller/__node_controller.yy",}, - {"name":"__node_custom","order":14,"path":"scripts/__node_custom/__node_custom.yy",}, + {"name":"__node_custom","order":12,"path":"scripts/__node_custom/__node_custom.yy",}, {"name":"__node_iterator_inline","order":1,"path":"scripts/__node_iterator_inline/__node_iterator_inline.yy",}, {"name":"__node_module","order":14,"path":"scripts/__node_module/__node_module.yy",}, {"name":"__node_process_template","order":1,"path":"scripts/__node_process_template/__node_process_template.yy",}, @@ -697,11 +697,11 @@ {"name":"node_alpha_grey","order":3,"path":"scripts/node_alpha_grey/node_alpha_grey.yy",}, {"name":"node_alpha_hash","order":11,"path":"scripts/node_alpha_hash/node_alpha_hash.yy",}, {"name":"node_anim_priority","order":2,"path":"scripts/node_anim_priority/node_anim_priority.yy",}, - {"name":"node_animation_control","order":11,"path":"scripts/node_animation_control/node_animation_control.yy",}, - {"name":"node_application_in","order":20,"path":"scripts/node_application_in/node_application_in.yy",}, - {"name":"node_application_out","order":19,"path":"scripts/node_application_out/node_application_out.yy",}, + {"name":"node_animation_control","order":9,"path":"scripts/node_animation_control/node_animation_control.yy",}, + {"name":"node_application_in","order":18,"path":"scripts/node_application_in/node_application_in.yy",}, + {"name":"node_application_out","order":17,"path":"scripts/node_application_out/node_application_out.yy",}, {"name":"node_area","order":14,"path":"scripts/node_area/node_area.yy",}, - {"name":"node_argument","order":24,"path":"scripts/node_argument/node_argument.yy",}, + {"name":"node_argument","order":22,"path":"scripts/node_argument/node_argument.yy",}, {"name":"node_armature_bind","order":1,"path":"scripts/node_armature_bind/node_armature_bind.yy",}, {"name":"node_armature_path","order":4,"path":"scripts/node_armature_path/node_armature_path.yy",}, {"name":"node_armature_pose","order":3,"path":"scripts/node_armature_pose/node_armature_pose.yy",}, @@ -756,9 +756,9 @@ {"name":"node_brush_linear","order":24,"path":"scripts/node_brush_linear/node_brush_linear.yy",}, {"name":"node_byte_file_read","order":21,"path":"scripts/node_byte_file_read/node_byte_file_read.yy",}, {"name":"node_byte_file_write","order":20,"path":"scripts/node_byte_file_write/node_byte_file_write.yy",}, - {"name":"node_cache_array","order":8,"path":"scripts/node_cache_array/node_cache_array.yy",}, - {"name":"node_cache_base","order":18,"path":"scripts/node_cache_base/node_cache_base.yy",}, - {"name":"node_cache","order":9,"path":"scripts/node_cache/node_cache.yy",}, + {"name":"node_cache_array","order":6,"path":"scripts/node_cache_array/node_cache_array.yy",}, + {"name":"node_cache_base","order":16,"path":"scripts/node_cache_base/node_cache_base.yy",}, + {"name":"node_cache","order":7,"path":"scripts/node_cache/node_cache.yy",}, {"name":"node_camera","order":3,"path":"scripts/node_camera/node_camera.yy",}, {"name":"node_canvas_group","order":10,"path":"scripts/node_canvas_group/node_canvas_group.yy",}, {"name":"node_caustic","order":1,"path":"scripts/node_caustic/node_caustic.yy",}, @@ -797,7 +797,7 @@ {"name":"node_display_image","order":4,"path":"scripts/node_display_image/node_display_image.yy",}, {"name":"node_display_text","order":3,"path":"scripts/node_display_text/node_display_text.yy",}, {"name":"node_dither","order":6,"path":"scripts/node_dither/node_dither.yy",}, - {"name":"node_dll","order":28,"path":"scripts/node_dll/node_dll.yy",}, + {"name":"node_dll","order":26,"path":"scripts/node_dll/node_dll.yy",}, {"name":"node_dust","order":3,"path":"scripts/node_dust/node_dust.yy",}, {"name":"node_dynasurf_in","order":4,"path":"scripts/node_dynasurf_in/node_dynasurf_in.yy",}, {"name":"node_dynasurf_out_height","order":3,"path":"scripts/node_dynasurf_out_height/node_dynasurf_out_height.yy",}, @@ -849,7 +849,7 @@ {"name":"node_gradient_replace_color","order":12,"path":"scripts/node_gradient_replace_color/node_gradient_replace_color.yy",}, {"name":"node_gradient_shift","order":10,"path":"scripts/node_gradient_shift/node_gradient_shift.yy",}, {"name":"node_grain","order":19,"path":"scripts/node_grain/node_grain.yy",}, - {"name":"node_graph_preview","order":22,"path":"scripts/node_graph_preview/node_graph_preview.yy",}, + {"name":"node_graph_preview","order":20,"path":"scripts/node_graph_preview/node_graph_preview.yy",}, {"name":"node_grey_alpha","order":4,"path":"scripts/node_grey_alpha/node_grey_alpha.yy",}, {"name":"node_greyscale","order":5,"path":"scripts/node_greyscale/node_greyscale.yy",}, {"name":"node_grid_hex","order":2,"path":"scripts/node_grid_hex/node_grid_hex.yy",}, @@ -862,9 +862,10 @@ {"name":"node_group_thumbnail","order":3,"path":"scripts/node_group_thumbnail/node_group_thumbnail.yy",}, {"name":"node_guide","order":10,"path":"scripts/node_guide/node_guide.yy",}, {"name":"node_herringbone_tile","order":7,"path":"scripts/node_herringbone_tile/node_herringbone_tile.yy",}, - {"name":"node_hlsl","order":13,"path":"scripts/node_hlsl/node_hlsl.yy",}, + {"name":"node_hlsl","order":11,"path":"scripts/node_hlsl/node_hlsl.yy",}, {"name":"node_honey_noise","order":20,"path":"scripts/node_honey_noise/node_honey_noise.yy",}, {"name":"node_hsv_channel","order":1,"path":"scripts/node_hsv_channel/node_hsv_channel.yy",}, + {"name":"node_http_request","order":27,"path":"scripts/node_http_request/node_http_request.yy",}, {"name":"node_image_animated","order":1,"path":"scripts/node_image_animated/node_image_animated.yy",}, {"name":"node_image_gif","order":2,"path":"scripts/node_image_gif/node_image_gif.yy",}, {"name":"node_image_grid","order":3,"path":"scripts/node_image_grid/node_image_grid.yy",}, @@ -926,7 +927,7 @@ {"name":"node_mk_sparkle","order":13,"path":"scripts/node_mk_sparkle/node_mk_sparkle.yy",}, {"name":"node_mk_tile","order":6,"path":"scripts/node_mk_tile/node_mk_tile.yy",}, {"name":"node_module_test","order":2,"path":"scripts/node_module_test/node_module_test.yy",}, - {"name":"node_monitor_capture","order":21,"path":"scripts/node_monitor_capture/node_monitor_capture.yy",}, + {"name":"node_monitor_capture","order":19,"path":"scripts/node_monitor_capture/node_monitor_capture.yy",}, {"name":"node_morph_surface","order":5,"path":"scripts/node_morph_surface/node_morph_surface.yy",}, {"name":"node_move_point","order":8,"path":"scripts/node_move_point/node_move_point.yy",}, {"name":"node_noise_aniso","order":1,"path":"scripts/node_noise_aniso/node_noise_aniso.yy",}, @@ -940,9 +941,9 @@ {"name":"node_normal_light","order":2,"path":"scripts/node_normal_light/node_normal_light.yy",}, {"name":"node_normal","order":1,"path":"scripts/node_normal/node_normal.yy",}, {"name":"node_normalize","order":17,"path":"scripts/node_normalize/node_normalize.yy",}, - {"name":"node_note","order":17,"path":"scripts/node_note/node_note.yy",}, + {"name":"node_note","order":15,"path":"scripts/node_note/node_note.yy",}, {"name":"node_offset","order":17,"path":"scripts/node_offset/node_offset.yy",}, - {"name":"node_onion_skin","order":12,"path":"scripts/node_onion_skin/node_onion_skin.yy",}, + {"name":"node_onion_skin","order":10,"path":"scripts/node_onion_skin/node_onion_skin.yy",}, {"name":"node_outline","order":11,"path":"scripts/node_outline/node_outline.yy",}, {"name":"node_override_channel","order":2,"path":"scripts/node_override_channel/node_override_channel.yy",}, {"name":"node_pack_sprites","order":4,"path":"scripts/node_pack_sprites/node_pack_sprites.yy",}, @@ -1022,9 +1023,9 @@ {"name":"node_plot_linear","order":5,"path":"scripts/node_plot_linear/node_plot_linear.yy",}, {"name":"node_polar","order":4,"path":"scripts/node_polar/node_polar.yy",}, {"name":"node_posterize","order":12,"path":"scripts/node_posterize/node_posterize.yy",}, - {"name":"node_print","order":10,"path":"scripts/node_print/node_print.yy",}, + {"name":"node_print","order":8,"path":"scripts/node_print/node_print.yy",}, {"name":"node_processor","order":7,"path":"scripts/node_processor/node_processor.yy",}, - {"name":"node_project_data","order":23,"path":"scripts/node_project_data/node_project_data.yy",}, + {"name":"node_project_data","order":21,"path":"scripts/node_project_data/node_project_data.yy",}, {"name":"node_pytagorean_tile","order":6,"path":"scripts/node_pytagorean_tile/node_pytagorean_tile.yy",}, {"name":"node_quasicrystal","order":9,"path":"scripts/node_quasicrystal/node_quasicrystal.yy",}, {"name":"node_random_shape","order":7,"path":"scripts/node_random_shape/node_random_shape.yy",}, @@ -1067,7 +1068,7 @@ {"name":"node_shape_polygon","order":6,"path":"scripts/node_shape_polygon/node_shape_polygon.yy",}, {"name":"node_shape","order":8,"path":"scripts/node_shape/node_shape.yy",}, {"name":"node_shard_noise","order":12,"path":"scripts/node_shard_noise/node_shard_noise.yy",}, - {"name":"node_shell","order":15,"path":"scripts/node_shell/node_shell.yy",}, + {"name":"node_shell","order":13,"path":"scripts/node_shell/node_shell.yy",}, {"name":"node_skew","order":11,"path":"scripts/node_skew/node_skew.yy",}, {"name":"node_smear","order":12,"path":"scripts/node_smear/node_smear.yy",}, {"name":"node_smoke_add_collider","order":6,"path":"scripts/node_smoke_add_collider/node_smoke_add_collider.yy",}, @@ -1117,7 +1118,7 @@ {"name":"node_surface_to_color","order":1,"path":"scripts/node_surface_to_color/node_surface_to_color.yy",}, {"name":"node_svg","order":6,"path":"scripts/node_svg/node_svg.yy",}, {"name":"node_switch","order":5,"path":"scripts/node_switch/node_switch.yy",}, - {"name":"node_terminal_trigger","order":25,"path":"scripts/node_terminal_trigger/node_terminal_trigger.yy",}, + {"name":"node_terminal_trigger","order":23,"path":"scripts/node_terminal_trigger/node_terminal_trigger.yy",}, {"name":"node_text_file_read","order":6,"path":"scripts/node_text_file_read/node_text_file_read.yy",}, {"name":"node_text_file_write","order":10,"path":"scripts/node_text_file_write/node_text_file_write.yy",}, {"name":"node_text","order":9,"path":"scripts/node_text/node_text.yy",}, @@ -1171,7 +1172,7 @@ {"name":"node_wav_file_write","order":16,"path":"scripts/node_wav_file_write/node_wav_file_write.yy",}, {"name":"node_wavelet_noise","order":13,"path":"scripts/node_wavelet_noise/node_wavelet_noise.yy",}, {"name":"node_websocket_sender","order":1,"path":"scripts/node_websocket_sender/node_websocket_sender.yy",}, - {"name":"node_widget_test","order":16,"path":"scripts/node_widget_test/node_widget_test.yy",}, + {"name":"node_widget_test","order":14,"path":"scripts/node_widget_test/node_widget_test.yy",}, {"name":"node_wrap_area","order":10,"path":"scripts/node_wrap_area/node_wrap_area.yy",}, {"name":"node_wrap_perspective","order":15,"path":"scripts/node_wrap_perspective/node_wrap_perspective.yy",}, {"name":"node_xml_file_read","order":24,"path":"scripts/node_xml_file_read/node_xml_file_read.yy",}, @@ -2129,6 +2130,7 @@ {"name":"s_node_honey","order":66,"path":"sprites/s_node_honey/s_node_honey.yy",}, {"name":"s_node_HSV_combine","order":28,"path":"sprites/s_node_HSV_combine/s_node_HSV_combine.yy",}, {"name":"s_node_HSV","order":27,"path":"sprites/s_node_HSV/s_node_HSV.yy",}, + {"name":"s_node_http","order":43,"path":"sprites/s_node_http/s_node_http.yy",}, {"name":"s_node_image_animation","order":2,"path":"sprites/s_node_image_animation/s_node_image_animation.yy",}, {"name":"s_node_image_copy","order":3,"path":"sprites/s_node_image_copy/s_node_image_copy.yy",}, {"name":"s_node_image_gif","order":4,"path":"sprites/s_node_image_gif/s_node_image_gif.yy",}, diff --git a/PixelComposer.yyp b/PixelComposer.yyp index 8660299b7..dfb92cdda 100644 --- a/PixelComposer.yyp +++ b/PixelComposer.yyp @@ -1251,6 +1251,7 @@ {"id":{"name":"node_hlsl","path":"scripts/node_hlsl/node_hlsl.yy",},}, {"id":{"name":"node_honey_noise","path":"scripts/node_honey_noise/node_honey_noise.yy",},}, {"id":{"name":"node_hsv_channel","path":"scripts/node_hsv_channel/node_hsv_channel.yy",},}, + {"id":{"name":"node_http_request","path":"scripts/node_http_request/node_http_request.yy",},}, {"id":{"name":"node_image_animated","path":"scripts/node_image_animated/node_image_animated.yy",},}, {"id":{"name":"node_image_gif","path":"scripts/node_image_gif/node_image_gif.yy",},}, {"id":{"name":"node_image_grid","path":"scripts/node_image_grid/node_image_grid.yy",},}, @@ -2676,6 +2677,7 @@ {"id":{"name":"s_node_honey","path":"sprites/s_node_honey/s_node_honey.yy",},}, {"id":{"name":"s_node_HSV_combine","path":"sprites/s_node_HSV_combine/s_node_HSV_combine.yy",},}, {"id":{"name":"s_node_HSV","path":"sprites/s_node_HSV/s_node_HSV.yy",},}, + {"id":{"name":"s_node_http","path":"sprites/s_node_http/s_node_http.yy",},}, {"id":{"name":"s_node_image_animation","path":"sprites/s_node_image_animation/s_node_image_animation.yy",},}, {"id":{"name":"s_node_image_copy","path":"sprites/s_node_image_copy/s_node_image_copy.yy",},}, {"id":{"name":"s_node_image_gif","path":"sprites/s_node_image_gif/s_node_image_gif.yy",},}, diff --git a/scripts/async_functions/async_functions.gml b/scripts/async_functions/async_functions.gml index 63e8e4736..be95f89d7 100644 --- a/scripts/async_functions/async_functions.gml +++ b/scripts/async_functions/async_functions.gml @@ -12,8 +12,7 @@ function asyncLoad(data) { var cal = global.asyncCalls[? data[? "id"]]; var callback = cal[0]; var parameters = cal[1]; - if(callback != noone) - callback(parameters, data); + if(callback != noone) callback(parameters, data); ds_map_delete(global.asyncCalls, data[? "id"]); } \ No newline at end of file diff --git a/scripts/node_data/node_data.gml b/scripts/node_data/node_data.gml index bf9f4bcac..127842985 100644 --- a/scripts/node_data/node_data.gml +++ b/scripts/node_data/node_data.gml @@ -896,11 +896,11 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor { return false; } - static triggerRender = function() { + static triggerRender = function(resetSelf = true) { LOG_BLOCK_START(); LOG_IF(global.FLAG.render == 1, $"Trigger render for {self}"); - resetRender(false); + if(resetSelf) resetRender(false); RENDER_PARTIAL if(is_instanceof(group, Node_Collection)) { diff --git a/scripts/node_http_request/node_counter.yy b/scripts/node_http_request/node_counter.yy new file mode 100644 index 000000000..10832a0b0 --- /dev/null +++ b/scripts/node_http_request/node_counter.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "variable", + "path": "folders/nodes/data/variable.yy", + }, + "resourceVersion": "1.0", + "name": "node_counter", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/scripts/node_http_request/node_http_request.gml b/scripts/node_http_request/node_http_request.gml new file mode 100644 index 000000000..eb5e88df4 --- /dev/null +++ b/scripts/node_http_request/node_http_request.gml @@ -0,0 +1,56 @@ +function Node_HTTP_request(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { + name = "HTTP"; + setDimension(96, 72); + + inputs[| 0] = nodeValue("Address", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, ""); + + inputs[| 1] = nodeValue("Type", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 0) + .setDisplay(VALUE_DISPLAY.enum_scroll, [ "Get", "Post" ]); + + inputs[| 2] = nodeValue("Content", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "") + + outputs[| 0] = nodeValue("Result", self, JUNCTION_CONNECT.output, VALUE_TYPE.text, ""); + + address_domain = ""; + + static update = function() { + var _addr = getInputData(0); + var _type = getInputData(1); + var _post = getInputData(2); + + inputs[| 2].setVisible(_type == 1, _type == 1); + + if(_addr == "") return; + + var _addrs = string_split(_addr, "/", true); + address_domain = array_safe_get(_addrs, 1, ""); + draw_set_font(f_p0); + address_domain = string_cut_line(address_domain, 128); + + switch(_type) { + case 0 : + asyncCall(http_get(_addr), function(param, data) /*=>*/ { + var res = data[? "result"]; + outputs[| 0].setValue(res); + triggerRender(false); + }); + break; + + case 1 : + asyncCall(http_post_string(_addr, _post), function(param, data) /*=>*/ { + var res = data[? "result"]; + outputs[| 0].setValue(res); + triggerRender(false); + }); + break; + } + } + + static onDrawNode = function(xx, yy, _mx, _my, _s, _hover, _focus) { + var addr = getInputData(0); + var bbox = drawGetBbox(xx, yy, _s); + + draw_set_text(f_sdf, fa_center, fa_center, COLORS._main_text); + draw_text_bbox(bbox, address_domain); + } +} \ No newline at end of file diff --git a/scripts/node_http_request/node_http_request.yy b/scripts/node_http_request/node_http_request.yy new file mode 100644 index 000000000..f0b9f2af4 --- /dev/null +++ b/scripts/node_http_request/node_http_request.yy @@ -0,0 +1,13 @@ +{ + "$GMScript":"", + "%Name":"node_http_request", + "isCompatibility":false, + "isDnD":false, + "name":"node_http_request", + "parent":{ + "name":"misc", + "path":"folders/nodes/data/misc.yy", + }, + "resourceType":"GMScript", + "resourceVersion":"2.0", +} \ No newline at end of file diff --git a/scripts/node_registry/node_registry.gml b/scripts/node_registry/node_registry.gml index e0e601eea..208505268 100644 --- a/scripts/node_registry/node_registry.gml +++ b/scripts/node_registry/node_registry.gml @@ -522,6 +522,7 @@ function __initNodes() { addNodeObject(input, "Websocket Sender", s_node_websocket_send, "Node_Websocket_Sender", [1, Node_Websocket_Sender],, "Create websocket server to send data to the network.").setVersion(1145); addNodeObject(input, "Spout Sender", s_node_spout, "Node_Spout_Send", [1, Node_Spout_Send],, "Send surface through Spout.").setVersion(11600); addNodeObject(input, "MIDI In", s_node_midi, "Node_MIDI_In", [1, Node_MIDI_In],, "Receive MIDI message.").setVersion(11630); + addNodeObject(input, "HTTP", s_node_http, "Node_HTTP_request", [1, Node_HTTP_request]).setVersion(11780); #endregion var transform = ds_list_create(); #region //transform diff --git a/scripts/vectorRangeBox/vectorRangeBox.gml b/scripts/vectorRangeBox/vectorRangeBox.gml index 7ad0d0ce2..cf23bee49 100644 --- a/scripts/vectorRangeBox/vectorRangeBox.gml +++ b/scripts/vectorRangeBox/vectorRangeBox.gml @@ -133,13 +133,13 @@ function vectorRangeBox(_size, _type, _onModify, _unit = noone) : widget() const } if(linked) { - draw_sprite_stretched_ext(THEME.ui_scrollbar, 0, _x + ww / 2 - ui(3), _y + _h / 2, ui(6), _h + ui(4), COLORS._main_accent, .2); - draw_sprite_stretched_ext(THEME.ui_scrollbar, 0, _x + ww + ww / 2 - ui(3), _y + _h / 2, ui(6), _h + ui(4), COLORS._main_accent, .2); + draw_sprite_stretched_ext(THEME.ui_scrollbar, 0, _x + ww / 2 - ui(2), _y + _h / 2, ui(4), _h + ui(4), COLORS._main_accent, .2); + draw_sprite_stretched_ext(THEME.ui_scrollbar, 0, _x + ww + ww / 2 - ui(2), _y + _h / 2, ui(4), _h + ui(4), COLORS._main_accent, .2); } if(!ranged) { - draw_sprite_stretched_ext(THEME.ui_scrollbar, 0, _x + ww / 2, _y + _h / 2 - ui(3), ww, ui(6), COLORS._main_accent, .2); - draw_sprite_stretched_ext(THEME.ui_scrollbar, 0, _x + ww / 2, _y + _h + ui(4) + _h / 2 - ui(3), ww, ui(6), COLORS._main_accent, .2); + draw_sprite_stretched_ext(THEME.ui_scrollbar, 0, _x + ww / 2, _y + _h / 2 - ui(2), ww, ui(4), COLORS._main_accent, .2); + draw_sprite_stretched_ext(THEME.ui_scrollbar, 0, _x + ww / 2, _y + _h + ui(4) + _h / 2 - ui(2), ww, ui(4), COLORS._main_accent, .2); } for( var j = 0; j < 2; j++ ) { diff --git a/sprites/s_node_http/0db0bd25-1356-48c9-bcbe-5f5e141f3d5d.png b/sprites/s_node_http/0db0bd25-1356-48c9-bcbe-5f5e141f3d5d.png new file mode 100644 index 0000000000000000000000000000000000000000..c6099ea8ec8ec7fac075ae6701a9b4074e026ad8 GIT binary patch literal 1723 zcmZ{kYc$&j6u|$2to6z~ik1YGP~Ea79&HHLdPU+9Q|7XCHR%x%YR@z2|rCIrqc8;pU1{lsh5^0DvOi z(auA{)BofFu%zA%kKs$8OLFvZ0e~w80KjAcfJo9}E(1V33IJ9v0Dwga0BBGves#B$ z48TE7I6L6;KT*|HUjP8IO?bOAMEaDVEa1AAms($HQm;XcGG0H#;FzI4p>DJqvR4JW z-^`JFuF(yPA}(Yb>v+^2{xaz1)pAFw(aM?Re%KLJ)|CVBkXvrjAF9LbLLW7%n_x#crF}1CtRh%Sf9iLgM=n_t$G7f(?hH|$#6#Er3CoimSKx0pz zZa&xgIcqT!=`Dt$PGsn4rFqYB6(~>4cHe;y#X>;b1D|B8Aj`7WX1hVrw|?-0&BvuB z*$U%fe5BF?mc4hedR&^n6`Qfc6_59|_(!Flx|^3YypUNQVB>OCsa{T$R*=)EK3QuM zyW4G!YznVAa5eJM1gMe{j|zl%$yNU=+}O*gb*g|e_YP^D>GJg<2XuFFHo_u zA>p@!7;vXF16t=?&Wyet;*s#P%gIiueT528isTqn?L-S}(2POgz8*61Tq-zJ1y#T# z@9?F%IDOT7Ppvv_m4>fXez_h*n03XnQ$K8^T&C9>9`_ql30XDB*BbzyGYdH?RW~kh zC&P>~wvPZQpluK?3;jEv2T!k6$MfJ@Mp#iKuPCC=-F0p#KcP^$1%gGG`Cyw&(}s&) z>HYB%0}gz4z16B?Dn^tZo%hN_Dy?JrhgWU_`pld^V#`N&M@58a^~SDIH+qbq- zzp?JCV4;U(1a7NGC(E|qs*K>9lT7+MAXI19ye8MNOlqWQLv;&nNi|NqEnB7b@blz|A>)yBALfs<6KfR@{ zXU@&6Q(cXG?blS^+$UI#Zq-- zyxySP#N;T=snuE2yv%TwYm_tdxkVvg*!Fd{@J8gT*_htnj|nY z1EzKMEE&XzXLg|}(*;Lu(bLr|cDQJec(1>VX^`9Lr5v3qFATKI&}ndBrsMOYp(Bo9 zvI}!~=Ml#pf2lDp<_!6;luxS{s^&XsZCUTc$Q^O5Bl*4pH~6x0vwT=V3uKvHjLkC1 z2JnxiAW{%jV$!w!)5sa)qJoo4Lc%QJ_kx%G~gButqkz zA$hQjd0uygXGvJh{Q8M?t`We@Y(t(=!QA99h4TxPVQP5g^VJkF1;o3 zGV9m9IC~r+rynC@8AOTq{ zSv@nl4KGN0%)VlzYALg=fm%>MR9h(*>cSxhD*X7$?whNTO9dCrS9#gLcWQsLG`4jE zcm4|oJd_YAU$F;WBPk04-lROnL{K!YV>U|Wcsn)|n?)t@@F*XLvbFNt^;@ecywOO^`k$#&S)TDjuYh?8oZLw~fn%$Leb3MgX3kr7tv25&w z;smtLZBO#c5j1;W8u=nE*n$)rECFDQGB!n`P9f3eM3jjI8f{@}{1pmifkJVz8GZi| vDADBbki`EN9*+E$BoU7NyMY!?367&(q)`9gdCy&}l{f(2-qo(j=0f`4pkob} literal 0 HcmV?d00001 diff --git a/sprites/s_node_http/layers/0db0bd25-1356-48c9-bcbe-5f5e141f3d5d/51a16257-accf-424e-a8e4-8517e3104ed3.png b/sprites/s_node_http/layers/0db0bd25-1356-48c9-bcbe-5f5e141f3d5d/51a16257-accf-424e-a8e4-8517e3104ed3.png new file mode 100644 index 0000000000000000000000000000000000000000..c6099ea8ec8ec7fac075ae6701a9b4074e026ad8 GIT binary patch literal 1723 zcmZ{kYc$&j6u|$2to6z~ik1YGP~Ea79&HHLdPU+9Q|7XCHR%x%YR@z2|rCIrqc8;pU1{lsh5^0DvOi z(auA{)BofFu%zA%kKs$8OLFvZ0e~w80KjAcfJo9}E(1V33IJ9v0Dwga0BBGves#B$ z48TE7I6L6;KT*|HUjP8IO?bOAMEaDVEa1AAms($HQm;XcGG0H#;FzI4p>DJqvR4JW z-^`JFuF(yPA}(Yb>v+^2{xaz1)pAFw(aM?Re%KLJ)|CVBkXvrjAF9LbLLW7%n_x#crF}1CtRh%Sf9iLgM=n_t$G7f(?hH|$#6#Er3CoimSKx0pz zZa&xgIcqT!=`Dt$PGsn4rFqYB6(~>4cHe;y#X>;b1D|B8Aj`7WX1hVrw|?-0&BvuB z*$U%fe5BF?mc4hedR&^n6`Qfc6_59|_(!Flx|^3YypUNQVB>OCsa{T$R*=)EK3QuM zyW4G!YznVAa5eJM1gMe{j|zl%$yNU=+}O*gb*g|e_YP^D>GJg<2XuFFHo_u zA>p@!7;vXF16t=?&Wyet;*s#P%gIiueT528isTqn?L-S}(2POgz8*61Tq-zJ1y#T# z@9?F%IDOT7Ppvv_m4>fXez_h*n03XnQ$K8^T&C9>9`_ql30XDB*BbzyGYdH?RW~kh zC&P>~wvPZQpluK?3;jEv2T!k6$MfJ@Mp#iKuPCC=-F0p#KcP^$1%gGG`Cyw&(}s&) z>HYB%0}gz4z16B?Dn^tZo%hN_Dy?JrhgWU_`pld^V#`N&M@58a^~SDIH+qbq- zzp?JCV4;U(1a7NGC(E|qs*K>9lT7+MAXI19ye8MNOlqWQLv;&nNi|NqEnB7b@blz|A>)yBALfs<6KfR@{ zXU@&6Q(cXG?blS^+$UI#Zq-- zyxySP#N;T=snuE2yv%TwYm_tdxkVvg*!Fd{@J8gT*_htnj|nY z1EzKMEE&XzXLg|}(*;Lu(bLr|cDQJec(1>VX^`9Lr5v3qFATKI&}ndBrsMOYp(Bo9 zvI}!~=Ml#pf2lDp<_!6;luxS{s^&XsZCUTc$Q^O5Bl*4pH~6x0vwT=V3uKvHjLkC1 z2JnxiAW{%jV$!w!)5sa)qJoo4Lc%QJ_kx%G~gButqkz zA$hQjd0uygXGvJh{Q8M?t`We@Y(t(=!QA99h4TxPVQP5g^VJkF1;o3 zGV9m9IC~r+rynC@8AOTq{ zSv@nl4KGN0%)VlzYALg=fm%>MR9h(*>cSxhD*X7$?whNTO9dCrS9#gLcWQsLG`4jE zcm4|oJd_YAU$F;WBPk04-lROnL{K!YV>U|Wcsn)|n?)t@@F*XLvbFNt^;@ecywOO^`k$#&S)TDjuYh?8oZLw~fn%$Leb3MgX3kr7tv25&w z;smtLZBO#c5j1;W8u=nE*n$)rECFDQGB!n`P9f3eM3jjI8f{@}{1pmifkJVz8GZi| vDADBbki`EN9*+E$BoU7NyMY!?367&(q)`9gdCy&}l{f(2-qo(j=0f`4pkob} literal 0 HcmV?d00001 diff --git a/sprites/s_node_http/s_node_http.yy b/sprites/s_node_http/s_node_http.yy new file mode 100644 index 000000000..b24f58cfb --- /dev/null +++ b/sprites/s_node_http/s_node_http.yy @@ -0,0 +1,90 @@ +{ + "$GMSprite":"", + "%Name":"s_node_http", + "bboxMode":0, + "bbox_bottom":61, + "bbox_left":5, + "bbox_right":59, + "bbox_top":3, + "collisionKind":1, + "collisionTolerance":0, + "DynamicTexturePage":false, + "edgeFiltering":false, + "For3D":false, + "frames":[ + {"$GMSpriteFrame":"","%Name":"0db0bd25-1356-48c9-bcbe-5f5e141f3d5d","name":"0db0bd25-1356-48c9-bcbe-5f5e141f3d5d","resourceType":"GMSpriteFrame","resourceVersion":"2.0",}, + ], + "gridX":0, + "gridY":0, + "height":64, + "HTile":false, + "layers":[ + {"$GMImageLayer":"","%Name":"51a16257-accf-424e-a8e4-8517e3104ed3","blendMode":0,"displayName":"default","isLocked":false,"name":"51a16257-accf-424e-a8e4-8517e3104ed3","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,}, + ], + "name":"s_node_http", + "nineSlice":null, + "origin":4, + "parent":{ + "name":"misc", + "path":"folders/nodes/icons/misc.yy", + }, + "preMultiplyAlpha":false, + "resourceType":"GMSprite", + "resourceVersion":"2.0", + "sequence":{ + "$GMSequence":"", + "%Name":"s_node_http", + "autoRecord":true, + "backdropHeight":768, + "backdropImageOpacity":0.5, + "backdropImagePath":"", + "backdropWidth":1366, + "backdropXOffset":0.0, + "backdropYOffset":0.0, + "events":{ + "$KeyframeStore":"", + "Keyframes":[], + "resourceType":"KeyframeStore", + "resourceVersion":"2.0", + }, + "eventStubScript":null, + "eventToFunction":{}, + "length":1.0, + "lockOrigin":false, + "moments":{ + "$KeyframeStore":"", + "Keyframes":[], + "resourceType":"KeyframeStore", + "resourceVersion":"2.0", + }, + "name":"s_node_http", + "playback":1, + "playbackSpeed":30.0, + "playbackSpeedType":0, + "resourceType":"GMSequence", + "resourceVersion":"2.0", + "showBackdrop":true, + "showBackdropImage":false, + "timeUnits":1, + "tracks":[ + {"$GMSpriteFramesTrack":"","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"$KeyframeStore":"","Keyframes":[ + {"$Keyframe":"","Channels":{ + "0":{"$SpriteFrameKeyframe":"","Id":{"name":"0db0bd25-1356-48c9-bcbe-5f5e141f3d5d","path":"sprites/s_node_http/s_node_http.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",}, + },"Disabled":false,"id":"e1992035-83f0-4c5c-9f91-6ebab4258531","IsCreationKey":false,"Key":0.0,"Length":1.0,"resourceType":"Keyframe","resourceVersion":"2.0","Stretch":false,}, + ],"resourceType":"KeyframeStore","resourceVersion":"2.0",},"modifiers":[],"name":"frames","resourceType":"GMSpriteFramesTrack","resourceVersion":"2.0","spriteId":null,"trackColour":0,"tracks":[],"traits":0,}, + ], + "visibleRange":null, + "volume":1.0, + "xorigin":32, + "yorigin":32, + }, + "swatchColours":null, + "swfPrecision":0.5, + "textureGroupId":{ + "name":"Default", + "path":"texturegroups/Default", + }, + "type":0, + "VTile":false, + "width":64, +} \ No newline at end of file