mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-23 19:38:05 +01:00
- New HTTP request node.
This commit is contained in:
parent
45096510fe
commit
af9901120c
12 changed files with 204 additions and 29 deletions
|
@ -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",},
|
||||
|
|
|
@ -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",},},
|
||||
|
|
|
@ -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"]);
|
||||
}
|
|
@ -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)) {
|
||||
|
|
12
scripts/node_http_request/node_counter.yy
Normal file
12
scripts/node_http_request/node_counter.yy
Normal file
|
@ -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",
|
||||
}
|
56
scripts/node_http_request/node_http_request.gml
Normal file
56
scripts/node_http_request/node_http_request.gml
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
13
scripts/node_http_request/node_http_request.yy
Normal file
13
scripts/node_http_request/node_http_request.yy
Normal file
|
@ -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",
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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++ ) {
|
||||
|
|
BIN
sprites/s_node_http/0db0bd25-1356-48c9-bcbe-5f5e141f3d5d.png
Normal file
BIN
sprites/s_node_http/0db0bd25-1356-48c9-bcbe-5f5e141f3d5d.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
90
sprites/s_node_http/s_node_http.yy
Normal file
90
sprites/s_node_http/s_node_http.yy
Normal file
|
@ -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<MessageEventKeyframe>":"",
|
||||
"Keyframes":[],
|
||||
"resourceType":"KeyframeStore<MessageEventKeyframe>",
|
||||
"resourceVersion":"2.0",
|
||||
},
|
||||
"eventStubScript":null,
|
||||
"eventToFunction":{},
|
||||
"length":1.0,
|
||||
"lockOrigin":false,
|
||||
"moments":{
|
||||
"$KeyframeStore<MomentsEventKeyframe>":"",
|
||||
"Keyframes":[],
|
||||
"resourceType":"KeyframeStore<MomentsEventKeyframe>",
|
||||
"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<SpriteFrameKeyframe>":"","Keyframes":[
|
||||
{"$Keyframe<SpriteFrameKeyframe>":"","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<SpriteFrameKeyframe>","resourceVersion":"2.0","Stretch":false,},
|
||||
],"resourceType":"KeyframeStore<SpriteFrameKeyframe>","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,
|
||||
}
|
Loading…
Reference in a new issue