This commit is contained in:
MakhamDev 2022-11-03 17:44:49 +07:00
parent 03cdf81cc6
commit ac92032cb1
1521 changed files with 6536 additions and 4506 deletions

View file

@ -3,56 +3,66 @@
"resourceVersion": "1.6", "resourceVersion": "1.6",
"name": "Pixels Composer", "name": "Pixels Composer",
"resources": [ "resources": [
{"id":{"name":"s_node_corner","path":"sprites/s_node_corner/s_node_corner.yy",},"order":88,},
{"id":{"name":"panel_function","path":"scripts/panel_function/panel_function.yy",},"order":5,}, {"id":{"name":"panel_function","path":"scripts/panel_function/panel_function.yy",},"order":5,},
{"id":{"name":"node_time_remap","path":"scripts/node_time_remap/node_time_remap.yy",},"order":33,}, {"id":{"name":"node_time_remap","path":"scripts/node_time_remap/node_time_remap.yy",},"order":33,},
{"id":{"name":"sh_perlin","path":"shaders/sh_perlin/sh_perlin.yy",},"order":1,}, {"id":{"name":"sh_perlin","path":"shaders/sh_perlin/sh_perlin.yy",},"order":1,},
{"id":{"name":"s_node_alpha_cut","path":"sprites/s_node_alpha_cut/s_node_alpha_cut.yy",},"order":7,},
{"id":{"name":"s_node_particle","path":"sprites/s_node_particle/s_node_particle.yy",},"order":77,},
{"id":{"name":"s_ui_panel_active","path":"sprites/s_ui_panel_active/s_ui_panel_active.yy",},"order":0,}, {"id":{"name":"s_ui_panel_active","path":"sprites/s_ui_panel_active/s_ui_panel_active.yy",},"order":0,},
{"id":{"name":"sh_normal_light","path":"shaders/sh_normal_light/sh_normal_light.yy",},"order":0,}, {"id":{"name":"sh_normal_light","path":"shaders/sh_normal_light/sh_normal_light.yy",},"order":0,},
{"id":{"name":"s_node_active","path":"sprites/s_node_active/s_node_active.yy",},"order":0,}, {"id":{"name":"s_node_active","path":"sprites/s_node_active/s_node_active.yy",},"order":0,},
{"id":{"name":"sh_scale3x","path":"shaders/sh_scale3x/sh_scale3x.yy",},"order":34,}, {"id":{"name":"sh_scale3x","path":"shaders/sh_scale3x/sh_scale3x.yy",},"order":34,},
{"id":{"name":"surface_modify","path":"scripts/surface_modify/surface_modify.yy",},"order":2,}, {"id":{"name":"surface_modify","path":"scripts/surface_modify/surface_modify.yy",},"order":2,},
{"id":{"name":"s_node_normal","path":"sprites/s_node_normal/s_node_normal.yy",},"order":19,},
{"id":{"name":"buffer_surface","path":"scripts/buffer_surface/buffer_surface.yy",},"order":3,},
{"id":{"name":"sh_dither","path":"shaders/sh_dither/sh_dither.yy",},"order":33,}, {"id":{"name":"sh_dither","path":"shaders/sh_dither/sh_dither.yy",},"order":33,},
{"id":{"name":"panel_data","path":"scripts/panel_data/panel_data.yy",},"order":0,}, {"id":{"name":"panel_data","path":"scripts/panel_data/panel_data.yy",},"order":0,},
{"id":{"name":"node_3D_obj","path":"scripts/node_3D_obj/node_3D_obj.yy",},"order":8,}, {"id":{"name":"node_3D_obj","path":"scripts/node_3D_obj/node_3D_obj.yy",},"order":8,},
{"id":{"name":"o_dialog_menubox","path":"objects/o_dialog_menubox/o_dialog_menubox.yy",},"order":8,}, {"id":{"name":"o_dialog_menubox","path":"objects/o_dialog_menubox/o_dialog_menubox.yy",},"order":8,},
{"id":{"name":"s_arrow_16","path":"sprites/s_arrow_16/s_arrow_16.yy",},"order":3,}, {"id":{"name":"s_arrow_16","path":"sprites/s_arrow_16/s_arrow_16.yy",},"order":3,},
{"id":{"name":"s_node_blend","path":"sprites/s_node_blend/s_node_blend.yy",},"order":7,},
{"id":{"name":"libdlgmodule","path":"extensions/libdlgmodule/libdlgmodule.yy",},"order":2,}, {"id":{"name":"libdlgmodule","path":"extensions/libdlgmodule/libdlgmodule.yy",},"order":2,},
{"id":{"name":"node_line","path":"scripts/node_line/node_line.yy",},"order":11,}, {"id":{"name":"node_line","path":"scripts/node_line/node_line.yy",},"order":11,},
{"id":{"name":"s_node_frame","path":"sprites/s_node_frame/s_node_frame.yy",},"order":79,},
{"id":{"name":"s_cursor_path_add","path":"sprites/s_cursor_path_add/s_cursor_path_add.yy",},"order":0,}, {"id":{"name":"s_cursor_path_add","path":"sprites/s_cursor_path_add/s_cursor_path_add.yy",},"order":0,},
{"id":{"name":"s_noti_icon_log","path":"sprites/s_noti_icon_log/s_noti_icon_log.yy",},"order":7,},
{"id":{"name":"node_2d_light","path":"scripts/node_2d_light/node_2d_light.yy",},"order":40,}, {"id":{"name":"node_2d_light","path":"scripts/node_2d_light/node_2d_light.yy",},"order":40,},
{"id":{"name":"s_node_color","path":"sprites/s_node_color/s_node_color.yy",},"order":17,},
{"id":{"name":"s_minus_24","path":"sprites/s_minus_24/s_minus_24.yy",},"order":17,}, {"id":{"name":"s_minus_24","path":"sprites/s_minus_24/s_minus_24.yy",},"order":17,},
{"id":{"name":"s_node_color_out","path":"sprites/s_node_color_out/s_node_color_out.yy",},"order":28,}, {"id":{"name":"s_node_image_gif","path":"sprites/s_node_image_gif/s_node_image_gif.yy",},"order":69,},
{"id":{"name":"s_node_3d_obj","path":"sprites/s_node_3d_obj/s_node_3d_obj.yy",},"order":114,},
{"id":{"name":"s_node_scale","path":"sprites/s_node_scale/s_node_scale.yy",},"order":45,},
{"id":{"name":"node_dither","path":"scripts/node_dither/node_dither.yy",},"order":11,}, {"id":{"name":"node_dither","path":"scripts/node_dither/node_dither.yy",},"order":11,},
{"id":{"name":"s_animation_setting","path":"sprites/s_animation_setting/s_animation_setting.yy",},"order":40,}, {"id":{"name":"s_animation_setting","path":"sprites/s_animation_setting/s_animation_setting.yy",},"order":37,},
{"id":{"name":"sh_perlin_smear","path":"shaders/sh_perlin_smear/sh_perlin_smear.yy",},"order":7,}, {"id":{"name":"sh_perlin_smear","path":"shaders/sh_perlin_smear/sh_perlin_smear.yy",},"order":7,},
{"id":{"name":"s_node_level","path":"sprites/s_node_level/s_node_level.yy",},"order":63,},
{"id":{"name":"sh_corner","path":"shaders/sh_corner/sh_corner.yy",},"order":24,}, {"id":{"name":"sh_corner","path":"shaders/sh_corner/sh_corner.yy",},"order":24,},
{"id":{"name":"s_button_path_icon","path":"sprites/s_button_path_icon/s_button_path_icon.yy",},"order":4,}, {"id":{"name":"s_button_path_icon","path":"sprites/s_button_path_icon/s_button_path_icon.yy",},"order":4,},
{"id":{"name":"s_add_24","path":"sprites/s_add_24/s_add_24.yy",},"order":0,}, {"id":{"name":"s_add_24","path":"sprites/s_add_24/s_add_24.yy",},"order":0,},
{"id":{"name":"s_node_image_copy","path":"sprites/s_node_image_copy/s_node_image_copy.yy",},"order":53,},
{"id":{"name":"node_array","path":"scripts/node_array/node_array.yy",},"order":3,}, {"id":{"name":"node_array","path":"scripts/node_array/node_array.yy",},"order":3,},
{"id":{"name":"sh_colorize","path":"shaders/sh_colorize/sh_colorize.yy",},"order":5,}, {"id":{"name":"sh_colorize","path":"shaders/sh_colorize/sh_colorize.yy",},"order":5,},
{"id":{"name":"s_timeline_graph","path":"sprites/s_timeline_graph/s_timeline_graph.yy",},"order":1,}, {"id":{"name":"s_timeline_graph","path":"sprites/s_timeline_graph/s_timeline_graph.yy",},"order":43,},
{"id":{"name":"s_node_particle_effector","path":"sprites/s_node_particle_effector/s_node_particle_effector.yy",},"order":52,},
{"id":{"name":"perlin_noise","path":"scripts/perlin_noise/perlin_noise.yy",},"order":5,}, {"id":{"name":"perlin_noise","path":"scripts/perlin_noise/perlin_noise.yy",},"order":5,},
{"id":{"name":"node_functions","path":"scripts/node_functions/node_functions.yy",},"order":2,}, {"id":{"name":"node_functions","path":"scripts/node_functions/node_functions.yy",},"order":2,},
{"id":{"name":"s_inspector_area","path":"sprites/s_inspector_area/s_inspector_area.yy",},"order":7,}, {"id":{"name":"s_inspector_area","path":"sprites/s_inspector_area/s_inspector_area.yy",},"order":5,},
{"id":{"name":"s_node_color_remove","path":"sprites/s_node_color_remove/s_node_color_remove.yy",},"order":29,},
{"id":{"name":"s_node_scatter","path":"sprites/s_node_scatter/s_node_scatter.yy",},"order":88,},
{"id":{"name":"node_math","path":"scripts/node_math/node_math.yy",},"order":6,}, {"id":{"name":"node_math","path":"scripts/node_math/node_math.yy",},"order":6,},
{"id":{"name":"array_functions","path":"scripts/array_functions/array_functions.yy",},"order":2,}, {"id":{"name":"array_functions","path":"scripts/array_functions/array_functions.yy",},"order":2,},
{"id":{"name":"sh_blur_final","path":"shaders/sh_blur_final/sh_blur_final.yy",},"order":3,}, {"id":{"name":"sh_blur_final","path":"shaders/sh_blur_final/sh_blur_final.yy",},"order":3,},
{"id":{"name":"s_node_colorize","path":"sprites/s_node_colorize/s_node_colorize.yy",},"order":90,},
{"id":{"name":"panel_preview","path":"scripts/panel_preview/panel_preview.yy",},"order":3,}, {"id":{"name":"panel_preview","path":"scripts/panel_preview/panel_preview.yy",},"order":3,},
{"id":{"name":"s_node_sepearte_shape","path":"sprites/s_node_sepearte_shape/s_node_sepearte_shape.yy",},"order":42,},
{"id":{"name":"s_node_polar","path":"sprites/s_node_polar/s_node_polar.yy",},"order":49,},
{"id":{"name":"o_dialog_notifications","path":"objects/o_dialog_notifications/o_dialog_notifications.yy",},"order":28,},
{"id":{"name":"s_node_alpha_grey","path":"sprites/s_node_alpha_grey/s_node_alpha_grey.yy",},"order":110,},
{"id":{"name":"node_blend","path":"scripts/node_blend/node_blend.yy",},"order":13,}, {"id":{"name":"node_blend","path":"scripts/node_blend/node_blend.yy",},"order":13,},
{"id":{"name":"s_node_level","path":"sprites/s_node_level/s_node_level.yy",},"order":64,},
{"id":{"name":"s_refresh_16","path":"sprites/s_refresh_16/s_refresh_16.yy",},"order":19,}, {"id":{"name":"s_refresh_16","path":"sprites/s_refresh_16/s_refresh_16.yy",},"order":19,},
{"id":{"name":"s_node_bevel","path":"sprites/s_node_bevel/s_node_bevel.yy",},"order":13,},
{"id":{"name":"s_node_shadow","path":"sprites/s_node_shadow/s_node_shadow.yy",},"order":90,},
{"id":{"name":"node_scatter","path":"scripts/node_scatter/node_scatter.yy",},"order":4,}, {"id":{"name":"node_scatter","path":"scripts/node_scatter/node_scatter.yy",},"order":4,},
{"id":{"name":"s_prop_keyframe","path":"sprites/s_prop_keyframe/s_prop_keyframe.yy",},"order":4,}, {"id":{"name":"s_node_bloom","path":"sprites/s_node_bloom/s_node_bloom.yy",},"order":104,},
{"id":{"name":"s_prop_keyframe","path":"sprites/s_prop_keyframe/s_prop_keyframe.yy",},"order":2,},
{"id":{"name":"node_image","path":"scripts/node_image/node_image.yy",},"order":0,}, {"id":{"name":"node_image","path":"scripts/node_image/node_image.yy",},"order":0,},
{"id":{"name":"sh_cell_noise","path":"shaders/sh_cell_noise/sh_cell_noise.yy",},"order":0,}, {"id":{"name":"sh_cell_noise","path":"shaders/sh_cell_noise/sh_cell_noise.yy",},"order":0,},
{"id":{"name":"sh_blend_max","path":"shaders/sh_blend_max/sh_blend_max.yy",},"order":8,}, {"id":{"name":"sh_blend_max","path":"shaders/sh_blend_max/sh_blend_max.yy",},"order":8,},
{"id":{"name":"s_node_color_out","path":"sprites/s_node_color_out/s_node_color_out.yy",},"order":93,},
{"id":{"name":"_3D","path":"scripts/_3D/_3D.yy",},"order":6,}, {"id":{"name":"_3D","path":"scripts/_3D/_3D.yy",},"order":6,},
{"id":{"name":"s_timeline_keyframe_selecting","path":"sprites/s_timeline_keyframe_selecting/s_timeline_keyframe_selecting.yy",},"order":3,}, {"id":{"name":"s_timeline_keyframe_selecting","path":"sprites/s_timeline_keyframe_selecting/s_timeline_keyframe_selecting.yy",},"order":3,},
{"id":{"name":"s_button","path":"sprites/s_button/s_button.yy",},"order":0,}, {"id":{"name":"s_button","path":"sprites/s_button/s_button.yy",},"order":0,},
@ -63,47 +73,42 @@
{"id":{"name":"colToVec4","path":"scripts/colToVec4/colToVec4.yy",},"order":0,}, {"id":{"name":"colToVec4","path":"scripts/colToVec4/colToVec4.yy",},"order":0,},
{"id":{"name":"draw_surface_blend","path":"scripts/draw_surface_blend/draw_surface_blend.yy",},"order":1,}, {"id":{"name":"draw_surface_blend","path":"scripts/draw_surface_blend/draw_surface_blend.yy",},"order":1,},
{"id":{"name":"blurSurface","path":"scripts/blurSurface/blurSurface.yy",},"order":0,}, {"id":{"name":"blurSurface","path":"scripts/blurSurface/blurSurface.yy",},"order":0,},
{"id":{"name":"s_animate_node_go","path":"sprites/s_animate_node_go/s_animate_node_go.yy",},"order":26,}, {"id":{"name":"s_animate_node_go","path":"sprites/s_animate_node_go/s_animate_node_go.yy",},"order":24,},
{"id":{"name":"s_node_level_selector","path":"sprites/s_node_level_selector/s_node_level_selector.yy",},"order":64,},
{"id":{"name":"s_node_alpha_grey","path":"sprites/s_node_alpha_grey/s_node_alpha_grey.yy",},"order":8,},
{"id":{"name":"s_node_group","path":"sprites/s_node_group/s_node_group.yy",},"order":114,},
{"id":{"name":"s_node_processor","path":"sprites/s_node_processor/s_node_processor.yy",},"order":18,}, {"id":{"name":"s_node_processor","path":"sprites/s_node_processor/s_node_processor.yy",},"order":18,},
{"id":{"name":"s_canvas_tools_pencil","path":"sprites/s_canvas_tools_pencil/s_canvas_tools_pencil.yy",},"order":4,}, {"id":{"name":"s_canvas_tools_pencil","path":"sprites/s_canvas_tools_pencil/s_canvas_tools_pencil.yy",},"order":4,},
{"id":{"name":"s_add_32","path":"sprites/s_add_32/s_add_32.yy",},"order":1,}, {"id":{"name":"s_add_32","path":"sprites/s_add_32/s_add_32.yy",},"order":1,},
{"id":{"name":"s_node_color_from_rgb","path":"sprites/s_node_color_from_rgb/s_node_color_from_rgb.yy",},"order":27,},
{"id":{"name":"sh_cell_noise_edge","path":"shaders/sh_cell_noise_edge/sh_cell_noise_edge.yy",},"order":5,}, {"id":{"name":"sh_cell_noise_edge","path":"shaders/sh_cell_noise_edge/sh_cell_noise_edge.yy",},"order":5,},
{"id":{"name":"node_stripe","path":"scripts/node_stripe/node_stripe.yy",},"order":15,}, {"id":{"name":"node_stripe","path":"scripts/node_stripe/node_stripe.yy",},"order":15,},
{"id":{"name":"s_node_image_sequence_to_anim","path":"sprites/s_node_image_sequence_to_anim/s_node_image_sequence_to_anim.yy",},"order":58,}, {"id":{"name":"s_hamburger_16","path":"sprites/s_hamburger_16/s_hamburger_16.yy",},"order":8,},
{"id":{"name":"s_node_trail","path":"sprites/s_node_trail/s_node_trail.yy",},"order":100,},
{"id":{"name":"s_node_grey_alpha","path":"sprites/s_node_grey_alpha/s_node_grey_alpha.yy",},"order":49,},
{"id":{"name":"s_node_corner","path":"sprites/s_node_corner/s_node_corner.yy",},"order":34,},
{"id":{"name":"s_hamburger_16","path":"sprites/s_hamburger_16/s_hamburger_16.yy",},"order":12,},
{"id":{"name":"s_node_blur","path":"sprites/s_node_blur/s_node_blur.yy",},"order":15,},
{"id":{"name":"sh_texture_atlas","path":"shaders/sh_texture_atlas/sh_texture_atlas.yy",},"order":0,}, {"id":{"name":"sh_texture_atlas","path":"shaders/sh_texture_atlas/sh_texture_atlas.yy",},"order":0,},
{"id":{"name":"s_node_blur_directional","path":"sprites/s_node_blur_directional/s_node_blur_directional.yy",},"order":17,}, {"id":{"name":"s_node_displace","path":"sprites/s_node_displace/s_node_displace.yy",},"order":83,},
{"id":{"name":"s_node_number","path":"sprites/s_node_number/s_node_number.yy",},"order":73,},
{"id":{"name":"icon_24","path":"sprites/icon_24/icon_24.yy",},"order":0,}, {"id":{"name":"icon_24","path":"sprites/icon_24/icon_24.yy",},"order":0,},
{"id":{"name":"sh_polar","path":"shaders/sh_polar/sh_polar.yy",},"order":31,}, {"id":{"name":"sh_polar","path":"shaders/sh_polar/sh_polar.yy",},"order":31,},
{"id":{"name":"s_node_warp_mesh","path":"sprites/s_node_warp_mesh/s_node_warp_mesh.yy",},"order":22,},
{"id":{"name":"sh_pixel_cloud","path":"shaders/sh_pixel_cloud/sh_pixel_cloud.yy",},"order":13,}, {"id":{"name":"sh_pixel_cloud","path":"shaders/sh_pixel_cloud/sh_pixel_cloud.yy",},"order":13,},
{"id":{"name":"node_iterate","path":"scripts/node_iterate/node_iterate.yy",},"order":1,}, {"id":{"name":"node_iterate","path":"scripts/node_iterate/node_iterate.yy",},"order":1,},
{"id":{"name":"sh_de_stray","path":"shaders/sh_de_stray/sh_de_stray.yy",},"order":17,}, {"id":{"name":"sh_de_stray","path":"shaders/sh_de_stray/sh_de_stray.yy",},"order":17,},
{"id":{"name":"sh_chromatic_aberration","path":"shaders/sh_chromatic_aberration/sh_chromatic_aberration.yy",},"order":36,}, {"id":{"name":"sh_chromatic_aberration","path":"shaders/sh_chromatic_aberration/sh_chromatic_aberration.yy",},"order":36,},
{"id":{"name":"s_node_destray","path":"sprites/s_node_destray/s_node_destray.yy",},"order":39,},
{"id":{"name":"sh_cell_noise_round","path":"shaders/sh_cell_noise_round/sh_cell_noise_round.yy",},"order":9,}, {"id":{"name":"sh_cell_noise_round","path":"shaders/sh_cell_noise_round/sh_cell_noise_round.yy",},"order":9,},
{"id":{"name":"event_recorder","path":"scripts/event_recorder/event_recorder.yy",},"order":4,}, {"id":{"name":"event_recorder","path":"scripts/event_recorder/event_recorder.yy",},"order":4,},
{"id":{"name":"s_node_noise_cell","path":"sprites/s_node_noise_cell/s_node_noise_cell.yy",},"order":58,},
{"id":{"name":"node_colorize","path":"scripts/node_colorize/node_colorize.yy",},"order":9,}, {"id":{"name":"node_colorize","path":"scripts/node_colorize/node_colorize.yy",},"order":9,},
{"id":{"name":"s_node_color_adjust","path":"sprites/s_node_color_adjust/s_node_color_adjust.yy",},"order":97,},
{"id":{"name":"sh_channel_B","path":"shaders/sh_channel_B/sh_channel_B.yy",},"order":14,}, {"id":{"name":"sh_channel_B","path":"shaders/sh_channel_B/sh_channel_B.yy",},"order":14,},
{"id":{"name":"s_cursor_path_remove","path":"sprites/s_cursor_path_remove/s_cursor_path_remove.yy",},"order":3,}, {"id":{"name":"s_cursor_path_remove","path":"sprites/s_cursor_path_remove/s_cursor_path_remove.yy",},"order":3,},
{"id":{"name":"s_menu_button","path":"sprites/s_menu_button/s_menu_button.yy",},"order":4,}, {"id":{"name":"s_node_2d_light","path":"sprites/s_node_2d_light/s_node_2d_light.yy",},"order":117,},
{"id":{"name":"s_node_trail","path":"sprites/s_node_trail/s_node_trail.yy",},"order":31,},
{"id":{"name":"s_menu_button_mask","path":"sprites/s_menu_button_mask/s_menu_button_mask.yy",},"order":4,},
{"id":{"name":"icon_32","path":"sprites/icon_32/icon_32.yy",},"order":1,}, {"id":{"name":"icon_32","path":"sprites/icon_32/icon_32.yy",},"order":1,},
{"id":{"name":"sh_level_selector","path":"shaders/sh_level_selector/sh_level_selector.yy",},"order":28,}, {"id":{"name":"sh_level_selector","path":"shaders/sh_level_selector/sh_level_selector.yy",},"order":28,},
{"id":{"name":"string_eval","path":"scripts/string_eval/string_eval.yy",},"order":0,}, {"id":{"name":"string_eval","path":"scripts/string_eval/string_eval.yy",},"order":0,},
{"id":{"name":"globals","path":"scripts/globals/globals.yy",},"order":1,}, {"id":{"name":"globals","path":"scripts/globals/globals.yy",},"order":1,},
{"id":{"name":"s_node_time_map","path":"sprites/s_node_time_map/s_node_time_map.yy",},"order":98,}, {"id":{"name":"s_node_noise_perlin","path":"sprites/s_node_noise_perlin/s_node_noise_perlin.yy",},"order":57,},
{"id":{"name":"s_text_bullet","path":"sprites/s_text_bullet/s_text_bullet.yy",},"order":22,}, {"id":{"name":"s_text_bullet","path":"sprites/s_text_bullet/s_text_bullet.yy",},"order":22,},
{"id":{"name":"s_canvas_tools_ellip","path":"sprites/s_canvas_tools_ellip/s_canvas_tools_ellip.yy",},"order":1,}, {"id":{"name":"s_canvas_tools_ellip","path":"sprites/s_canvas_tools_ellip/s_canvas_tools_ellip.yy",},"order":1,},
{"id":{"name":"s_animate_clock","path":"sprites/s_animate_clock/s_animate_clock.yy",},"order":2,}, {"id":{"name":"s_animate_clock","path":"sprites/s_animate_clock/s_animate_clock.yy",},"order":2,},
{"id":{"name":"s_view_mode","path":"sprites/s_view_mode/s_view_mode.yy",},"order":42,}, {"id":{"name":"s_view_mode","path":"sprites/s_view_mode/s_view_mode.yy",},"order":39,},
{"id":{"name":"s_node_dithering","path":"sprites/s_node_dithering/s_node_dithering.yy",},"order":82,},
{"id":{"name":"node_normal_light","path":"scripts/node_normal_light/node_normal_light.yy",},"order":0,}, {"id":{"name":"node_normal_light","path":"scripts/node_normal_light/node_normal_light.yy",},"order":0,},
{"id":{"name":"s_cache","path":"sprites/s_cache/s_cache.yy",},"order":5,}, {"id":{"name":"s_cache","path":"sprites/s_cache/s_cache.yy",},"order":5,},
{"id":{"name":"o_dialog_release_note","path":"objects/o_dialog_release_note/o_dialog_release_note.yy",},"order":16,}, {"id":{"name":"o_dialog_release_note","path":"objects/o_dialog_release_note/o_dialog_release_note.yy",},"order":16,},
@ -111,73 +116,75 @@
{"id":{"name":"panel_inspector","path":"scripts/panel_inspector/panel_inspector.yy",},"order":0,}, {"id":{"name":"panel_inspector","path":"scripts/panel_inspector/panel_inspector.yy",},"order":0,},
{"id":{"name":"s_node_junctions_single","path":"sprites/s_node_junctions_single/s_node_junctions_single.yy",},"order":0,}, {"id":{"name":"s_node_junctions_single","path":"sprites/s_node_junctions_single/s_node_junctions_single.yy",},"order":0,},
{"id":{"name":"node_padding","path":"scripts/node_padding/node_padding.yy",},"order":10,}, {"id":{"name":"node_padding","path":"scripts/node_padding/node_padding.yy",},"order":10,},
{"id":{"name":"s_node_pixel_cloud","path":"sprites/s_node_pixel_cloud/s_node_pixel_cloud.yy",},"order":50,},
{"id":{"name":"node_noise_grid","path":"scripts/node_noise_grid/node_noise_grid.yy",},"order":12,}, {"id":{"name":"node_noise_grid","path":"scripts/node_noise_grid/node_noise_grid.yy",},"order":12,},
{"id":{"name":"s_node_noise_cell","path":"sprites/s_node_noise_cell/s_node_noise_cell.yy",},"order":69,}, {"id":{"name":"s_node_compose","path":"sprites/s_node_compose/s_node_compose.yy",},"order":89,},
{"id":{"name":"s_node_crop","path":"sprites/s_node_crop/s_node_crop.yy",},"order":86,},
{"id":{"name":"s_menu_black","path":"sprites/s_menu_black/s_menu_black.yy",},"order":2,}, {"id":{"name":"s_menu_black","path":"sprites/s_menu_black/s_menu_black.yy",},"order":2,},
{"id":{"name":"sh_blend_multiply","path":"shaders/sh_blend_multiply/sh_blend_multiply.yy",},"order":0,}, {"id":{"name":"sh_blend_multiply","path":"shaders/sh_blend_multiply/sh_blend_multiply.yy",},"order":0,},
{"id":{"name":"node_bevel","path":"scripts/node_bevel/node_bevel.yy",},"order":3,}, {"id":{"name":"node_bevel","path":"scripts/node_bevel/node_bevel.yy",},"order":3,},
{"id":{"name":"s_node_stack","path":"sprites/s_node_stack/s_node_stack.yy",},"order":94,},
{"id":{"name":"s_anchor","path":"sprites/s_anchor/s_anchor.yy",},"order":0,}, {"id":{"name":"s_anchor","path":"sprites/s_anchor/s_anchor.yy",},"order":0,},
{"id":{"name":"s_node_normal","path":"sprites/s_node_normal/s_node_normal.yy",},"order":71,},
{"id":{"name":"s_color_picker_sample","path":"sprites/s_color_picker_sample/s_color_picker_sample.yy",},"order":4,}, {"id":{"name":"s_color_picker_sample","path":"sprites/s_color_picker_sample/s_color_picker_sample.yy",},"order":4,},
{"id":{"name":"rotatorRange","path":"scripts/rotatorRange/rotatorRange.yy",},"order":12,}, {"id":{"name":"rotatorRange","path":"scripts/rotatorRange/rotatorRange.yy",},"order":12,},
{"id":{"name":"s_node_output","path":"sprites/s_node_output/s_node_output.yy",},"order":74,},
{"id":{"name":"font_loader","path":"scripts/font_loader/font_loader.yy",},"order":8,}, {"id":{"name":"font_loader","path":"scripts/font_loader/font_loader.yy",},"order":8,},
{"id":{"name":"point_rotate","path":"scripts/point_rotate/point_rotate.yy",},"order":1,}, {"id":{"name":"point_rotate","path":"scripts/point_rotate/point_rotate.yy",},"order":1,},
{"id":{"name":"node_displacement","path":"scripts/node_displacement/node_displacement.yy",},"order":8,}, {"id":{"name":"node_displacement","path":"scripts/node_displacement/node_displacement.yy",},"order":8,},
{"id":{"name":"s_node_vec4","path":"sprites/s_node_vec4/s_node_vec4.yy",},"order":24,},
{"id":{"name":"s_workspace_0","path":"sprites/s_workspace_0/s_workspace_0.yy",},"order":0,}, {"id":{"name":"s_workspace_0","path":"sprites/s_workspace_0/s_workspace_0.yy",},"order":0,},
{"id":{"name":"buttonGroup","path":"scripts/buttonGroup/buttonGroup.yy",},"order":5,}, {"id":{"name":"buttonGroup","path":"scripts/buttonGroup/buttonGroup.yy",},"order":5,},
{"id":{"name":"s_node_image_sheet","path":"sprites/s_node_image_sheet/s_node_image_sheet.yy",},"order":67,},
{"id":{"name":"s_anchor_selector","path":"sprites/s_anchor_selector/s_anchor_selector.yy",},"order":3,}, {"id":{"name":"s_anchor_selector","path":"sprites/s_anchor_selector/s_anchor_selector.yy",},"order":3,},
{"id":{"name":"o_dialog_scrollbox","path":"objects/o_dialog_scrollbox/o_dialog_scrollbox.yy",},"order":7,}, {"id":{"name":"o_dialog_scrollbox","path":"objects/o_dialog_scrollbox/o_dialog_scrollbox.yy",},"order":7,},
{"id":{"name":"s_junc_visible","path":"sprites/s_junc_visible/s_junc_visible.yy",},"order":36,}, {"id":{"name":"s_node_palette","path":"sprites/s_node_palette/s_node_palette.yy",},"order":54,},
{"id":{"name":"s_junc_visible","path":"sprites/s_junc_visible/s_junc_visible.yy",},"order":33,},
{"id":{"name":"curve_damping_function","path":"scripts/curve_damping_function/curve_damping_function.yy",},"order":2,}, {"id":{"name":"curve_damping_function","path":"scripts/curve_damping_function/curve_damping_function.yy",},"order":2,},
{"id":{"name":"sh_blur_box_contrast","path":"shaders/sh_blur_box_contrast/sh_blur_box_contrast.yy",},"order":25,}, {"id":{"name":"sh_blur_box_contrast","path":"shaders/sh_blur_box_contrast/sh_blur_box_contrast.yy",},"order":25,},
{"id":{"name":"node_color_from_rgb","path":"scripts/node_color_from_rgb/node_color_from_rgb.yy",},"order":5,}, {"id":{"name":"node_color_from_rgb","path":"scripts/node_color_from_rgb/node_color_from_rgb.yy",},"order":5,},
{"id":{"name":"node_transform","path":"scripts/node_transform/node_transform.yy",},"order":0,}, {"id":{"name":"node_transform","path":"scripts/node_transform/node_transform.yy",},"order":0,},
{"id":{"name":"curveBox","path":"scripts/curveBox/curveBox.yy",},"order":8,}, {"id":{"name":"curveBox","path":"scripts/curveBox/curveBox.yy",},"order":8,},
{"id":{"name":"s_node_chromatic_abarration","path":"sprites/s_node_chromatic_abarration/s_node_chromatic_abarration.yy",},"order":1,},
{"id":{"name":"node_blur_directional","path":"scripts/node_blur_directional/node_blur_directional.yy",},"order":26,}, {"id":{"name":"node_blur_directional","path":"scripts/node_blur_directional/node_blur_directional.yy",},"order":26,},
{"id":{"name":"s_hamburger","path":"sprites/s_hamburger/s_hamburger.yy",},"order":13,}, {"id":{"name":"s_hamburger","path":"sprites/s_hamburger/s_hamburger.yy",},"order":13,},
{"id":{"name":"s_canvas_tools_eraser","path":"sprites/s_canvas_tools_eraser/s_canvas_tools_eraser.yy",},"order":3,}, {"id":{"name":"s_canvas_tools_eraser","path":"sprites/s_canvas_tools_eraser/s_canvas_tools_eraser.yy",},"order":3,},
{"id":{"name":"s_node_group","path":"sprites/s_node_group/s_node_group.yy",},"order":5,},
{"id":{"name":"o_dialog_splash","path":"objects/o_dialog_splash/o_dialog_splash.yy",},"order":19,}, {"id":{"name":"o_dialog_splash","path":"objects/o_dialog_splash/o_dialog_splash.yy",},"order":19,},
{"id":{"name":"s_node_pin_bg_active_s","path":"sprites/s_node_pin_bg_active_s/s_node_pin_bg_active_s.yy",},"order":2,}, {"id":{"name":"s_node_pin_bg_active_s","path":"sprites/s_node_pin_bg_active_s/s_node_pin_bg_active_s.yy",},"order":2,},
{"id":{"name":"s_dialog_bg","path":"sprites/s_dialog_bg/s_dialog_bg.yy",},"order":1,}, {"id":{"name":"s_dialog_bg","path":"sprites/s_dialog_bg/s_dialog_bg.yy",},"order":1,},
{"id":{"name":"s_delete_16","path":"sprites/s_delete_16/s_delete_16.yy",},"order":13,}, {"id":{"name":"s_delete_16","path":"sprites/s_delete_16/s_delete_16.yy",},"order":9,},
{"id":{"name":"node_gradient","path":"scripts/node_gradient/node_gradient.yy",},"order":1,}, {"id":{"name":"node_gradient","path":"scripts/node_gradient/node_gradient.yy",},"order":1,},
{"id":{"name":"s_node_junctions_single_hover","path":"sprites/s_node_junctions_single_hover/s_node_junctions_single_hover.yy",},"order":3,}, {"id":{"name":"s_node_junctions_single_hover","path":"sprites/s_node_junctions_single_hover/s_node_junctions_single_hover.yy",},"order":3,},
{"id":{"name":"s_node_stripe","path":"sprites/s_node_stripe/s_node_stripe.yy",},"order":95,},
{"id":{"name":"textBox","path":"scripts/textBox/textBox.yy",},"order":17,}, {"id":{"name":"textBox","path":"scripts/textBox/textBox.yy",},"order":17,},
{"id":{"name":"node_statistic","path":"scripts/node_statistic/node_statistic.yy",},"order":15,}, {"id":{"name":"node_statistic","path":"scripts/node_statistic/node_statistic.yy",},"order":15,},
{"id":{"name":"sh_draw_surface_part_tiled","path":"shaders/sh_draw_surface_part_tiled/sh_draw_surface_part_tiled.yy",},"order":32,}, {"id":{"name":"sh_draw_surface_part_tiled","path":"shaders/sh_draw_surface_part_tiled/sh_draw_surface_part_tiled.yy",},"order":32,},
{"id":{"name":"o_dialog_add_node","path":"objects/o_dialog_add_node/o_dialog_add_node.yy",},"order":1,}, {"id":{"name":"o_dialog_add_node","path":"objects/o_dialog_add_node/o_dialog_add_node.yy",},"order":1,},
{"id":{"name":"s_node_curve","path":"sprites/s_node_curve/s_node_curve.yy",},"order":85,},
{"id":{"name":"sh_blend_normal","path":"shaders/sh_blend_normal/sh_blend_normal.yy",},"order":1,}, {"id":{"name":"sh_blend_normal","path":"shaders/sh_blend_normal/sh_blend_normal.yy",},"order":1,},
{"id":{"name":"sh_blur_directional","path":"shaders/sh_blur_directional/sh_blur_directional.yy",},"order":16,}, {"id":{"name":"sh_blur_directional","path":"shaders/sh_blur_directional/sh_blur_directional.yy",},"order":16,},
{"id":{"name":"node_processor","path":"scripts/node_processor/node_processor.yy",},"order":1,}, {"id":{"name":"node_processor","path":"scripts/node_processor/node_processor.yy",},"order":1,},
{"id":{"name":"s_node_shadow","path":"sprites/s_node_shadow/s_node_shadow.yy",},"order":41,},
{"id":{"name":"sh_zigzag","path":"shaders/sh_zigzag/sh_zigzag.yy",},"order":11,}, {"id":{"name":"sh_zigzag","path":"shaders/sh_zigzag/sh_zigzag.yy",},"order":11,},
{"id":{"name":"sh_color_remove","path":"shaders/sh_color_remove/sh_color_remove.yy",},"order":27,}, {"id":{"name":"sh_color_remove","path":"shaders/sh_color_remove/sh_color_remove.yy",},"order":27,},
{"id":{"name":"s_node_blur","path":"sprites/s_node_blur/s_node_blur.yy",},"order":103,},
{"id":{"name":"textArea","path":"scripts/textArea/textArea.yy",},"order":20,}, {"id":{"name":"textArea","path":"scripts/textArea/textArea.yy",},"order":20,},
{"id":{"name":"s_node_gradient_out","path":"sprites/s_node_gradient_out/s_node_gradient_out.yy",},"order":76,},
{"id":{"name":"s_node_vec3","path":"sprites/s_node_vec3/s_node_vec3.yy",},"order":25,},
{"id":{"name":"surface_valid","path":"scripts/surface_valid/surface_valid.yy",},"order":3,}, {"id":{"name":"surface_valid","path":"scripts/surface_valid/surface_valid.yy",},"order":3,},
{"id":{"name":"s_button_hide_fill","path":"sprites/s_button_hide_fill/s_button_hide_fill.yy",},"order":15,}, {"id":{"name":"s_button_hide_fill","path":"sprites/s_button_hide_fill/s_button_hide_fill.yy",},"order":15,},
{"id":{"name":"sh_blur_radial","path":"shaders/sh_blur_radial/sh_blur_radial.yy",},"order":18,}, {"id":{"name":"sh_blur_radial","path":"shaders/sh_blur_radial/sh_blur_radial.yy",},"order":18,},
{"id":{"name":"s_node_invert","path":"sprites/s_node_invert/s_node_invert.yy",},"order":65,},
{"id":{"name":"node_array_get","path":"scripts/node_array_get/node_array_get.yy",},"order":14,}, {"id":{"name":"node_array_get","path":"scripts/node_array_get/node_array_get.yy",},"order":14,},
{"id":{"name":"sh_grid","path":"shaders/sh_grid/sh_grid.yy",},"order":14,}, {"id":{"name":"sh_grid","path":"shaders/sh_grid/sh_grid.yy",},"order":14,},
{"id":{"name":"s_button_hide","path":"sprites/s_button_hide/s_button_hide.yy",},"order":10,}, {"id":{"name":"s_button_hide","path":"sprites/s_button_hide/s_button_hide.yy",},"order":10,},
{"id":{"name":"s_node_erode","path":"sprites/s_node_erode/s_node_erode.yy",},"order":43,},
{"id":{"name":"s_node_border","path":"sprites/s_node_border/s_node_border.yy",},"order":18,},
{"id":{"name":"sh_twirl","path":"shaders/sh_twirl/sh_twirl.yy",},"order":19,}, {"id":{"name":"sh_twirl","path":"shaders/sh_twirl/sh_twirl.yy",},"order":19,},
{"id":{"name":"s_node_shape","path":"sprites/s_node_shape/s_node_shape.yy",},"order":40,},
{"id":{"name":"s_checkbox","path":"sprites/s_checkbox/s_checkbox.yy",},"order":11,}, {"id":{"name":"s_checkbox","path":"sprites/s_checkbox/s_checkbox.yy",},"order":11,},
{"id":{"name":"s_button_lime","path":"sprites/s_button_lime/s_button_lime.yy",},"order":1,}, {"id":{"name":"s_button_lime","path":"sprites/s_button_lime/s_button_lime.yy",},"order":1,},
{"id":{"name":"s_node_checker","path":"sprites/s_node_checker/s_node_checker.yy",},"order":22,},
{"id":{"name":"s_node_decorner","path":"sprites/s_node_decorner/s_node_decorner.yy",},"order":38,},
{"id":{"name":"s_node_padding","path":"sprites/s_node_padding/s_node_padding.yy",},"order":75,},
{"id":{"name":"node_level_selector","path":"scripts/node_level_selector/node_level_selector.yy",},"order":39,}, {"id":{"name":"node_level_selector","path":"scripts/node_level_selector/node_level_selector.yy",},"order":39,},
{"id":{"name":"node_posterize","path":"scripts/node_posterize/node_posterize.yy",},"order":10,}, {"id":{"name":"node_posterize","path":"scripts/node_posterize/node_posterize.yy",},"order":10,},
{"id":{"name":"s_node_3d_obj","path":"sprites/s_node_3d_obj/s_node_3d_obj.yy",},"order":4,},
{"id":{"name":"o_dialog_image_array_edit","path":"objects/o_dialog_image_array_edit/o_dialog_image_array_edit.yy",},"order":21,}, {"id":{"name":"o_dialog_image_array_edit","path":"objects/o_dialog_image_array_edit/o_dialog_image_array_edit.yy",},"order":21,},
{"id":{"name":"s_node_sprite_sheet","path":"sprites/s_node_sprite_sheet/s_node_sprite_sheet.yy",},"order":93,},
{"id":{"name":"s_node_vec2","path":"sprites/s_node_vec2/s_node_vec2.yy",},"order":105,},
{"id":{"name":"s_ui_base_white","path":"sprites/s_ui_base_white/s_ui_base_white.yy",},"order":2,}, {"id":{"name":"s_ui_base_white","path":"sprites/s_ui_base_white/s_ui_base_white.yy",},"order":2,},
{"id":{"name":"node_blur","path":"scripts/node_blur/node_blur.yy",},"order":16,}, {"id":{"name":"node_blur","path":"scripts/node_blur/node_blur.yy",},"order":16,},
{"id":{"name":"s_node_color_data","path":"sprites/s_node_color_data/s_node_color_data.yy",},"order":25,}, {"id":{"name":"s_node_loop","path":"sprites/s_node_loop/s_node_loop.yy",},"order":4,},
{"id":{"name":"node_zigzag","path":"scripts/node_zigzag/node_zigzag.yy",},"order":16,}, {"id":{"name":"node_zigzag","path":"scripts/node_zigzag/node_zigzag.yy",},"order":16,},
{"id":{"name":"_f_h5","path":"fonts/_f_h5/_f_h5.yy",},"order":2,}, {"id":{"name":"_f_h5","path":"fonts/_f_h5/_f_h5.yy",},"order":2,},
{"id":{"name":"node_color","path":"scripts/node_color/node_color.yy",},"order":0,}, {"id":{"name":"node_color","path":"scripts/node_color/node_color.yy",},"order":0,},
@ -187,9 +194,10 @@
{"id":{"name":"checkbox","path":"scripts/checkbox/checkbox.yy",},"order":7,}, {"id":{"name":"checkbox","path":"scripts/checkbox/checkbox.yy",},"order":7,},
{"id":{"name":"s_menu_separator","path":"sprites/s_menu_separator/s_menu_separator.yy",},"order":16,}, {"id":{"name":"s_menu_separator","path":"sprites/s_menu_separator/s_menu_separator.yy",},"order":16,},
{"id":{"name":"s_ui_panel_bg_dark","path":"sprites/s_ui_panel_bg_dark/s_ui_panel_bg_dark.yy",},"order":5,}, {"id":{"name":"s_ui_panel_bg_dark","path":"sprites/s_ui_panel_bg_dark/s_ui_panel_bg_dark.yy",},"order":5,},
{"id":{"name":"s_node_color_adjust","path":"sprites/s_node_color_adjust/s_node_color_adjust.yy",},"order":24,},
{"id":{"name":"s_node_junctions_array_hover","path":"sprites/s_node_junctions_array_hover/s_node_junctions_array_hover.yy",},"order":2,}, {"id":{"name":"s_node_junctions_array_hover","path":"sprites/s_node_junctions_array_hover/s_node_junctions_array_hover.yy",},"order":2,},
{"id":{"name":"s_node_particle","path":"sprites/s_node_particle/s_node_particle.yy",},"order":53,},
{"id":{"name":"s_control_unpin","path":"sprites/s_control_unpin/s_control_unpin.yy",},"order":8,}, {"id":{"name":"s_control_unpin","path":"sprites/s_control_unpin/s_control_unpin.yy",},"order":8,},
{"id":{"name":"s_node_color_remove","path":"sprites/s_node_color_remove/s_node_color_remove.yy",},"order":92,},
{"id":{"name":"node_mirror","path":"scripts/node_mirror/node_mirror.yy",},"order":3,}, {"id":{"name":"node_mirror","path":"scripts/node_mirror/node_mirror.yy",},"order":3,},
{"id":{"name":"node_corner","path":"scripts/node_corner/node_corner.yy",},"order":35,}, {"id":{"name":"node_corner","path":"scripts/node_corner/node_corner.yy",},"order":35,},
{"id":{"name":"vertex_function","path":"scripts/vertex_function/vertex_function.yy",},"order":0,}, {"id":{"name":"vertex_function","path":"scripts/vertex_function/vertex_function.yy",},"order":0,},
@ -198,80 +206,80 @@
{"id":{"name":"node_condition","path":"scripts/node_condition/node_condition.yy",},"order":0,}, {"id":{"name":"node_condition","path":"scripts/node_condition/node_condition.yy",},"order":0,},
{"id":{"name":"sh_draw_normal","path":"shaders/sh_draw_normal/sh_draw_normal.yy",},"order":12,}, {"id":{"name":"sh_draw_normal","path":"shaders/sh_draw_normal/sh_draw_normal.yy",},"order":12,},
{"id":{"name":"sh_seperate_shape_index","path":"shaders/sh_seperate_shape_index/sh_seperate_shape_index.yy",},"order":0,}, {"id":{"name":"sh_seperate_shape_index","path":"shaders/sh_seperate_shape_index/sh_seperate_shape_index.yy",},"order":0,},
{"id":{"name":"s_menu_button","path":"sprites/s_menu_button/s_menu_button.yy",},"order":13,},
{"id":{"name":"node_registry","path":"scripts/node_registry/node_registry.yy",},"order":5,}, {"id":{"name":"node_registry","path":"scripts/node_registry/node_registry.yy",},"order":5,},
{"id":{"name":"sh_checkerboard","path":"shaders/sh_checkerboard/sh_checkerboard.yy",},"order":12,}, {"id":{"name":"sh_checkerboard","path":"shaders/sh_checkerboard/sh_checkerboard.yy",},"order":12,},
{"id":{"name":"s_preview_crosshair","path":"sprites/s_preview_crosshair/s_preview_crosshair.yy",},"order":10,}, {"id":{"name":"s_preview_crosshair","path":"sprites/s_preview_crosshair/s_preview_crosshair.yy",},"order":10,},
{"id":{"name":"node_character","path":"scripts/node_character/node_character.yy",},"order":9,}, {"id":{"name":"node_character","path":"scripts/node_character/node_character.yy",},"order":9,},
{"id":{"name":"s_folder_content_24","path":"sprites/s_folder_content_24/s_folder_content_24.yy",},"order":38,}, {"id":{"name":"s_folder_content_24","path":"sprites/s_folder_content_24/s_folder_content_24.yy",},"order":35,},
{"id":{"name":"draw_set_text","path":"scripts/draw_set_text/draw_set_text.yy",},"order":1,}, {"id":{"name":"draw_set_text","path":"scripts/draw_set_text/draw_set_text.yy",},"order":1,},
{"id":{"name":"s_node_array","path":"sprites/s_node_array/s_node_array.yy",},"order":108,},
{"id":{"name":"s_button_right","path":"sprites/s_button_right/s_button_right.yy",},"order":6,}, {"id":{"name":"s_button_right","path":"sprites/s_button_right/s_button_right.yy",},"order":6,},
{"id":{"name":"s_node_warp","path":"sprites/s_node_warp/s_node_warp.yy",},"order":23,},
{"id":{"name":"node_color_data","path":"scripts/node_color_data/node_color_data.yy",},"order":4,}, {"id":{"name":"node_color_data","path":"scripts/node_color_data/node_color_data.yy",},"order":4,},
{"id":{"name":"node_noise_ani","path":"scripts/node_noise_ani/node_noise_ani.yy",},"order":7,}, {"id":{"name":"node_noise_ani","path":"scripts/node_noise_ani/node_noise_ani.yy",},"order":7,},
{"id":{"name":"s_node_line","path":"sprites/s_node_line/s_node_line.yy",},"order":65,},
{"id":{"name":"s_cursor_path_anchor","path":"sprites/s_cursor_path_anchor/s_cursor_path_anchor.yy",},"order":1,}, {"id":{"name":"s_cursor_path_anchor","path":"sprites/s_cursor_path_anchor/s_cursor_path_anchor.yy",},"order":1,},
{"id":{"name":"s_node_transform","path":"sprites/s_node_transform/s_node_transform.yy",},"order":30,},
{"id":{"name":"node_canvas","path":"scripts/node_canvas/node_canvas.yy",},"order":6,}, {"id":{"name":"node_canvas","path":"scripts/node_canvas/node_canvas.yy",},"order":6,},
{"id":{"name":"node_chromatic_aberration","path":"scripts/node_chromatic_aberration/node_chromatic_aberration.yy",},"order":45,}, {"id":{"name":"node_chromatic_aberration","path":"scripts/node_chromatic_aberration/node_chromatic_aberration.yy",},"order":45,},
{"id":{"name":"node_pin","path":"scripts/node_pin/node_pin.yy",},"order":2,}, {"id":{"name":"node_pin","path":"scripts/node_pin/node_pin.yy",},"order":2,},
{"id":{"name":"sh_bw","path":"shaders/sh_bw/sh_bw.yy",},"order":1,}, {"id":{"name":"sh_bw","path":"shaders/sh_bw/sh_bw.yy",},"order":1,},
{"id":{"name":"s_node_stripe","path":"sprites/s_node_stripe/s_node_stripe.yy",},"order":36,},
{"id":{"name":"sh_grey_alpha","path":"shaders/sh_grey_alpha/sh_grey_alpha.yy",},"order":11,}, {"id":{"name":"sh_grey_alpha","path":"shaders/sh_grey_alpha/sh_grey_alpha.yy",},"order":11,},
{"id":{"name":"sh_normal","path":"shaders/sh_normal/sh_normal.yy",},"order":1,}, {"id":{"name":"sh_normal","path":"shaders/sh_normal/sh_normal.yy",},"order":1,},
{"id":{"name":"s_node_time_map","path":"sprites/s_node_time_map/s_node_time_map.yy",},"order":33,},
{"id":{"name":"node_crop","path":"scripts/node_crop/node_crop.yy",},"order":8,}, {"id":{"name":"node_crop","path":"scripts/node_crop/node_crop.yy",},"order":8,},
{"id":{"name":"buttonPalette","path":"scripts/buttonPalette/buttonPalette.yy",},"order":6,}, {"id":{"name":"buttonPalette","path":"scripts/buttonPalette/buttonPalette.yy",},"order":6,},
{"id":{"name":"s_node_zigzag","path":"sprites/s_node_zigzag/s_node_zigzag.yy",},"order":0,}, {"id":{"name":"s_node_wiggler","path":"sprites/s_node_wiggler/s_node_wiggler.yy",},"order":21,},
{"id":{"name":"sh_edge_detect","path":"shaders/sh_edge_detect/sh_edge_detect.yy",},"order":35,}, {"id":{"name":"sh_edge_detect","path":"shaders/sh_edge_detect/sh_edge_detect.yy",},"order":35,},
{"id":{"name":"s_node_timeline_preview","path":"sprites/s_node_timeline_preview/s_node_timeline_preview.yy",},"order":99,}, {"id":{"name":"s_node_area","path":"sprites/s_node_area/s_node_area.yy",},"order":109,},
{"id":{"name":"type_conversion","path":"scripts/type_conversion/type_conversion.yy",},"order":8,}, {"id":{"name":"type_conversion","path":"scripts/type_conversion/type_conversion.yy",},"order":8,},
{"id":{"name":"node_keyframe","path":"scripts/node_keyframe/node_keyframe.yy",},"order":4,}, {"id":{"name":"node_keyframe","path":"scripts/node_keyframe/node_keyframe.yy",},"order":4,},
{"id":{"name":"s_node_pixel_cloud","path":"sprites/s_node_pixel_cloud/s_node_pixel_cloud.yy",},"order":81,}, {"id":{"name":"ac_flash","path":"animcurves/ac_flash/ac_flash.yy",},"order":0,},
{"id":{"name":"o_dialog_drag_folder","path":"objects/o_dialog_drag_folder/o_dialog_drag_folder.yy",},"order":20,}, {"id":{"name":"o_dialog_drag_folder","path":"objects/o_dialog_drag_folder/o_dialog_drag_folder.yy",},"order":20,},
{"id":{"name":"s_node_unicode","path":"sprites/s_node_unicode/s_node_unicode.yy",},"order":103,}, {"id":{"name":"s_node_alpha_cut","path":"sprites/s_node_alpha_cut/s_node_alpha_cut.yy",},"order":111,},
{"id":{"name":"sh_blend_multiply_alpha","path":"shaders/sh_blend_multiply_alpha/sh_blend_multiply_alpha.yy",},"order":4,}, {"id":{"name":"sh_blend_multiply_alpha","path":"shaders/sh_blend_multiply_alpha/sh_blend_multiply_alpha.yy",},"order":4,},
{"id":{"name":"draw_sprite_ext_override","path":"scripts/draw_sprite_ext_override/draw_sprite_ext_override.yy",},"order":9,},
{"id":{"name":"node_noise_cell","path":"scripts/node_noise_cell/node_noise_cell.yy",},"order":3,}, {"id":{"name":"node_noise_cell","path":"scripts/node_noise_cell/node_noise_cell.yy",},"order":3,},
{"id":{"name":"s_node_draw_path","path":"sprites/s_node_draw_path/s_node_draw_path.yy",},"order":1,}, {"id":{"name":"s_node_draw_path","path":"sprites/s_node_draw_path/s_node_draw_path.yy",},"order":1,},
{"id":{"name":"s_noti_icon_error","path":"sprites/s_noti_icon_error/s_noti_icon_error.yy",},"order":6,},
{"id":{"name":"sh_scale2x","path":"shaders/sh_scale2x/sh_scale2x.yy",},"order":32,}, {"id":{"name":"sh_scale2x","path":"shaders/sh_scale2x/sh_scale2x.yy",},"order":32,},
{"id":{"name":"node_vector","path":"scripts/node_vector/node_vector.yy",},"order":2,}, {"id":{"name":"node_vector","path":"scripts/node_vector/node_vector.yy",},"order":2,},
{"id":{"name":"s_node_3d_cube","path":"sprites/s_node_3d_cube/s_node_3d_cube.yy",},"order":2,},
{"id":{"name":"s_canvas_tools_bucket","path":"sprites/s_canvas_tools_bucket/s_canvas_tools_bucket.yy",},"order":0,}, {"id":{"name":"s_canvas_tools_bucket","path":"sprites/s_canvas_tools_bucket/s_canvas_tools_bucket.yy",},"order":0,},
{"id":{"name":"s_node_image_animation","path":"sprites/s_node_image_animation/s_node_image_animation.yy",},"order":55,},
{"id":{"name":"s_node_pin","path":"sprites/s_node_pin/s_node_pin.yy",},"order":80,},
{"id":{"name":"s_text_slider","path":"sprites/s_text_slider/s_text_slider.yy",},"order":23,}, {"id":{"name":"s_text_slider","path":"sprites/s_text_slider/s_text_slider.yy",},"order":23,},
{"id":{"name":"s_node_atlas","path":"sprites/s_node_atlas/s_node_atlas.yy",},"order":12,},
{"id":{"name":"node_palette","path":"scripts/node_palette/node_palette.yy",},"order":2,}, {"id":{"name":"node_palette","path":"scripts/node_palette/node_palette.yy",},"order":2,},
{"id":{"name":"buttonColor","path":"scripts/buttonColor/buttonColor.yy",},"order":3,}, {"id":{"name":"buttonColor","path":"scripts/buttonColor/buttonColor.yy",},"order":3,},
{"id":{"name":"s_node_palette","path":"sprites/s_node_palette/s_node_palette.yy",},"order":76,}, {"id":{"name":"notification_system","path":"scripts/notification_system/notification_system.yy",},"order":7,},
{"id":{"name":"s_cursor_path_move","path":"sprites/s_cursor_path_move/s_cursor_path_move.yy",},"order":2,}, {"id":{"name":"s_cursor_path_move","path":"sprites/s_cursor_path_move/s_cursor_path_move.yy",},"order":2,},
{"id":{"name":"node_color_from_hsv","path":"scripts/node_color_from_hsv/node_color_from_hsv.yy",},"order":6,}, {"id":{"name":"node_color_from_hsv","path":"scripts/node_color_from_hsv/node_color_from_hsv.yy",},"order":6,},
{"id":{"name":"s_node_blend","path":"sprites/s_node_blend/s_node_blend.yy",},"order":111,},
{"id":{"name":"s_node_resize","path":"sprites/s_node_resize/s_node_resize.yy",},"order":12,}, {"id":{"name":"s_node_resize","path":"sprites/s_node_resize/s_node_resize.yy",},"order":12,},
{"id":{"name":"s_folder_24","path":"sprites/s_folder_24/s_folder_24.yy",},"order":8,}, {"id":{"name":"s_folder_24","path":"sprites/s_folder_24/s_folder_24.yy",},"order":8,},
{"id":{"name":"s_gear_24","path":"sprites/s_gear_24/s_gear_24.yy",},"order":10,}, {"id":{"name":"s_gear_24","path":"sprites/s_gear_24/s_gear_24.yy",},"order":10,},
{"id":{"name":"s_node_color_replace","path":"sprites/s_node_color_replace/s_node_color_replace.yy",},"order":30,}, {"id":{"name":"s_rotator_bg","path":"sprites/s_rotator_bg/s_rotator_bg.yy",},"order":10,},
{"id":{"name":"s_rotator_bg","path":"sprites/s_rotator_bg/s_rotator_bg.yy",},"order":16,}, {"id":{"name":"s_node_image_copy","path":"sprites/s_node_image_copy/s_node_image_copy.yy",},"order":0,},
{"id":{"name":"s_node_image_gif","path":"sprites/s_node_image_gif/s_node_image_gif.yy",},"order":56,},
{"id":{"name":"window_command_hook","path":"extensions/window_command_hook/window_command_hook.yy",},"order":6,}, {"id":{"name":"window_command_hook","path":"extensions/window_command_hook/window_command_hook.yy",},"order":6,},
{"id":{"name":"slider","path":"scripts/slider/slider.yy",},"order":15,}, {"id":{"name":"slider","path":"scripts/slider/slider.yy",},"order":15,},
{"id":{"name":"s_canvas_tools_ellip_fill","path":"sprites/s_canvas_tools_ellip_fill/s_canvas_tools_ellip_fill.yy",},"order":2,}, {"id":{"name":"s_canvas_tools_ellip_fill","path":"sprites/s_canvas_tools_ellip_fill/s_canvas_tools_ellip_fill.yy",},"order":2,},
{"id":{"name":"node_9slice","path":"scripts/node_9slice/node_9slice.yy",},"order":6,}, {"id":{"name":"node_9slice","path":"scripts/node_9slice/node_9slice.yy",},"order":6,},
{"id":{"name":"s_node_chromatic_abarration","path":"sprites/s_node_chromatic_abarration/s_node_chromatic_abarration.yy",},"order":117,},
{"id":{"name":"node_data","path":"scripts/node_data/node_data.yy",},"order":1,}, {"id":{"name":"node_data","path":"scripts/node_data/node_data.yy",},"order":1,},
{"id":{"name":"node_wiggler","path":"scripts/node_wiggler/node_wiggler.yy",},"order":2,}, {"id":{"name":"node_wiggler","path":"scripts/node_wiggler/node_wiggler.yy",},"order":2,},
{"id":{"name":"s_node_color","path":"sprites/s_node_color/s_node_color.yy",},"order":23,}, {"id":{"name":"s_node_checker","path":"sprites/s_node_checker/s_node_checker.yy",},"order":98,},
{"id":{"name":"s_node_grid_noise","path":"sprites/s_node_grid_noise/s_node_grid_noise.yy",},"order":72,},
{"id":{"name":"o_dialog_preview_grid","path":"objects/o_dialog_preview_grid/o_dialog_preview_grid.yy",},"order":24,}, {"id":{"name":"o_dialog_preview_grid","path":"objects/o_dialog_preview_grid/o_dialog_preview_grid.yy",},"order":24,},
{"id":{"name":"node_image_gif","path":"scripts/node_image_gif/node_image_gif.yy",},"order":7,}, {"id":{"name":"node_image_gif","path":"scripts/node_image_gif/node_image_gif.yy",},"order":7,},
{"id":{"name":"icon_64","path":"sprites/icon_64/icon_64.yy",},"order":2,}, {"id":{"name":"icon_64","path":"sprites/icon_64/icon_64.yy",},"order":2,},
{"id":{"name":"o_dialog_anim_time_scaler","path":"objects/o_dialog_anim_time_scaler/o_dialog_anim_time_scaler.yy",},"order":17,}, {"id":{"name":"o_dialog_anim_time_scaler","path":"objects/o_dialog_anim_time_scaler/o_dialog_anim_time_scaler.yy",},"order":17,},
{"id":{"name":"sh_blend_screen_alpha","path":"shaders/sh_blend_screen_alpha/sh_blend_screen_alpha.yy",},"order":6,}, {"id":{"name":"sh_blend_screen_alpha","path":"shaders/sh_blend_screen_alpha/sh_blend_screen_alpha.yy",},"order":6,},
{"id":{"name":"node_color_remove","path":"scripts/node_color_remove/node_color_remove.yy",},"order":38,}, {"id":{"name":"node_color_remove","path":"scripts/node_color_remove/node_color_remove.yy",},"order":38,},
{"id":{"name":"s_node_3d_cylinder","path":"sprites/s_node_3d_cylinder/s_node_3d_cylinder.yy",},"order":3,},
{"id":{"name":"s_panel_active_split","path":"sprites/s_panel_active_split/s_panel_active_split.yy",},"order":2,}, {"id":{"name":"s_panel_active_split","path":"sprites/s_panel_active_split/s_panel_active_split.yy",},"order":2,},
{"id":{"name":"s_node_grid","path":"sprites/s_node_grid/s_node_grid.yy",},"order":73,},
{"id":{"name":"node_perlin","path":"scripts/node_perlin/node_perlin.yy",},"order":2,}, {"id":{"name":"node_perlin","path":"scripts/node_perlin/node_perlin.yy",},"order":2,},
{"id":{"name":"s_node_transform","path":"sprites/s_node_transform/s_node_transform.yy",},"order":101,},
{"id":{"name":"o_dialog_add_multiple_images","path":"objects/o_dialog_add_multiple_images/o_dialog_add_multiple_images.yy",},"order":18,}, {"id":{"name":"o_dialog_add_multiple_images","path":"objects/o_dialog_add_multiple_images/o_dialog_add_multiple_images.yy",},"order":18,},
{"id":{"name":"assets_data","path":"scripts/assets_data/assets_data.yy",},"order":0,}, {"id":{"name":"assets_data","path":"scripts/assets_data/assets_data.yy",},"order":0,},
{"id":{"name":"sh_color_adjust","path":"shaders/sh_color_adjust/sh_color_adjust.yy",},"order":2,}, {"id":{"name":"sh_color_adjust","path":"shaders/sh_color_adjust/sh_color_adjust.yy",},"order":2,},
{"id":{"name":"surface_get_palette","path":"scripts/surface_get_palette/surface_get_palette.yy",},"order":2,}, {"id":{"name":"surface_get_palette","path":"scripts/surface_get_palette/surface_get_palette.yy",},"order":2,},
{"id":{"name":"sh_texture_remap","path":"shaders/sh_texture_remap/sh_texture_remap.yy",},"order":29,}, {"id":{"name":"sh_texture_remap","path":"shaders/sh_texture_remap/sh_texture_remap.yy",},"order":29,},
{"id":{"name":"ds_extra","path":"scripts/ds_extra/ds_extra.yy",},"order":1,}, {"id":{"name":"ds_list","path":"scripts/ds_list/ds_list.yy",},"order":1,},
{"id":{"name":"s_sequence_control","path":"sprites/s_sequence_control/s_sequence_control.yy",},"order":21,}, {"id":{"name":"s_sequence_control","path":"sprites/s_sequence_control/s_sequence_control.yy",},"order":21,},
{"id":{"name":"s_node_frame_bg","path":"sprites/s_node_frame_bg/s_node_frame_bg.yy",},"order":10,}, {"id":{"name":"s_node_frame_bg","path":"sprites/s_node_frame_bg/s_node_frame_bg.yy",},"order":10,},
{"id":{"name":"o_dialog_gradient","path":"objects/o_dialog_gradient/o_dialog_gradient.yy",},"order":1,}, {"id":{"name":"o_dialog_gradient","path":"objects/o_dialog_gradient/o_dialog_gradient.yy",},"order":1,},
@ -280,21 +288,19 @@
{"id":{"name":"o_dialog_file_name","path":"objects/o_dialog_file_name/o_dialog_file_name.yy",},"order":12,}, {"id":{"name":"o_dialog_file_name","path":"objects/o_dialog_file_name/o_dialog_file_name.yy",},"order":12,},
{"id":{"name":"panel_animation","path":"scripts/panel_animation/panel_animation.yy",},"order":4,}, {"id":{"name":"panel_animation","path":"scripts/panel_animation/panel_animation.yy",},"order":4,},
{"id":{"name":"sh_gradient","path":"shaders/sh_gradient/sh_gradient.yy",},"order":8,}, {"id":{"name":"sh_gradient","path":"shaders/sh_gradient/sh_gradient.yy",},"order":8,},
{"id":{"name":"s_node_zigzag","path":"sprites/s_node_zigzag/s_node_zigzag.yy",},"order":20,},
{"id":{"name":"sh_glow","path":"shaders/sh_glow/sh_glow.yy",},"order":21,}, {"id":{"name":"sh_glow","path":"shaders/sh_glow/sh_glow.yy",},"order":21,},
{"id":{"name":"sh_posterize","path":"shaders/sh_posterize/sh_posterize.yy",},"order":23,}, {"id":{"name":"sh_posterize","path":"shaders/sh_posterize/sh_posterize.yy",},"order":23,},
{"id":{"name":"s_node_mirror","path":"sprites/s_node_mirror/s_node_mirror.yy",},"order":60,},
{"id":{"name":"libfilesystem","path":"extensions/libfilesystem/libfilesystem.yy",},"order":3,}, {"id":{"name":"libfilesystem","path":"extensions/libfilesystem/libfilesystem.yy",},"order":3,},
{"id":{"name":"s_node_noise_perlin","path":"sprites/s_node_noise_perlin/s_node_noise_perlin.yy",},"order":70,},
{"id":{"name":"sh_color_replace","path":"shaders/sh_color_replace/sh_color_replace.yy",},"order":4,}, {"id":{"name":"sh_color_replace","path":"shaders/sh_color_replace/sh_color_replace.yy",},"order":4,},
{"id":{"name":"rotator","path":"scripts/rotator/rotator.yy",},"order":11,}, {"id":{"name":"rotator","path":"scripts/rotator/rotator.yy",},"order":11,},
{"id":{"name":"s_graph","path":"sprites/s_graph/s_graph.yy",},"order":11,}, {"id":{"name":"s_graph","path":"sprites/s_graph/s_graph.yy",},"order":11,},
{"id":{"name":"s_node_edge_detect","path":"sprites/s_node_edge_detect/s_node_edge_detect.yy",},"order":2,},
{"id":{"name":"node_blur_radial","path":"scripts/node_blur_radial/node_blur_radial.yy",},"order":29,}, {"id":{"name":"node_blur_radial","path":"scripts/node_blur_radial/node_blur_radial.yy",},"order":29,},
{"id":{"name":"s_path_tools_anchor","path":"sprites/s_path_tools_anchor/s_path_tools_anchor.yy",},"order":5,}, {"id":{"name":"s_path_tools_anchor","path":"sprites/s_path_tools_anchor/s_path_tools_anchor.yy",},"order":5,},
{"id":{"name":"s_node_mirror","path":"sprites/s_node_mirror/s_node_mirror.yy",},"order":67,},
{"id":{"name":"node_bloom","path":"scripts/node_bloom/node_bloom.yy",},"order":15,}, {"id":{"name":"node_bloom","path":"scripts/node_bloom/node_bloom.yy",},"order":15,},
{"id":{"name":"s_node_counter","path":"sprites/s_node_counter/s_node_counter.yy",},"order":35,},
{"id":{"name":"s_node_gradient","path":"sprites/s_node_gradient/s_node_gradient.yy",},"order":47,},
{"id":{"name":"s_icon_preview_export","path":"sprites/s_icon_preview_export/s_icon_preview_export.yy",},"order":6,}, {"id":{"name":"s_icon_preview_export","path":"sprites/s_icon_preview_export/s_icon_preview_export.yy",},"order":6,},
{"id":{"name":"s_node_greyscale","path":"sprites/s_node_greyscale/s_node_greyscale.yy",},"order":50,},
{"id":{"name":"sh_bevel","path":"shaders/sh_bevel/sh_bevel.yy",},"order":3,}, {"id":{"name":"sh_bevel","path":"shaders/sh_bevel/sh_bevel.yy",},"order":3,},
{"id":{"name":"node_sprite_stack","path":"scripts/node_sprite_stack/node_sprite_stack.yy",},"order":4,}, {"id":{"name":"node_sprite_stack","path":"scripts/node_sprite_stack/node_sprite_stack.yy",},"order":4,},
{"id":{"name":"sh_shape","path":"shaders/sh_shape/sh_shape.yy",},"order":3,}, {"id":{"name":"sh_shape","path":"shaders/sh_shape/sh_shape.yy",},"order":3,},
@ -302,29 +308,28 @@
{"id":{"name":"node_particle_effector","path":"scripts/node_particle_effector/node_particle_effector.yy",},"order":9,}, {"id":{"name":"node_particle_effector","path":"scripts/node_particle_effector/node_particle_effector.yy",},"order":9,},
{"id":{"name":"s_noti_icon_file_load","path":"sprites/s_noti_icon_file_load/s_noti_icon_file_load.yy",},"order":5,}, {"id":{"name":"s_noti_icon_file_load","path":"sprites/s_noti_icon_file_load/s_noti_icon_file_load.yy",},"order":5,},
{"id":{"name":"areaBox","path":"scripts/areaBox/areaBox.yy",},"order":1,}, {"id":{"name":"areaBox","path":"scripts/areaBox/areaBox.yy",},"order":1,},
{"id":{"name":"s_node_erode","path":"sprites/s_node_erode/s_node_erode.yy",},"order":81,},
{"id":{"name":"s_icon_grid","path":"sprites/s_icon_grid/s_icon_grid.yy",},"order":4,}, {"id":{"name":"s_icon_grid","path":"sprites/s_icon_grid/s_icon_grid.yy",},"order":4,},
{"id":{"name":"node_particle","path":"scripts/node_particle/node_particle.yy",},"order":0,}, {"id":{"name":"node_particle","path":"scripts/node_particle/node_particle.yy",},"order":0,},
{"id":{"name":"s_icon_grid_setting","path":"sprites/s_icon_grid_setting/s_icon_grid_setting.yy",},"order":5,}, {"id":{"name":"s_icon_grid_setting","path":"sprites/s_icon_grid_setting/s_icon_grid_setting.yy",},"order":5,},
{"id":{"name":"level_histogram","path":"scripts/level_histogram/level_histogram.yy",},"order":1,}, {"id":{"name":"level_histogram","path":"scripts/level_histogram/level_histogram.yy",},"order":1,},
{"id":{"name":"o_dialog_inspector_grid","path":"objects/o_dialog_inspector_grid/o_dialog_inspector_grid.yy",},"order":25,}, {"id":{"name":"o_dialog_graph_grid","path":"objects/o_dialog_graph_grid/o_dialog_graph_grid.yy",},"order":25,},
{"id":{"name":"s_node_array_length","path":"sprites/s_node_array_length/s_node_array_length.yy",},"order":11,},
{"id":{"name":"append_function","path":"scripts/append_function/append_function.yy",},"order":1,}, {"id":{"name":"append_function","path":"scripts/append_function/append_function.yy",},"order":1,},
{"id":{"name":"s_node_array_get","path":"sprites/s_node_array_get/s_node_array_get.yy",},"order":112,},
{"id":{"name":"s_dialog_active","path":"sprites/s_dialog_active/s_dialog_active.yy",},"order":0,}, {"id":{"name":"s_dialog_active","path":"sprites/s_dialog_active/s_dialog_active.yy",},"order":0,},
{"id":{"name":"obj_reader","path":"scripts/obj_reader/obj_reader.yy",},"order":2,}, {"id":{"name":"obj_reader","path":"scripts/obj_reader/obj_reader.yy",},"order":2,},
{"id":{"name":"sh_invert","path":"shaders/sh_invert/sh_invert.yy",},"order":30,}, {"id":{"name":"sh_invert","path":"shaders/sh_invert/sh_invert.yy",},"order":30,},
{"id":{"name":"save_function","path":"scripts/save_function/save_function.yy",},"order":0,}, {"id":{"name":"save_function","path":"scripts/save_function/save_function.yy",},"order":0,},
{"id":{"name":"node_perlin_smear","path":"scripts/node_perlin_smear/node_perlin_smear.yy",},"order":10,}, {"id":{"name":"node_perlin_smear","path":"scripts/node_perlin_smear/node_perlin_smear.yy",},"order":10,},
{"id":{"name":"s_node_area","path":"sprites/s_node_area/s_node_area.yy",},"order":9,},
{"id":{"name":"node_alpha_cutoff","path":"scripts/node_alpha_cutoff/node_alpha_cutoff.yy",},"order":37,}, {"id":{"name":"node_alpha_cutoff","path":"scripts/node_alpha_cutoff/node_alpha_cutoff.yy",},"order":37,},
{"id":{"name":"sh_channel_R","path":"shaders/sh_channel_R/sh_channel_R.yy",},"order":12,}, {"id":{"name":"sh_channel_R","path":"shaders/sh_channel_R/sh_channel_R.yy",},"order":12,},
{"id":{"name":"draw_circle_border","path":"scripts/draw_circle_border/draw_circle_border.yy",},"order":3,}, {"id":{"name":"draw_circle_border","path":"scripts/draw_circle_border/draw_circle_border.yy",},"order":3,},
{"id":{"name":"sliderRange","path":"scripts/sliderRange/sliderRange.yy",},"order":16,}, {"id":{"name":"sliderRange","path":"scripts/sliderRange/sliderRange.yy",},"order":16,},
{"id":{"name":"point_rect_overlap","path":"scripts/point_rect_overlap/point_rect_overlap.yy",},"order":2,}, {"id":{"name":"point_rect_overlap","path":"scripts/point_rect_overlap/point_rect_overlap.yy",},"order":2,},
{"id":{"name":"s_node_twirl","path":"sprites/s_node_twirl/s_node_twirl.yy",},"order":102,}, {"id":{"name":"s_node_bevel","path":"sprites/s_node_bevel/s_node_bevel.yy",},"order":105,},
{"id":{"name":"s_icon_accept_32","path":"sprites/s_icon_accept_32/s_icon_accept_32.yy",},"order":15,}, {"id":{"name":"s_icon_accept_32","path":"sprites/s_icon_accept_32/s_icon_accept_32.yy",},"order":15,},
{"id":{"name":"s_timeline_elastic","path":"sprites/s_timeline_elastic/s_timeline_elastic.yy",},"order":6,}, {"id":{"name":"s_timeline_elastic","path":"sprites/s_timeline_elastic/s_timeline_elastic.yy",},"order":6,},
{"id":{"name":"sh_seperate_shape_counter","path":"shaders/sh_seperate_shape_counter/sh_seperate_shape_counter.yy",},"order":1,}, {"id":{"name":"sh_seperate_shape_counter","path":"shaders/sh_seperate_shape_counter/sh_seperate_shape_counter.yy",},"order":1,},
{"id":{"name":"s_node_stack","path":"sprites/s_node_stack/s_node_stack.yy",},"order":37,},
{"id":{"name":"node_timeline_preview","path":"scripts/node_timeline_preview/node_timeline_preview.yy",},"order":2,}, {"id":{"name":"node_timeline_preview","path":"scripts/node_timeline_preview/node_timeline_preview.yy",},"order":2,},
{"id":{"name":"s_node_junction_name_bg","path":"sprites/s_node_junction_name_bg/s_node_junction_name_bg.yy",},"order":19,}, {"id":{"name":"s_node_junction_name_bg","path":"sprites/s_node_junction_name_bg/s_node_junction_name_bg.yy",},"order":19,},
{"id":{"name":"sh_greyscale","path":"shaders/sh_greyscale/sh_greyscale.yy",},"order":6,}, {"id":{"name":"sh_greyscale","path":"shaders/sh_greyscale/sh_greyscale.yy",},"order":6,},
@ -333,118 +338,113 @@
{"id":{"name":"node_checkerboard","path":"scripts/node_checkerboard/node_checkerboard.yy",},"order":17,}, {"id":{"name":"node_checkerboard","path":"scripts/node_checkerboard/node_checkerboard.yy",},"order":17,},
{"id":{"name":"node_gradient_output","path":"scripts/node_gradient_output/node_gradient_output.yy",},"order":3,}, {"id":{"name":"node_gradient_output","path":"scripts/node_gradient_output/node_gradient_output.yy",},"order":3,},
{"id":{"name":"display_refresh","path":"scripts/display_refresh/display_refresh.yy",},"order":18,}, {"id":{"name":"display_refresh","path":"scripts/display_refresh/display_refresh.yy",},"order":18,},
{"id":{"name":"s_node_grey_alpha","path":"sprites/s_node_grey_alpha/s_node_grey_alpha.yy",},"order":75,},
{"id":{"name":"o_dialog_color_selector","path":"objects/o_dialog_color_selector/o_dialog_color_selector.yy",},"order":0,}, {"id":{"name":"o_dialog_color_selector","path":"objects/o_dialog_color_selector/o_dialog_color_selector.yy",},"order":0,},
{"id":{"name":"s_color_picker_dropper","path":"sprites/s_color_picker_dropper/s_color_picker_dropper.yy",},"order":6,}, {"id":{"name":"s_color_picker_dropper","path":"sprites/s_color_picker_dropper/s_color_picker_dropper.yy",},"order":6,},
{"id":{"name":"sh_bloom_pass1","path":"shaders/sh_bloom_pass1/sh_bloom_pass1.yy",},"order":0,}, {"id":{"name":"sh_bloom_pass1","path":"shaders/sh_bloom_pass1/sh_bloom_pass1.yy",},"order":0,},
{"id":{"name":"node_seperate_shapes","path":"scripts/node_seperate_shapes/node_seperate_shapes.yy",},"order":13,}, {"id":{"name":"node_seperate_shapes","path":"scripts/node_seperate_shapes/node_seperate_shapes.yy",},"order":13,},
{"id":{"name":"node_sequence_to_anim","path":"scripts/node_sequence_to_anim/node_sequence_to_anim.yy",},"order":3,}, {"id":{"name":"node_sequence_to_anim","path":"scripts/node_sequence_to_anim/node_sequence_to_anim.yy",},"order":3,},
{"id":{"name":"s_anchor_scale","path":"sprites/s_anchor_scale/s_anchor_scale.yy",},"order":2,}, {"id":{"name":"s_anchor_scale","path":"sprites/s_anchor_scale/s_anchor_scale.yy",},"order":2,},
{"id":{"name":"s_node_gradient_out","path":"sprites/s_node_gradient_out/s_node_gradient_out.yy",},"order":48,},
{"id":{"name":"s_node_texture_map","path":"sprites/s_node_texture_map/s_node_texture_map.yy",},"order":97,},
{"id":{"name":"node_image_sheet","path":"scripts/node_image_sheet/node_image_sheet.yy",},"order":4,}, {"id":{"name":"node_image_sheet","path":"scripts/node_image_sheet/node_image_sheet.yy",},"order":4,},
{"id":{"name":"s_node_invert","path":"sprites/s_node_invert/s_node_invert.yy",},"order":61,},
{"id":{"name":"s_slider","path":"sprites/s_slider/s_slider.yy",},"order":12,}, {"id":{"name":"s_slider","path":"sprites/s_slider/s_slider.yy",},"order":12,},
{"id":{"name":"sh_posterize_palette","path":"shaders/sh_posterize_palette/sh_posterize_palette.yy",},"order":8,}, {"id":{"name":"sh_posterize_palette","path":"shaders/sh_posterize_palette/sh_posterize_palette.yy",},"order":8,},
{"id":{"name":"s_node_polar","path":"sprites/s_node_polar/s_node_polar.yy",},"order":82,},
{"id":{"name":"collection_data","path":"scripts/collection_data/collection_data.yy",},"order":1,}, {"id":{"name":"collection_data","path":"scripts/collection_data/collection_data.yy",},"order":1,},
{"id":{"name":"safe_operation","path":"scripts/safe_operation/safe_operation.yy",},"order":6,}, {"id":{"name":"safe_operation","path":"scripts/safe_operation/safe_operation.yy",},"order":6,},
{"id":{"name":"s_node_array_get","path":"sprites/s_node_array_get/s_node_array_get.yy",},"order":6,},
{"id":{"name":"s_node_BW","path":"sprites/s_node_BW/s_node_BW.yy",},"order":100,},
{"id":{"name":"node_shadow","path":"scripts/node_shadow/node_shadow.yy",},"order":17,}, {"id":{"name":"node_shadow","path":"scripts/node_shadow/node_shadow.yy",},"order":17,},
{"id":{"name":"s_node_edge_detect","path":"sprites/s_node_edge_detect/s_node_edge_detect.yy",},"order":116,}, {"id":{"name":"s_node_color_data","path":"sprites/s_node_color_data/s_node_color_data.yy",},"order":96,},
{"id":{"name":"s_group_24","path":"sprites/s_group_24/s_group_24.yy",},"order":30,}, {"id":{"name":"s_group_24","path":"sprites/s_group_24/s_group_24.yy",},"order":27,},
{"id":{"name":"s_prop_on_end","path":"sprites/s_prop_on_end/s_prop_on_end.yy",},"order":5,}, {"id":{"name":"s_prop_on_end","path":"sprites/s_prop_on_end/s_prop_on_end.yy",},"order":3,},
{"id":{"name":"s_node_warp_mesh","path":"sprites/s_node_warp_mesh/s_node_warp_mesh.yy",},"order":109,},
{"id":{"name":"node_simple_shape","path":"scripts/node_simple_shape/node_simple_shape.yy",},"order":5,}, {"id":{"name":"node_simple_shape","path":"scripts/node_simple_shape/node_simple_shape.yy",},"order":5,},
{"id":{"name":"s_node_math","path":"sprites/s_node_math/s_node_math.yy",},"order":66,},
{"id":{"name":"node_atlas","path":"scripts/node_atlas/node_atlas.yy",},"order":42,}, {"id":{"name":"node_atlas","path":"scripts/node_atlas/node_atlas.yy",},"order":42,},
{"id":{"name":"getGradientData","path":"scripts/getGradientData/getGradientData.yy",},"order":1,}, {"id":{"name":"getGradientData","path":"scripts/getGradientData/getGradientData.yy",},"order":1,},
{"id":{"name":"s_node_character","path":"sprites/s_node_character/s_node_character.yy",},"order":99,},
{"id":{"name":"node_glow","path":"scripts/node_glow/node_glow.yy",},"order":14,}, {"id":{"name":"node_glow","path":"scripts/node_glow/node_glow.yy",},"order":14,},
{"id":{"name":"sh_blend_min","path":"shaders/sh_blend_min/sh_blend_min.yy",},"order":9,}, {"id":{"name":"sh_blend_min","path":"shaders/sh_blend_min/sh_blend_min.yy",},"order":9,},
{"id":{"name":"s_animation_timing","path":"sprites/s_animation_timing/s_animation_timing.yy",},"order":27,}, {"id":{"name":"s_animation_timing","path":"sprites/s_animation_timing/s_animation_timing.yy",},"order":25,},
{"id":{"name":"s_node_val","path":"sprites/s_node_val/s_node_val.yy",},"order":16,}, {"id":{"name":"s_node_val","path":"sprites/s_node_val/s_node_val.yy",},"order":16,},
{"id":{"name":"s_node_RGB","path":"sprites/s_node_RGB/s_node_RGB.yy",},"order":84,},
{"id":{"name":"node_polar","path":"scripts/node_polar/node_polar.yy",},"order":5,}, {"id":{"name":"node_polar","path":"scripts/node_polar/node_polar.yy",},"order":5,},
{"id":{"name":"s_node_bg_mini","path":"sprites/s_node_bg_mini/s_node_bg_mini.yy",},"order":18,}, {"id":{"name":"s_node_bg_mini","path":"sprites/s_node_bg_mini/s_node_bg_mini.yy",},"order":18,},
{"id":{"name":"s_node_twirl","path":"sprites/s_node_twirl/s_node_twirl.yy",},"order":29,},
{"id":{"name":"s_node_name","path":"sprites/s_node_name/s_node_name.yy",},"order":3,}, {"id":{"name":"s_node_name","path":"sprites/s_node_name/s_node_name.yy",},"order":3,},
{"id":{"name":"s_node_solid","path":"sprites/s_node_solid/s_node_solid.yy",},"order":92,},
{"id":{"name":"sh_2d_light","path":"shaders/sh_2d_light/sh_2d_light.yy",},"order":11,}, {"id":{"name":"sh_2d_light","path":"shaders/sh_2d_light/sh_2d_light.yy",},"order":11,},
{"id":{"name":"node_image_animated","path":"scripts/node_image_animated/node_image_animated.yy",},"order":2,}, {"id":{"name":"node_image_animated","path":"scripts/node_image_animated/node_image_animated.yy",},"order":2,},
{"id":{"name":"s_node_solid","path":"sprites/s_node_solid/s_node_solid.yy",},"order":39,},
{"id":{"name":"string_hexadecimal","path":"scripts/string_hexadecimal/string_hexadecimal.yy",},"order":1,}, {"id":{"name":"string_hexadecimal","path":"scripts/string_hexadecimal/string_hexadecimal.yy",},"order":1,},
{"id":{"name":"surfaceBox","path":"scripts/surfaceBox/surfaceBox.yy",},"order":22,}, {"id":{"name":"surfaceBox","path":"scripts/surfaceBox/surfaceBox.yy",},"order":22,},
{"id":{"name":"s_node_grid","path":"sprites/s_node_grid/s_node_grid.yy",},"order":51,}, {"id":{"name":"s_sort_24","path":"sprites/s_sort_24/s_sort_24.yy",},"order":30,},
{"id":{"name":"s_sort_24","path":"sprites/s_sort_24/s_sort_24.yy",},"order":33,}, {"id":{"name":"s_node_array_length","path":"sprites/s_node_array_length/s_node_array_length.yy",},"order":107,},
{"id":{"name":"s_node_dithering","path":"sprites/s_node_dithering/s_node_dithering.yy",},"order":42,},
{"id":{"name":"string_splice","path":"scripts/string_splice/string_splice.yy",},"order":5,}, {"id":{"name":"string_splice","path":"scripts/string_splice/string_splice.yy",},"order":5,},
{"id":{"name":"sh_seperate_shape_ite","path":"shaders/sh_seperate_shape_ite/sh_seperate_shape_ite.yy",},"order":2,}, {"id":{"name":"sh_seperate_shape_ite","path":"shaders/sh_seperate_shape_ite/sh_seperate_shape_ite.yy",},"order":2,},
{"id":{"name":"s_inspector_text_valign","path":"sprites/s_inspector_text_valign/s_inspector_text_valign.yy",},"order":1,}, {"id":{"name":"s_inspector_text_valign","path":"sprites/s_inspector_text_valign/s_inspector_text_valign.yy",},"order":1,},
{"id":{"name":"o_main","path":"objects/o_main/o_main.yy",},"order":1,}, {"id":{"name":"o_main","path":"objects/o_main/o_main.yy",},"order":1,},
{"id":{"name":"s_loop_16","path":"sprites/s_loop_16/s_loop_16.yy",},"order":39,}, {"id":{"name":"s_loop_16","path":"sprites/s_loop_16/s_loop_16.yy",},"order":36,},
{"id":{"name":"area_function","path":"scripts/area_function/area_function.yy",},"order":2,}, {"id":{"name":"area_function","path":"scripts/area_function/area_function.yy",},"order":2,},
{"id":{"name":"s_node_statistic","path":"sprites/s_node_statistic/s_node_statistic.yy",},"order":3,},
{"id":{"name":"sh_blend_alpha_addition","path":"shaders/sh_blend_alpha_addition/sh_blend_alpha_addition.yy",},"order":13,}, {"id":{"name":"sh_blend_alpha_addition","path":"shaders/sh_blend_alpha_addition/sh_blend_alpha_addition.yy",},"order":13,},
{"id":{"name":"sh_erode","path":"shaders/sh_erode/sh_erode.yy",},"order":20,}, {"id":{"name":"sh_erode","path":"shaders/sh_erode/sh_erode.yy",},"order":20,},
{"id":{"name":"s_node_vec4","path":"sprites/s_node_vec4/s_node_vec4.yy",},"order":107,},
{"id":{"name":"node_pixel_cloud","path":"scripts/node_pixel_cloud/node_pixel_cloud.yy",},"order":19,}, {"id":{"name":"node_pixel_cloud","path":"scripts/node_pixel_cloud/node_pixel_cloud.yy",},"order":19,},
{"id":{"name":"sh_alpha_grey","path":"shaders/sh_alpha_grey/sh_alpha_grey.yy",},"order":9,}, {"id":{"name":"sh_alpha_grey","path":"shaders/sh_alpha_grey/sh_alpha_grey.yy",},"order":9,},
{"id":{"name":"s_transparent","path":"sprites/s_transparent/s_transparent.yy",},"order":1,}, {"id":{"name":"s_transparent","path":"sprites/s_transparent/s_transparent.yy",},"order":1,},
{"id":{"name":"s_timeline_ease","path":"sprites/s_timeline_ease/s_timeline_ease.yy",},"order":5,}, {"id":{"name":"s_timeline_ease","path":"sprites/s_timeline_ease/s_timeline_ease.yy",},"order":5,},
{"id":{"name":"s_node_path","path":"sprites/s_node_path/s_node_path.yy",},"order":79,},
{"id":{"name":"o_dialog_animation","path":"objects/o_dialog_animation/o_dialog_animation.yy",},"order":9,}, {"id":{"name":"o_dialog_animation","path":"objects/o_dialog_animation/o_dialog_animation.yy",},"order":9,},
{"id":{"name":"_f_p0b","path":"fonts/_f_p0b/_f_p0b.yy",},"order":5,}, {"id":{"name":"_f_p0b","path":"fonts/_f_p0b/_f_p0b.yy",},"order":5,},
{"id":{"name":"o_dialog_keyframe_curve","path":"objects/o_dialog_keyframe_curve/o_dialog_keyframe_curve.yy",},"order":22,}, {"id":{"name":"o_dialog_keyframe_curve","path":"objects/o_dialog_keyframe_curve/o_dialog_keyframe_curve.yy",},"order":22,},
{"id":{"name":"s_button_middle","path":"sprites/s_button_middle/s_button_middle.yy",},"order":7,}, {"id":{"name":"s_button_middle","path":"sprites/s_button_middle/s_button_middle.yy",},"order":7,},
{"id":{"name":"s_node_vec2","path":"sprites/s_node_vec2/s_node_vec2.yy",},"order":26,},
{"id":{"name":"s_node_pin_bg_s","path":"sprites/s_node_pin_bg_s/s_node_pin_bg_s.yy",},"order":3,}, {"id":{"name":"s_node_pin_bg_s","path":"sprites/s_node_pin_bg_s/s_node_pin_bg_s.yy",},"order":3,},
{"id":{"name":"node_twirl","path":"scripts/node_twirl/node_twirl.yy",},"order":30,}, {"id":{"name":"node_twirl","path":"scripts/node_twirl/node_twirl.yy",},"order":30,},
{"id":{"name":"s_node_decorner","path":"sprites/s_node_decorner/s_node_decorner.yy",},"order":10,},
{"id":{"name":"s_noti_icon_complete","path":"sprites/s_noti_icon_complete/s_noti_icon_complete.yy",},"order":0,}, {"id":{"name":"s_noti_icon_complete","path":"sprites/s_noti_icon_complete/s_noti_icon_complete.yy",},"order":0,},
{"id":{"name":"s_node_gradient","path":"sprites/s_node_gradient/s_node_gradient.yy",},"order":77,},
{"id":{"name":"s_node_padding","path":"sprites/s_node_padding/s_node_padding.yy",},"order":55,},
{"id":{"name":"sh_blend_add_alpha_adj","path":"shaders/sh_blend_add_alpha_adj/sh_blend_add_alpha_adj.yy",},"order":2,}, {"id":{"name":"sh_blend_add_alpha_adj","path":"shaders/sh_blend_add_alpha_adj/sh_blend_add_alpha_adj.yy",},"order":2,},
{"id":{"name":"node_text","path":"scripts/node_text/node_text.yy",},"order":14,}, {"id":{"name":"node_text","path":"scripts/node_text/node_text.yy",},"order":14,},
{"id":{"name":"s_rotator_knob","path":"sprites/s_rotator_knob/s_rotator_knob.yy",},"order":17,}, {"id":{"name":"s_rotator_knob","path":"sprites/s_rotator_knob/s_rotator_knob.yy",},"order":11,},
{"id":{"name":"panel_collection","path":"scripts/panel_collection/panel_collection.yy",},"order":0,}, {"id":{"name":"panel_collection","path":"scripts/panel_collection/panel_collection.yy",},"order":0,},
{"id":{"name":"lerp_float","path":"scripts/lerp_float/lerp_float.yy",},"order":1,}, {"id":{"name":"lerp_float","path":"scripts/lerp_float/lerp_float.yy",},"order":1,},
{"id":{"name":"vectorRangeBox","path":"scripts/vectorRangeBox/vectorRangeBox.yy",},"order":19,}, {"id":{"name":"vectorRangeBox","path":"scripts/vectorRangeBox/vectorRangeBox.yy",},"order":19,},
{"id":{"name":"s_node_error","path":"sprites/s_node_error/s_node_error.yy",},"order":17,}, {"id":{"name":"s_node_error","path":"sprites/s_node_error/s_node_error.yy",},"order":17,},
{"id":{"name":"sh_draw_vertex_aa","path":"shaders/sh_draw_vertex_aa/sh_draw_vertex_aa.yy",},"order":0,}, {"id":{"name":"sh_draw_vertex_aa","path":"shaders/sh_draw_vertex_aa/sh_draw_vertex_aa.yy",},"order":0,},
{"id":{"name":"sh_outline_only","path":"shaders/sh_outline_only/sh_outline_only.yy",},"order":25,}, {"id":{"name":"sh_outline_only","path":"shaders/sh_outline_only/sh_outline_only.yy",},"order":25,},
{"id":{"name":"s_node_destray","path":"sprites/s_node_destray/s_node_destray.yy",},"order":9,},
{"id":{"name":"node_color_sampler","path":"scripts/node_color_sampler/node_color_sampler.yy",},"order":1,}, {"id":{"name":"node_color_sampler","path":"scripts/node_color_sampler/node_color_sampler.yy",},"order":1,},
{"id":{"name":"s_textbox","path":"sprites/s_textbox/s_textbox.yy",},"order":3,}, {"id":{"name":"s_textbox","path":"sprites/s_textbox/s_textbox.yy",},"order":3,},
{"id":{"name":"ase_reader","path":"scripts/ase_reader/ase_reader.yy",},"order":1,}, {"id":{"name":"ase_reader","path":"scripts/ase_reader/ase_reader.yy",},"order":1,},
{"id":{"name":"node_path","path":"scripts/node_path/node_path.yy",},"order":8,}, {"id":{"name":"node_path","path":"scripts/node_path/node_path.yy",},"order":8,},
{"id":{"name":"s_node_colorize","path":"sprites/s_node_colorize/s_node_colorize.yy",},"order":31,},
{"id":{"name":"s_node_vec_split","path":"sprites/s_node_vec_split/s_node_vec_split.yy",},"order":104,},
{"id":{"name":"sh_seperate_shape_sep","path":"shaders/sh_seperate_shape_sep/sh_seperate_shape_sep.yy",},"order":3,}, {"id":{"name":"sh_seperate_shape_sep","path":"shaders/sh_seperate_shape_sep/sh_seperate_shape_sep.yy",},"order":3,},
{"id":{"name":"s_node_image_sequence","path":"sprites/s_node_image_sequence/s_node_image_sequence.yy",},"order":68,},
{"id":{"name":"s_noti_icon_warning","path":"sprites/s_noti_icon_warning/s_noti_icon_warning.yy",},"order":3,}, {"id":{"name":"s_noti_icon_warning","path":"sprites/s_noti_icon_warning/s_noti_icon_warning.yy",},"order":3,},
{"id":{"name":"s_node_crop","path":"sprites/s_node_crop/s_node_crop.yy",},"order":36,},
{"id":{"name":"sh_content_sampler","path":"shaders/sh_content_sampler/sh_content_sampler.yy",},"order":34,}, {"id":{"name":"sh_content_sampler","path":"shaders/sh_content_sampler/sh_content_sampler.yy",},"order":34,},
{"id":{"name":"s_menu_white","path":"sprites/s_menu_white/s_menu_white.yy",},"order":1,}, {"id":{"name":"s_menu_white","path":"sprites/s_menu_white/s_menu_white.yy",},"order":1,},
{"id":{"name":"s_node_bloom","path":"sprites/s_node_bloom/s_node_bloom.yy",},"order":14,},
{"id":{"name":"node_trail","path":"scripts/node_trail/node_trail.yy",},"order":6,}, {"id":{"name":"node_trail","path":"scripts/node_trail/node_trail.yy",},"order":6,},
{"id":{"name":"s_node_9patch","path":"sprites/s_node_9patch/s_node_9patch.yy",},"order":6,},
{"id":{"name":"byte_reader","path":"scripts/byte_reader/byte_reader.yy",},"order":0,}, {"id":{"name":"byte_reader","path":"scripts/byte_reader/byte_reader.yy",},"order":0,},
{"id":{"name":"_p_dialog","path":"objects/_p_dialog/_p_dialog.yy",},"order":0,}, {"id":{"name":"_p_dialog","path":"objects/_p_dialog/_p_dialog.yy",},"order":0,},
{"id":{"name":"s_node_displace","path":"sprites/s_node_displace/s_node_displace.yy",},"order":41,},
{"id":{"name":"render_data","path":"scripts/render_data/render_data.yy",},"order":2,}, {"id":{"name":"render_data","path":"scripts/render_data/render_data.yy",},"order":2,},
{"id":{"name":"s_node_blur_directional","path":"sprites/s_node_blur_directional/s_node_blur_directional.yy",},"order":8,},
{"id":{"name":"distance_to_line","path":"scripts/distance_to_line/distance_to_line.yy",},"order":0,}, {"id":{"name":"distance_to_line","path":"scripts/distance_to_line/distance_to_line.yy",},"order":0,},
{"id":{"name":"s_node_2d_light","path":"sprites/s_node_2d_light/s_node_2d_light.yy",},"order":1,},
{"id":{"name":"s_canvas_tools_rect","path":"sprites/s_canvas_tools_rect/s_canvas_tools_rect.yy",},"order":5,}, {"id":{"name":"s_canvas_tools_rect","path":"sprites/s_canvas_tools_rect/s_canvas_tools_rect.yy",},"order":5,},
{"id":{"name":"s_file","path":"sprites/s_file/s_file.yy",},"order":7,}, {"id":{"name":"s_file","path":"sprites/s_file/s_file.yy",},"order":7,},
{"id":{"name":"s_node_sprite_sheet","path":"sprites/s_node_sprite_sheet/s_node_sprite_sheet.yy",},"order":38,},
{"id":{"name":"s_control_edit","path":"sprites/s_control_edit/s_control_edit.yy",},"order":2,}, {"id":{"name":"s_control_edit","path":"sprites/s_control_edit/s_control_edit.yy",},"order":2,},
{"id":{"name":"s_scroll_box_arrow","path":"sprites/s_scroll_box_arrow/s_scroll_box_arrow.yy",},"order":32,}, {"id":{"name":"s_node_3d_cube","path":"sprites/s_node_3d_cube/s_node_3d_cube.yy",},"order":116,},
{"id":{"name":"s_scroll_box_arrow","path":"sprites/s_scroll_box_arrow/s_scroll_box_arrow.yy",},"order":29,},
{"id":{"name":"s_node_sampler","path":"sprites/s_node_sampler/s_node_sampler.yy",},"order":46,},
{"id":{"name":"node_animate_curve","path":"scripts/node_animate_curve/node_animate_curve.yy",},"order":0,}, {"id":{"name":"node_animate_curve","path":"scripts/node_animate_curve/node_animate_curve.yy",},"order":0,},
{"id":{"name":"s_node_state","path":"sprites/s_node_state/s_node_state.yy",},"order":7,}, {"id":{"name":"s_node_state","path":"sprites/s_node_state/s_node_state.yy",},"order":7,},
{"id":{"name":"s_node_frame","path":"sprites/s_node_frame/s_node_frame.yy",},"order":45,},
{"id":{"name":"curve_bounce_function","path":"scripts/curve_bounce_function/curve_bounce_function.yy",},"order":1,}, {"id":{"name":"curve_bounce_function","path":"scripts/curve_bounce_function/curve_bounce_function.yy",},"order":1,},
{"id":{"name":"s_anchor_scale_hori","path":"sprites/s_anchor_scale_hori/s_anchor_scale_hori.yy",},"order":9,}, {"id":{"name":"s_anchor_scale_hori","path":"sprites/s_anchor_scale_hori/s_anchor_scale_hori.yy",},"order":9,},
{"id":{"name":"s_node_shape","path":"sprites/s_node_shape/s_node_shape.yy",},"order":91,}, {"id":{"name":"s_node_number","path":"sprites/s_node_number/s_node_number.yy",},"order":12,},
{"id":{"name":"gif_reader","path":"scripts/gif_reader/gif_reader.yy",},"order":4,}, {"id":{"name":"gif_reader","path":"scripts/gif_reader/gif_reader.yy",},"order":4,},
{"id":{"name":"s_circle_16","path":"sprites/s_circle_16/s_circle_16.yy",},"order":43,}, {"id":{"name":"s_circle_16","path":"sprites/s_circle_16/s_circle_16.yy",},"order":40,},
{"id":{"name":"_f_p3","path":"fonts/_f_p3/_f_p3.yy",},"order":7,}, {"id":{"name":"_f_p3","path":"fonts/_f_p3/_f_p3.yy",},"order":7,},
{"id":{"name":"s_loading","path":"sprites/s_loading/s_loading.yy",},"order":37,}, {"id":{"name":"s_loading","path":"sprites/s_loading/s_loading.yy",},"order":34,},
{"id":{"name":"s_node_curve","path":"sprites/s_node_curve/s_node_curve.yy",},"order":37,},
{"id":{"name":"s_node_export","path":"sprites/s_node_export/s_node_export.yy",},"order":44,},
{"id":{"name":"s_node_text","path":"sprites/s_node_text/s_node_text.yy",},"order":96,},
{"id":{"name":"node_group_input","path":"scripts/node_group_input/node_group_input.yy",},"order":1,}, {"id":{"name":"node_group_input","path":"scripts/node_group_input/node_group_input.yy",},"order":1,},
{"id":{"name":"s_icon_split_view","path":"sprites/s_icon_split_view/s_icon_split_view.yy",},"order":3,}, {"id":{"name":"s_icon_split_view","path":"sprites/s_icon_split_view/s_icon_split_view.yy",},"order":3,},
{"id":{"name":"draw_rect_border","path":"scripts/draw_rect_border/draw_rect_border.yy",},"order":6,}, {"id":{"name":"draw_rect_border","path":"scripts/draw_rect_border/draw_rect_border.yy",},"order":6,},
{"id":{"name":"s_node_particle_effector","path":"sprites/s_node_particle_effector/s_node_particle_effector.yy",},"order":78,},
{"id":{"name":"node_composite","path":"scripts/node_composite/node_composite.yy",},"order":4,}, {"id":{"name":"node_composite","path":"scripts/node_composite/node_composite.yy",},"order":4,},
{"id":{"name":"s_node_greyscale","path":"sprites/s_node_greyscale/s_node_greyscale.yy",},"order":74,},
{"id":{"name":"sh_dilate","path":"shaders/sh_dilate/sh_dilate.yy",},"order":22,}, {"id":{"name":"sh_dilate","path":"shaders/sh_dilate/sh_dilate.yy",},"order":22,},
{"id":{"name":"node_image_sequence","path":"scripts/node_image_sequence/node_image_sequence.yy",},"order":1,}, {"id":{"name":"node_image_sequence","path":"scripts/node_image_sequence/node_image_sequence.yy",},"order":1,},
{"id":{"name":"s_control_pin","path":"sprites/s_control_pin/s_control_pin.yy",},"order":7,}, {"id":{"name":"s_control_pin","path":"sprites/s_control_pin/s_control_pin.yy",},"order":7,},
@ -453,35 +453,41 @@
{"id":{"name":"sh_mirror","path":"shaders/sh_mirror/sh_mirror.yy",},"order":10,}, {"id":{"name":"sh_mirror","path":"shaders/sh_mirror/sh_mirror.yy",},"order":10,},
{"id":{"name":"sh_cell_noise_random","path":"shaders/sh_cell_noise_random/sh_cell_noise_random.yy",},"order":6,}, {"id":{"name":"sh_cell_noise_random","path":"shaders/sh_cell_noise_random/sh_cell_noise_random.yy",},"order":6,},
{"id":{"name":"node_iteration_input","path":"scripts/node_iteration_input/node_iteration_input.yy",},"order":2,}, {"id":{"name":"node_iteration_input","path":"scripts/node_iteration_input/node_iteration_input.yy",},"order":2,},
{"id":{"name":"s_inspector_padding","path":"sprites/s_inspector_padding/s_inspector_padding.yy",},"order":8,}, {"id":{"name":"s_inspector_padding","path":"sprites/s_inspector_padding/s_inspector_padding.yy",},"order":6,},
{"id":{"name":"s_node_atlas","path":"sprites/s_node_atlas/s_node_atlas.yy",},"order":106,},
{"id":{"name":"node_normal","path":"scripts/node_normal/node_normal.yy",},"order":1,}, {"id":{"name":"node_normal","path":"scripts/node_normal/node_normal.yy",},"order":1,},
{"id":{"name":"s_node_glow","path":"sprites/s_node_glow/s_node_glow.yy",},"order":78,},
{"id":{"name":"s_node_condition","path":"sprites/s_node_condition/s_node_condition.yy",},"order":11,},
{"id":{"name":"node_array_length","path":"scripts/node_array_length/node_array_length.yy",},"order":13,}, {"id":{"name":"node_array_length","path":"scripts/node_array_length/node_array_length.yy",},"order":13,},
{"id":{"name":"s_icon_curve_connection","path":"sprites/s_icon_curve_connection/s_icon_curve_connection.yy",},"order":1,}, {"id":{"name":"s_icon_curve_connection","path":"sprites/s_icon_curve_connection/s_icon_curve_connection.yy",},"order":1,},
{"id":{"name":"node_erode","path":"scripts/node_erode/node_erode.yy",},"order":31,}, {"id":{"name":"node_erode","path":"scripts/node_erode/node_erode.yy",},"order":31,},
{"id":{"name":"node_wrap_mesh","path":"scripts/node_wrap_mesh/node_wrap_mesh.yy",},"order":7,}, {"id":{"name":"node_wrap_mesh","path":"scripts/node_wrap_mesh/node_wrap_mesh.yy",},"order":7,},
{"id":{"name":"sh_blur_alpha","path":"shaders/sh_blur_alpha/sh_blur_alpha.yy",},"order":2,}, {"id":{"name":"sh_blur_alpha","path":"shaders/sh_blur_alpha/sh_blur_alpha.yy",},"order":2,},
{"id":{"name":"s_node_vec3","path":"sprites/s_node_vec3/s_node_vec3.yy",},"order":106,},
{"id":{"name":"node_sprite_sheet","path":"scripts/node_sprite_sheet/node_sprite_sheet.yy",},"order":0,}, {"id":{"name":"node_sprite_sheet","path":"scripts/node_sprite_sheet/node_sprite_sheet.yy",},"order":0,},
{"id":{"name":"s_node_grid_noise","path":"sprites/s_node_grid_noise/s_node_grid_noise.yy",},"order":52,},
{"id":{"name":"compat_path_array","path":"scripts/compat_path_array/compat_path_array.yy",},"order":0,}, {"id":{"name":"compat_path_array","path":"scripts/compat_path_array/compat_path_array.yy",},"order":0,},
{"id":{"name":"node_export","path":"scripts/node_export/node_export.yy",},"order":1,}, {"id":{"name":"node_export","path":"scripts/node_export/node_export.yy",},"order":1,},
{"id":{"name":"s_timeline_keyframe","path":"sprites/s_timeline_keyframe/s_timeline_keyframe.yy",},"order":2,}, {"id":{"name":"s_timeline_keyframe","path":"sprites/s_timeline_keyframe/s_timeline_keyframe.yy",},"order":2,},
{"id":{"name":"s_toolbar_shadow","path":"sprites/s_toolbar_shadow/s_toolbar_shadow.yy",},"order":6,}, {"id":{"name":"s_toolbar_shadow","path":"sprites/s_toolbar_shadow/s_toolbar_shadow.yy",},"order":6,},
{"id":{"name":"s_node_sepearte_shape","path":"sprites/s_node_sepearte_shape/s_node_sepearte_shape.yy",},"order":89,},
{"id":{"name":"s_group_16","path":"sprites/s_group_16/s_group_16.yy",},"order":12,}, {"id":{"name":"s_group_16","path":"sprites/s_group_16/s_group_16.yy",},"order":12,},
{"id":{"name":"s_ui_panel_bg","path":"sprites/s_ui_panel_bg/s_ui_panel_bg.yy",},"order":1,}, {"id":{"name":"s_ui_panel_bg","path":"sprites/s_ui_panel_bg/s_ui_panel_bg.yy",},"order":1,},
{"id":{"name":"controlPointBox","path":"scripts/controlPointBox/controlPointBox.yy",},"order":21,}, {"id":{"name":"controlPointBox","path":"scripts/controlPointBox/controlPointBox.yy",},"order":21,},
{"id":{"name":"s_grad_blend","path":"sprites/s_grad_blend/s_grad_blend.yy",},"order":34,}, {"id":{"name":"s_grad_blend","path":"sprites/s_grad_blend/s_grad_blend.yy",},"order":31,},
{"id":{"name":"sh_vertex_pt","path":"shaders/sh_vertex_pt/sh_vertex_pt.yy",},"order":2,}, {"id":{"name":"sh_vertex_pt","path":"shaders/sh_vertex_pt/sh_vertex_pt.yy",},"order":2,},
{"id":{"name":"node_color_replacement","path":"scripts/node_color_replacement/node_color_replacement.yy",},"order":4,}, {"id":{"name":"node_color_replacement","path":"scripts/node_color_replacement/node_color_replacement.yy",},"order":4,},
{"id":{"name":"path_reader","path":"scripts/path_reader/path_reader.yy",},"order":5,}, {"id":{"name":"path_reader","path":"scripts/path_reader/path_reader.yy",},"order":5,},
{"id":{"name":"node_blur_contrast","path":"scripts/node_blur_contrast/node_blur_contrast.yy",},"order":36,}, {"id":{"name":"node_blur_contrast","path":"scripts/node_blur_contrast/node_blur_contrast.yy",},"order":36,},
{"id":{"name":"s_fx_pixel","path":"sprites/s_fx_pixel/s_fx_pixel.yy",},"order":0,}, {"id":{"name":"s_fx_pixel","path":"sprites/s_fx_pixel/s_fx_pixel.yy",},"order":0,},
{"id":{"name":"s_padding_link","path":"sprites/s_padding_link/s_padding_link.yy",},"order":31,}, {"id":{"name":"s_padding_link","path":"sprites/s_padding_link/s_padding_link.yy",},"order":28,},
{"id":{"name":"gradients_function","path":"scripts/gradients_function/gradients_function.yy",},"order":0,}, {"id":{"name":"gradients_function","path":"scripts/gradients_function/gradients_function.yy",},"order":0,},
{"id":{"name":"s_refresh_24","path":"sprites/s_refresh_24/s_refresh_24.yy",},"order":29,}, {"id":{"name":"s_node_border","path":"sprites/s_node_border/s_node_border.yy",},"order":101,},
{"id":{"name":"s_node_pin","path":"sprites/s_node_pin/s_node_pin.yy",},"order":16,},
{"id":{"name":"s_node_9patch","path":"sprites/s_node_9patch/s_node_9patch.yy",},"order":112,},
{"id":{"name":"s_refresh_24","path":"sprites/s_refresh_24/s_refresh_24.yy",},"order":26,},
{"id":{"name":"s_node_blur_contrast","path":"sprites/s_node_blur_contrast/s_node_blur_contrast.yy",},"order":102,},
{"id":{"name":"s_node_text","path":"sprites/s_node_text/s_node_text.yy",},"order":35,},
{"id":{"name":"s_node_color_from_rgb","path":"sprites/s_node_color_from_rgb/s_node_color_from_rgb.yy",},"order":94,},
{"id":{"name":"node_scale_algo","path":"scripts/node_scale_algo/node_scale_algo.yy",},"order":43,}, {"id":{"name":"node_scale_algo","path":"scripts/node_scale_algo/node_scale_algo.yy",},"order":43,},
{"id":{"name":"s_timeline_clock","path":"sprites/s_timeline_clock/s_timeline_clock.yy",},"order":0,}, {"id":{"name":"s_timeline_clock","path":"sprites/s_timeline_clock/s_timeline_clock.yy",},"order":42,},
{"id":{"name":"string_cut","path":"scripts/string_cut/string_cut.yy",},"order":4,}, {"id":{"name":"string_cut","path":"scripts/string_cut/string_cut.yy",},"order":4,},
{"id":{"name":"node_3d_prim_cylinder","path":"scripts/node_3d_prim_cylinder/node_3d_prim_cylinder.yy",},"order":7,}, {"id":{"name":"node_3d_prim_cylinder","path":"scripts/node_3d_prim_cylinder/node_3d_prim_cylinder.yy",},"order":7,},
{"id":{"name":"node_grid","path":"scripts/node_grid/node_grid.yy",},"order":20,}, {"id":{"name":"node_grid","path":"scripts/node_grid/node_grid.yy",},"order":20,},
@ -491,32 +497,35 @@
{"id":{"name":"s_icon_reset_when_preview","path":"sprites/s_icon_reset_when_preview/s_icon_reset_when_preview.yy",},"order":1,}, {"id":{"name":"s_icon_reset_when_preview","path":"sprites/s_icon_reset_when_preview/s_icon_reset_when_preview.yy",},"order":1,},
{"id":{"name":"directory_object","path":"scripts/directory_object/directory_object.yy",},"order":3,}, {"id":{"name":"directory_object","path":"scripts/directory_object/directory_object.yy",},"order":3,},
{"id":{"name":"node_dilate","path":"scripts/node_dilate/node_dilate.yy",},"order":34,}, {"id":{"name":"node_dilate","path":"scripts/node_dilate/node_dilate.yy",},"order":34,},
{"id":{"name":"s_node_statistic","path":"sprites/s_node_statistic/s_node_statistic.yy",},"order":115,},
{"id":{"name":"sh_stripe","path":"shaders/sh_stripe/sh_stripe.yy",},"order":10,}, {"id":{"name":"sh_stripe","path":"shaders/sh_stripe/sh_stripe.yy",},"order":10,},
{"id":{"name":"s_search_16","path":"sprites/s_search_16/s_search_16.yy",},"order":20,}, {"id":{"name":"s_search_16","path":"sprites/s_search_16/s_search_16.yy",},"order":20,},
{"id":{"name":"node_3d_prim_cube","path":"scripts/node_3d_prim_cube/node_3d_prim_cube.yy",},"order":5,}, {"id":{"name":"node_3d_prim_cube","path":"scripts/node_3d_prim_cube/node_3d_prim_cube.yy",},"order":5,},
{"id":{"name":"node_3d_transform","path":"scripts/node_3d_transform/node_3d_transform.yy",},"order":2,}, {"id":{"name":"node_3d_transform","path":"scripts/node_3d_transform/node_3d_transform.yy",},"order":2,},
{"id":{"name":"s_node_dilate","path":"sprites/s_node_dilate/s_node_dilate.yy",},"order":40,},
{"id":{"name":"s_node_3d_transform","path":"sprites/s_node_3d_transform/s_node_3d_transform.yy",},"order":5,},
{"id":{"name":"node_display_text","path":"scripts/node_display_text/node_display_text.yy",},"order":3,}, {"id":{"name":"node_display_text","path":"scripts/node_display_text/node_display_text.yy",},"order":3,},
{"id":{"name":"s_prop_gradient","path":"sprites/s_prop_gradient/s_prop_gradient.yy",},"order":11,}, {"id":{"name":"s_prop_gradient","path":"sprites/s_prop_gradient/s_prop_gradient.yy",},"order":7,},
{"id":{"name":"s_kenney","path":"sprites/s_kenney/s_kenney.yy",},"order":0,}, {"id":{"name":"s_kenney","path":"sprites/s_kenney/s_kenney.yy",},"order":0,},
{"id":{"name":"sh_grid_noise","path":"shaders/sh_grid_noise/sh_grid_noise.yy",},"order":8,}, {"id":{"name":"sh_grid_noise","path":"shaders/sh_grid_noise/sh_grid_noise.yy",},"order":8,},
{"id":{"name":"s_node_line","path":"sprites/s_node_line/s_node_line.yy",},"order":62,},
{"id":{"name":"panel_graph","path":"scripts/panel_graph/panel_graph.yy",},"order":1,}, {"id":{"name":"panel_graph","path":"scripts/panel_graph/panel_graph.yy",},"order":1,},
{"id":{"name":"s_folder_add","path":"sprites/s_folder_add/s_folder_add.yy",},"order":9,}, {"id":{"name":"s_folder_add","path":"sprites/s_folder_add/s_folder_add.yy",},"order":9,},
{"id":{"name":"node_counter","path":"scripts/node_counter/node_counter.yy",},"order":1,}, {"id":{"name":"node_counter","path":"scripts/node_counter/node_counter.yy",},"order":1,},
{"id":{"name":"sh_color_picker","path":"shaders/sh_color_picker/sh_color_picker.yy",},"order":3,}, {"id":{"name":"sh_color_picker","path":"shaders/sh_color_picker/sh_color_picker.yy",},"order":3,},
{"id":{"name":"s_node_timeline_preview","path":"sprites/s_node_timeline_preview/s_node_timeline_preview.yy",},"order":32,},
{"id":{"name":"scrollPane","path":"scripts/scrollPane/scrollPane.yy",},"order":14,}, {"id":{"name":"scrollPane","path":"scripts/scrollPane/scrollPane.yy",},"order":14,},
{"id":{"name":"s_node_normal_light","path":"sprites/s_node_normal_light/s_node_normal_light.yy",},"order":18,},
{"id":{"name":"node_transform_single","path":"scripts/node_transform_single/node_transform_single.yy",},"order":1,}, {"id":{"name":"node_transform_single","path":"scripts/node_transform_single/node_transform_single.yy",},"order":1,},
{"id":{"name":"s_canvas_tools_rect_fill","path":"sprites/s_canvas_tools_rect_fill/s_canvas_tools_rect_fill.yy",},"order":6,}, {"id":{"name":"s_canvas_tools_rect_fill","path":"sprites/s_canvas_tools_rect_fill/s_canvas_tools_rect_fill.yy",},"order":6,},
{"id":{"name":"buttonGradient","path":"scripts/buttonGradient/buttonGradient.yy",},"order":4,}, {"id":{"name":"buttonGradient","path":"scripts/buttonGradient/buttonGradient.yy",},"order":4,},
{"id":{"name":"s_node_texture_map","path":"sprites/s_node_texture_map/s_node_texture_map.yy",},"order":34,},
{"id":{"name":"s_node_level_selector","path":"sprites/s_node_level_selector/s_node_level_selector.yy",},"order":63,},
{"id":{"name":"s_noti_icon_file_save","path":"sprites/s_noti_icon_file_save/s_noti_icon_file_save.yy",},"order":4,}, {"id":{"name":"s_noti_icon_file_save","path":"sprites/s_noti_icon_file_save/s_noti_icon_file_save.yy",},"order":4,},
{"id":{"name":"random_function","path":"scripts/random_function/random_function.yy",},"order":3,}, {"id":{"name":"random_function","path":"scripts/random_function/random_function.yy",},"order":3,},
{"id":{"name":"s_node_sampler","path":"sprites/s_node_sampler/s_node_sampler.yy",},"order":85,}, {"id":{"name":"s_circle_12","path":"sprites/s_circle_12/s_circle_12.yy",},"order":41,},
{"id":{"name":"s_circle_12","path":"sprites/s_circle_12/s_circle_12.yy",},"order":44,},
{"id":{"name":"s_workspace_1","path":"sprites/s_workspace_1/s_workspace_1.yy",},"order":1,}, {"id":{"name":"s_workspace_1","path":"sprites/s_workspace_1/s_workspace_1.yy",},"order":1,},
{"id":{"name":"s_node_input","path":"sprites/s_node_input/s_node_input.yy",},"order":66,},
{"id":{"name":"string_decimal","path":"scripts/string_decimal/string_decimal.yy",},"order":0,}, {"id":{"name":"string_decimal","path":"scripts/string_decimal/string_decimal.yy",},"order":0,},
{"id":{"name":"_f_h3","path":"fonts/_f_h3/_f_h3.yy",},"order":3,}, {"id":{"name":"_f_h3","path":"fonts/_f_h3/_f_h3.yy",},"order":3,},
{"id":{"name":"s_node_math","path":"sprites/s_node_math/s_node_math.yy",},"order":61,},
{"id":{"name":"node_iteration_index","path":"scripts/node_iteration_index/node_iteration_index.yy",},"order":4,}, {"id":{"name":"node_iteration_index","path":"scripts/node_iteration_index/node_iteration_index.yy",},"order":4,},
{"id":{"name":"node_greyscale","path":"scripts/node_greyscale/node_greyscale.yy",},"order":19,}, {"id":{"name":"node_greyscale","path":"scripts/node_greyscale/node_greyscale.yy",},"order":19,},
{"id":{"name":"node_color_adjustment","path":"scripts/node_color_adjustment/node_color_adjustment.yy",},"order":5,}, {"id":{"name":"node_color_adjustment","path":"scripts/node_color_adjustment/node_color_adjustment.yy",},"order":5,},
@ -524,106 +533,107 @@
{"id":{"name":"rectangle_collision","path":"scripts/rectangle_collision/rectangle_collision.yy",},"order":0,}, {"id":{"name":"rectangle_collision","path":"scripts/rectangle_collision/rectangle_collision.yy",},"order":0,},
{"id":{"name":"sh_level","path":"shaders/sh_level/sh_level.yy",},"order":7,}, {"id":{"name":"sh_level","path":"shaders/sh_level/sh_level.yy",},"order":7,},
{"id":{"name":"panel_menu","path":"scripts/panel_menu/panel_menu.yy",},"order":2,}, {"id":{"name":"panel_menu","path":"scripts/panel_menu/panel_menu.yy",},"order":2,},
{"id":{"name":"s_node_color_from_hsv","path":"sprites/s_node_color_from_hsv/s_node_color_from_hsv.yy",},"order":26,},
{"id":{"name":"draw_line_round","path":"scripts/draw_line_round/draw_line_round.yy",},"order":4,}, {"id":{"name":"draw_line_round","path":"scripts/draw_line_round/draw_line_round.yy",},"order":4,},
{"id":{"name":"s_node_image","path":"sprites/s_node_image/s_node_image.yy",},"order":54,},
{"id":{"name":"vectorBox","path":"scripts/vectorBox/vectorBox.yy",},"order":18,}, {"id":{"name":"vectorBox","path":"scripts/vectorBox/vectorBox.yy",},"order":18,},
{"id":{"name":"sh_blend_normal_dim","path":"shaders/sh_blend_normal_dim/sh_blend_normal_dim.yy",},"order":10,}, {"id":{"name":"sh_blend_normal_dim","path":"shaders/sh_blend_normal_dim/sh_blend_normal_dim.yy",},"order":10,},
{"id":{"name":"s_anchor_rotate","path":"sprites/s_anchor_rotate/s_anchor_rotate.yy",},"order":1,}, {"id":{"name":"s_anchor_rotate","path":"sprites/s_anchor_rotate/s_anchor_rotate.yy",},"order":1,},
{"id":{"name":"s_node_warp","path":"sprites/s_node_warp/s_node_warp.yy",},"order":108,},
{"id":{"name":"s_timeline_obj_halign","path":"sprites/s_timeline_obj_halign/s_timeline_obj_halign.yy",},"order":4,}, {"id":{"name":"s_timeline_obj_halign","path":"sprites/s_timeline_obj_halign/s_timeline_obj_halign.yy",},"order":4,},
{"id":{"name":"s_node_normal_light","path":"sprites/s_node_normal_light/s_node_normal_light.yy",},"order":72,}, {"id":{"name":"s_node_canvas","path":"sprites/s_node_canvas/s_node_canvas.yy",},"order":15,},
{"id":{"name":"sh_remove_black","path":"shaders/sh_remove_black/sh_remove_black.yy",},"order":37,}, {"id":{"name":"sh_remove_black","path":"shaders/sh_remove_black/sh_remove_black.yy",},"order":37,},
{"id":{"name":"path_parser","path":"scripts/path_parser/path_parser.yy",},"order":3,}, {"id":{"name":"path_parser","path":"scripts/path_parser/path_parser.yy",},"order":3,},
{"id":{"name":"s_node_unicode","path":"sprites/s_node_unicode/s_node_unicode.yy",},"order":28,},
{"id":{"name":"s_node_color_from_hsv","path":"sprites/s_node_color_from_hsv/s_node_color_from_hsv.yy",},"order":95,},
{"id":{"name":"s_icon_minimap","path":"sprites/s_icon_minimap/s_icon_minimap.yy",},"order":0,}, {"id":{"name":"s_icon_minimap","path":"sprites/s_icon_minimap/s_icon_minimap.yy",},"order":0,},
{"id":{"name":"node_area","path":"scripts/node_area/node_area.yy",},"order":11,}, {"id":{"name":"node_area","path":"scripts/node_area/node_area.yy",},"order":11,},
{"id":{"name":"s_icon_spalsh_show_on_start","path":"sprites/s_icon_spalsh_show_on_start/s_icon_spalsh_show_on_start.yy",},"order":12,}, {"id":{"name":"s_node_posterize","path":"sprites/s_node_posterize/s_node_posterize.yy",},"order":48,},
{"id":{"name":"s_icon_splash_show_on_start","path":"sprites/s_icon_splash_show_on_start/s_icon_splash_show_on_start.yy",},"order":12,},
{"id":{"name":"s_node_counter","path":"sprites/s_node_counter/s_node_counter.yy",},"order":87,},
{"id":{"name":"s_node_image_sequence_to_anim","path":"sprites/s_node_image_sequence_to_anim/s_node_image_sequence_to_anim.yy",},"order":13,},
{"id":{"name":"draw_UI_scale","path":"scripts/draw_UI_scale/draw_UI_scale.yy",},"order":8,},
{"id":{"name":"path_function","path":"scripts/path_function/path_function.yy",},"order":4,}, {"id":{"name":"path_function","path":"scripts/path_function/path_function.yy",},"order":4,},
{"id":{"name":"s_node_RGB","path":"sprites/s_node_RGB/s_node_RGB.yy",},"order":47,},
{"id":{"name":"s_node_export","path":"sprites/s_node_export/s_node_export.yy",},"order":80,},
{"id":{"name":"node_grey_to_alpha","path":"scripts/node_grey_to_alpha/node_grey_to_alpha.yy",},"order":23,}, {"id":{"name":"node_grey_to_alpha","path":"scripts/node_grey_to_alpha/node_grey_to_alpha.yy",},"order":23,},
{"id":{"name":"sh_blend_add","path":"shaders/sh_blend_add/sh_blend_add.yy",},"order":7,}, {"id":{"name":"sh_blend_add","path":"shaders/sh_blend_add/sh_blend_add.yy",},"order":7,},
{"id":{"name":"s_fill_16","path":"sprites/s_fill_16/s_fill_16.yy",},"order":35,}, {"id":{"name":"s_fill_16","path":"sprites/s_fill_16/s_fill_16.yy",},"order":32,},
{"id":{"name":"node_de_stray","path":"scripts/node_de_stray/node_de_stray.yy",},"order":27,}, {"id":{"name":"node_de_stray","path":"scripts/node_de_stray/node_de_stray.yy",},"order":27,},
{"id":{"name":"s_add_node_view","path":"sprites/s_add_node_view/s_add_node_view.yy",},"order":0,}, {"id":{"name":"s_add_node_view","path":"sprites/s_add_node_view/s_add_node_view.yy",},"order":0,},
{"id":{"name":"s_node_pin_bg","path":"sprites/s_node_pin_bg/s_node_pin_bg.yy",},"order":0,}, {"id":{"name":"s_node_pin_bg","path":"sprites/s_node_pin_bg/s_node_pin_bg.yy",},"order":0,},
{"id":{"name":"s_icon_accept_24","path":"sprites/s_icon_accept_24/s_icon_accept_24.yy",},"order":14,}, {"id":{"name":"s_icon_accept_24","path":"sprites/s_icon_accept_24/s_icon_accept_24.yy",},"order":14,},
{"id":{"name":"sh_channel_G","path":"shaders/sh_channel_G/sh_channel_G.yy",},"order":13,}, {"id":{"name":"sh_channel_G","path":"shaders/sh_channel_G/sh_channel_G.yy",},"order":13,},
{"id":{"name":"s_node_pin_bg_active","path":"sprites/s_node_pin_bg_active/s_node_pin_bg_active.yy",},"order":1,}, {"id":{"name":"s_node_pin_bg_active","path":"sprites/s_node_pin_bg_active/s_node_pin_bg_active.yy",},"order":1,},
{"id":{"name":"s_node_dilate","path":"sprites/s_node_dilate/s_node_dilate.yy",},"order":84,},
{"id":{"name":"node_collection","path":"scripts/node_collection/node_collection.yy",},"order":0,}, {"id":{"name":"node_collection","path":"scripts/node_collection/node_collection.yy",},"order":0,},
{"id":{"name":"s_node_scale_algo","path":"sprites/s_node_scale_algo/s_node_scale_algo.yy",},"order":87,},
{"id":{"name":"node_value","path":"scripts/node_value/node_value.yy",},"order":6,}, {"id":{"name":"node_value","path":"scripts/node_value/node_value.yy",},"order":6,},
{"id":{"name":"draw_line_curve","path":"scripts/draw_line_curve/draw_line_curve.yy",},"order":5,}, {"id":{"name":"draw_line_curve","path":"scripts/draw_line_curve/draw_line_curve.yy",},"order":5,},
{"id":{"name":"s_splice_draw","path":"sprites/s_splice_draw/s_splice_draw.yy",},"order":6,}, {"id":{"name":"s_splice_draw","path":"sprites/s_splice_draw/s_splice_draw.yy",},"order":6,},
{"id":{"name":"sh_blend_screen","path":"shaders/sh_blend_screen/sh_blend_screen.yy",},"order":3,}, {"id":{"name":"sh_blend_screen","path":"shaders/sh_blend_screen/sh_blend_screen.yy",},"order":3,},
{"id":{"name":"s_node_blur_contrast","path":"sprites/s_node_blur_contrast/s_node_blur_contrast.yy",},"order":16,},
{"id":{"name":"node_group_output","path":"scripts/node_group_output/node_group_output.yy",},"order":2,}, {"id":{"name":"node_group_output","path":"scripts/node_group_output/node_group_output.yy",},"order":2,},
{"id":{"name":"s_node_scatter","path":"sprites/s_node_scatter/s_node_scatter.yy",},"order":43,},
{"id":{"name":"s_node_junctions_array","path":"sprites/s_node_junctions_array/s_node_junctions_array.yy",},"order":1,}, {"id":{"name":"s_node_junctions_array","path":"sprites/s_node_junctions_array/s_node_junctions_array.yy",},"order":1,},
{"id":{"name":"_f_p2","path":"fonts/_f_p2/_f_p2.yy",},"order":4,}, {"id":{"name":"_f_p2","path":"fonts/_f_p2/_f_p2.yy",},"order":4,},
{"id":{"name":"s_button_path_not_found_icon","path":"sprites/s_button_path_not_found_icon/s_button_path_not_found_icon.yy",},"order":41,}, {"id":{"name":"s_button_path_not_found_icon","path":"sprites/s_button_path_not_found_icon/s_button_path_not_found_icon.yy",},"order":38,},
{"id":{"name":"button","path":"scripts/button/button.yy",},"order":2,}, {"id":{"name":"button","path":"scripts/button/button.yy",},"order":2,},
{"id":{"name":"sh_blur_gaussian","path":"shaders/sh_blur_gaussian/sh_blur_gaussian.yy",},"order":1,}, {"id":{"name":"sh_blur_gaussian","path":"shaders/sh_blur_gaussian/sh_blur_gaussian.yy",},"order":1,},
{"id":{"name":"s_node_3d_cylinder","path":"sprites/s_node_3d_cylinder/s_node_3d_cylinder.yy",},"order":115,},
{"id":{"name":"s_node_vec_split","path":"sprites/s_node_vec_split/s_node_vec_split.yy",},"order":27,},
{"id":{"name":"paddingBox","path":"scripts/paddingBox/paddingBox.yy",},"order":9,}, {"id":{"name":"paddingBox","path":"scripts/paddingBox/paddingBox.yy",},"order":9,},
{"id":{"name":"_f_p1","path":"fonts/_f_p1/_f_p1.yy",},"order":1,}, {"id":{"name":"_f_p1","path":"fonts/_f_p1/_f_p1.yy",},"order":1,},
{"id":{"name":"s_button_left","path":"sprites/s_button_left/s_button_left.yy",},"order":5,}, {"id":{"name":"s_button_left","path":"sprites/s_button_left/s_button_left.yy",},"order":5,},
{"id":{"name":"curve_bezier_function","path":"scripts/curve_bezier_function/curve_bezier_function.yy",},"order":0,}, {"id":{"name":"curve_bezier_function","path":"scripts/curve_bezier_function/curve_bezier_function.yy",},"order":0,},
{"id":{"name":"s_node_image_animation","path":"sprites/s_node_image_animation/s_node_image_animation.yy",},"order":70,},
{"id":{"name":"draw_line_dashed","path":"scripts/draw_line_dashed/draw_line_dashed.yy",},"order":7,}, {"id":{"name":"draw_line_dashed","path":"scripts/draw_line_dashed/draw_line_dashed.yy",},"order":7,},
{"id":{"name":"s_node_glow","path":"sprites/s_node_glow/s_node_glow.yy",},"order":46,},
{"id":{"name":"regex","path":"scripts/regex/regex.yy",},"order":0,}, {"id":{"name":"regex","path":"scripts/regex/regex.yy",},"order":0,},
{"id":{"name":"node_invert","path":"scripts/node_invert/node_invert.yy",},"order":41,}, {"id":{"name":"node_invert","path":"scripts/node_invert/node_invert.yy",},"order":41,},
{"id":{"name":"s_node_condition","path":"sprites/s_node_condition/s_node_condition.yy",},"order":33,}, {"id":{"name":"s_node_path","path":"sprites/s_node_path/s_node_path.yy",},"order":51,},
{"id":{"name":"s_node_frame_bg_active","path":"sprites/s_node_frame_bg_active/s_node_frame_bg_active.yy",},"order":11,}, {"id":{"name":"s_node_frame_bg_active","path":"sprites/s_node_frame_bg_active/s_node_frame_bg_active.yy",},"order":11,},
{"id":{"name":"node_level","path":"scripts/node_level/node_level.yy",},"order":12,}, {"id":{"name":"node_level","path":"scripts/node_level/node_level.yy",},"order":12,},
{"id":{"name":"s_node_scale","path":"sprites/s_node_scale/s_node_scale.yy",},"order":86,},
{"id":{"name":"o_dialog_warning","path":"objects/o_dialog_warning/o_dialog_warning.yy",},"order":14,}, {"id":{"name":"o_dialog_warning","path":"objects/o_dialog_warning/o_dialog_warning.yy",},"order":14,},
{"id":{"name":"string_scale","path":"scripts/string_scale/string_scale.yy",},"order":6,}, {"id":{"name":"string_scale","path":"scripts/string_scale/string_scale.yy",},"order":6,},
{"id":{"name":"s_node_image","path":"sprites/s_node_image/s_node_image.yy",},"order":71,},
{"id":{"name":"node_value_processor","path":"scripts/node_value_processor/node_value_processor.yy",},"order":1,}, {"id":{"name":"node_value_processor","path":"scripts/node_value_processor/node_value_processor.yy",},"order":1,},
{"id":{"name":"s_node_posterize","path":"sprites/s_node_posterize/s_node_posterize.yy",},"order":83,},
{"id":{"name":"s_node_compose","path":"sprites/s_node_compose/s_node_compose.yy",},"order":32,},
{"id":{"name":"sample_projects","path":"scripts/sample_projects/sample_projects.yy",},"order":6,}, {"id":{"name":"sample_projects","path":"scripts/sample_projects/sample_projects.yy",},"order":6,},
{"id":{"name":"s_path_tools_add","path":"sprites/s_path_tools_add/s_path_tools_add.yy",},"order":4,}, {"id":{"name":"s_path_tools_add","path":"sprites/s_path_tools_add/s_path_tools_add.yy",},"order":4,},
{"id":{"name":"s_ui_scrollbar","path":"sprites/s_ui_scrollbar/s_ui_scrollbar.yy",},"order":3,}, {"id":{"name":"s_ui_scrollbar","path":"sprites/s_ui_scrollbar/s_ui_scrollbar.yy",},"order":3,},
{"id":{"name":"load_function","path":"scripts/load_function/load_function.yy",},"order":2,}, {"id":{"name":"load_function","path":"scripts/load_function/load_function.yy",},"order":2,},
{"id":{"name":"ds_map","path":"scripts/ds_map/ds_map.yy",},"order":0,}, {"id":{"name":"ds_map","path":"scripts/ds_map/ds_map.yy",},"order":0,},
{"id":{"name":"s_node_3d_transform","path":"sprites/s_node_3d_transform/s_node_3d_transform.yy",},"order":113,},
{"id":{"name":"s_node_output","path":"sprites/s_node_output/s_node_output.yy",},"order":56,},
{"id":{"name":"sh_atlas","path":"shaders/sh_atlas/sh_atlas.yy",},"order":31,}, {"id":{"name":"sh_atlas","path":"shaders/sh_atlas/sh_atlas.yy",},"order":31,},
{"id":{"name":"node_scale","path":"scripts/node_scale/node_scale.yy",},"order":9,}, {"id":{"name":"node_scale","path":"scripts/node_scale/node_scale.yy",},"order":9,},
{"id":{"name":"s_prop_selecting","path":"sprites/s_prop_selecting/s_prop_selecting.yy",},"order":6,}, {"id":{"name":"s_prop_selecting","path":"sprites/s_prop_selecting/s_prop_selecting.yy",},"order":4,},
{"id":{"name":"sh_displace","path":"shaders/sh_displace/sh_displace.yy",},"order":7,}, {"id":{"name":"sh_displace","path":"shaders/sh_displace/sh_displace.yy",},"order":7,},
{"id":{"name":"node_group","path":"scripts/node_group/node_group.yy",},"order":0,}, {"id":{"name":"node_group","path":"scripts/node_group/node_group.yy",},"order":0,},
{"id":{"name":"rangeBox","path":"scripts/rangeBox/rangeBox.yy",},"order":10,}, {"id":{"name":"rangeBox","path":"scripts/rangeBox/rangeBox.yy",},"order":10,},
{"id":{"name":"node_frame","path":"scripts/node_frame/node_frame.yy",},"order":1,}, {"id":{"name":"node_frame","path":"scripts/node_frame/node_frame.yy",},"order":1,},
{"id":{"name":"s_node_canvas","path":"sprites/s_node_canvas/s_node_canvas.yy",},"order":20,}, {"id":{"name":"s_node_scale_algo","path":"sprites/s_node_scale_algo/s_node_scale_algo.yy",},"order":44,},
{"id":{"name":"s_node_input","path":"sprites/s_node_input/s_node_input.yy",},"order":60,},
{"id":{"name":"node_bw","path":"scripts/node_bw/node_bw.yy",},"order":20,}, {"id":{"name":"node_bw","path":"scripts/node_bw/node_bw.yy",},"order":20,},
{"id":{"name":"sh_de_corner","path":"shaders/sh_de_corner/sh_de_corner.yy",},"order":15,}, {"id":{"name":"sh_de_corner","path":"shaders/sh_de_corner/sh_de_corner.yy",},"order":15,},
{"id":{"name":"s_node_iterator_index","path":"sprites/s_node_iterator_index/s_node_iterator_index.yy",},"order":14,},
{"id":{"name":"node_de_corner","path":"scripts/node_de_corner/node_de_corner.yy",},"order":25,}, {"id":{"name":"node_de_corner","path":"scripts/node_de_corner/node_de_corner.yy",},"order":25,},
{"id":{"name":"preferences","path":"scripts/preferences/preferences.yy",},"order":5,}, {"id":{"name":"preferences","path":"scripts/preferences/preferences.yy",},"order":5,},
{"id":{"name":"sh_solid","path":"shaders/sh_solid/sh_solid.yy",},"order":15,}, {"id":{"name":"sh_solid","path":"shaders/sh_solid/sh_solid.yy",},"order":15,},
{"id":{"name":"s_node_noise_aniso","path":"sprites/s_node_noise_aniso/s_node_noise_aniso.yy",},"order":68,},
{"id":{"name":"timer_function","path":"scripts/timer_function/timer_function.yy",},"order":0,}, {"id":{"name":"timer_function","path":"scripts/timer_function/timer_function.yy",},"order":0,},
{"id":{"name":"s_node_loop","path":"sprites/s_node_loop/s_node_loop.yy",},"order":113,}, {"id":{"name":"animation_curve","path":"scripts/animation_curve/animation_curve.yy",},"order":19,},
{"id":{"name":"s_node_color_replace","path":"sprites/s_node_color_replace/s_node_color_replace.yy",},"order":91,},
{"id":{"name":"sh_mask","path":"shaders/sh_mask/sh_mask.yy",},"order":36,}, {"id":{"name":"sh_mask","path":"shaders/sh_mask/sh_mask.yy",},"order":36,},
{"id":{"name":"s_node_image_sequence","path":"sprites/s_node_image_sequence/s_node_image_sequence.yy",},"order":57,},
{"id":{"name":"node_alpha_to_grey","path":"scripts/node_alpha_to_grey/node_alpha_to_grey.yy",},"order":21,}, {"id":{"name":"node_alpha_to_grey","path":"scripts/node_alpha_to_grey/node_alpha_to_grey.yy",},"order":21,},
{"id":{"name":"o_dialog_preference","path":"objects/o_dialog_preference/o_dialog_preference.yy",},"order":15,}, {"id":{"name":"o_dialog_preference","path":"objects/o_dialog_preference/o_dialog_preference.yy",},"order":15,},
{"id":{"name":"node_wrap","path":"scripts/node_wrap/node_wrap.yy",},"order":2,}, {"id":{"name":"node_wrap","path":"scripts/node_wrap/node_wrap.yy",},"order":2,},
{"id":{"name":"s_node_iterator_index","path":"sprites/s_node_iterator_index/s_node_iterator_index.yy",},"order":62,},
{"id":{"name":"o_dialog_about","path":"objects/o_dialog_about/o_dialog_about.yy",},"order":13,}, {"id":{"name":"o_dialog_about","path":"objects/o_dialog_about/o_dialog_about.yy",},"order":13,},
{"id":{"name":"s_node_bg","path":"sprites/s_node_bg/s_node_bg.yy",},"order":1,}, {"id":{"name":"s_node_bg","path":"sprites/s_node_bg/s_node_bg.yy",},"order":1,},
{"id":{"name":"dialog_management","path":"scripts/dialog_management/dialog_management.yy",},"order":5,}, {"id":{"name":"dialog_management","path":"scripts/dialog_management/dialog_management.yy",},"order":5,},
{"id":{"name":"node_channels","path":"scripts/node_channels/node_channels.yy",},"order":24,}, {"id":{"name":"node_channels","path":"scripts/node_channels/node_channels.yy",},"order":24,},
{"id":{"name":"execute_shell_simple_ext","path":"extensions/execute_shell_simple_ext/execute_shell_simple_ext.yy",},"order":5,}, {"id":{"name":"execute_shell_simple_ext","path":"extensions/execute_shell_simple_ext/execute_shell_simple_ext.yy",},"order":5,},
{"id":{"name":"node_solid","path":"scripts/node_solid/node_solid.yy",},"order":18,}, {"id":{"name":"node_solid","path":"scripts/node_solid/node_solid.yy",},"order":18,},
{"id":{"name":"s_node_character","path":"sprites/s_node_character/s_node_character.yy",},"order":21,},
{"id":{"name":"node_iteration_output","path":"scripts/node_iteration_output/node_iteration_output.yy",},"order":3,}, {"id":{"name":"node_iteration_output","path":"scripts/node_iteration_output/node_iteration_output.yy",},"order":3,},
{"id":{"name":"debug","path":"scripts/debug/debug.yy",},"order":9,}, {"id":{"name":"debug","path":"scripts/debug/debug.yy",},"order":9,},
{"id":{"name":"o_dialog_assetbox","path":"objects/o_dialog_assetbox/o_dialog_assetbox.yy",},"order":26,}, {"id":{"name":"o_dialog_assetbox","path":"objects/o_dialog_assetbox/o_dialog_assetbox.yy",},"order":26,},
{"id":{"name":"s_node_BW","path":"sprites/s_node_BW/s_node_BW.yy",},"order":19,},
{"id":{"name":"s_node_wiggler","path":"sprites/s_node_wiggler/s_node_wiggler.yy",},"order":110,},
{"id":{"name":"s_node_image_sheet","path":"sprites/s_node_image_sheet/s_node_image_sheet.yy",},"order":59,},
{"id":{"name":"node_lerp","path":"scripts/node_lerp/node_lerp.yy",},"order":12,}, {"id":{"name":"node_lerp","path":"scripts/node_lerp/node_lerp.yy",},"order":12,},
{"id":{"name":"node_texture_remap","path":"scripts/node_texture_remap/node_texture_remap.yy",},"order":32,}, {"id":{"name":"node_texture_remap","path":"scripts/node_texture_remap/node_texture_remap.yy",},"order":32,},
{"id":{"name":"s_node_noise_aniso","path":"sprites/s_node_noise_aniso/s_node_noise_aniso.yy",},"order":59,},
{"id":{"name":"sh_perlin_tiled","path":"shaders/sh_perlin_tiled/sh_perlin_tiled.yy",},"order":2,}, {"id":{"name":"sh_perlin_tiled","path":"shaders/sh_perlin_tiled/sh_perlin_tiled.yy",},"order":2,},
{"id":{"name":"sh_time_remap","path":"shaders/sh_time_remap/sh_time_remap.yy",},"order":33,}, {"id":{"name":"sh_time_remap","path":"shaders/sh_time_remap/sh_time_remap.yy",},"order":33,},
{"id":{"name":"s_node_array","path":"sprites/s_node_array/s_node_array.yy",},"order":10,},
{"id":{"name":"s_icon_center_canvas","path":"sprites/s_icon_center_canvas/s_icon_center_canvas.yy",},"order":0,}, {"id":{"name":"s_icon_center_canvas","path":"sprites/s_icon_center_canvas/s_icon_center_canvas.yy",},"order":0,},
{"id":{"name":"rm_main","path":"rooms/rm_main/rm_main.yy",},"order":0,}, {"id":{"name":"rm_main","path":"rooms/rm_main/rm_main.yy",},"order":0,},
], ],
@ -649,6 +659,7 @@
{"roomId":{"name":"rm_main","path":"rooms/rm_main/rm_main.yy",},}, {"roomId":{"name":"rm_main","path":"rooms/rm_main/rm_main.yy",},},
], ],
"Folders": [ "Folders": [
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"animation_curve","folderPath":"folders/animation_curve.yy","order":14,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"collection","folderPath":"folders/collection.yy","order":12,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"collection","folderPath":"folders/collection.yy","order":12,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"dialog","folderPath":"folders/dialog.yy","order":5,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"dialog","folderPath":"folders/dialog.yy","order":5,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"selector","folderPath":"folders/dialog/selector.yy","order":23,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"selector","folderPath":"folders/dialog/selector.yy","order":23,},
@ -707,6 +718,7 @@
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"dialog","folderPath":"folders/sprites/dialog.yy","order":8,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"dialog","folderPath":"folders/sprites/dialog.yy","order":8,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"add node","folderPath":"folders/sprites/dialog/add node.yy","order":5,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"add node","folderPath":"folders/sprites/dialog/add node.yy","order":5,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"icon","folderPath":"folders/sprites/icon.yy","order":1,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"icon","folderPath":"folders/sprites/icon.yy","order":1,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"workspace","folderPath":"folders/sprites/icon/workspace.yy","order":44,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"inspector","folderPath":"folders/sprites/inspector.yy","order":4,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"inspector","folderPath":"folders/sprites/inspector.yy","order":4,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"meta","folderPath":"folders/sprites/meta.yy","order":0,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"meta","folderPath":"folders/sprites/meta.yy","order":0,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"nodes","folderPath":"folders/sprites/nodes.yy","order":6,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"nodes","folderPath":"folders/sprites/nodes.yy","order":6,},
@ -724,7 +736,6 @@
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"tools","folderPath":"folders/sprites/tools.yy","order":10,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"tools","folderPath":"folders/sprites/tools.yy","order":10,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"canvas","folderPath":"folders/sprites/tools/canvas.yy","order":3,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"canvas","folderPath":"folders/sprites/tools/canvas.yy","order":3,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"widget","folderPath":"folders/sprites/widget.yy","order":7,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"widget","folderPath":"folders/sprites/widget.yy","order":7,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"workspace","folderPath":"folders/sprites/workspace.yy","order":3,},
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"widgets","folderPath":"folders/widgets.yy","order":6,}, {"resourceType":"GMFolder","resourceVersion":"1.0","name":"widgets","folderPath":"folders/widgets.yy","order":6,},
], ],
"AudioGroups": [ "AudioGroups": [
@ -787,12 +798,6 @@
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"5 Particle and effectors.pxc","CopyToMask":-1,"filePath":"datafiles/Getting started",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"5 Particle and effectors.pxc","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"4 Looping operation.pxc","CopyToMask":-1,"filePath":"datafiles/Getting started",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"4 Looping operation.pxc","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"2 animation.pxc","CopyToMask":-1,"filePath":"datafiles/Getting started",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"2 animation.pxc","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"5 Particle and effectors.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"2 animation.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"1 image import.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"0 introduction.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"3 Group and collection.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"4 Looping operation.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"Assets.zip","CopyToMask":-1,"filePath":"datafiles",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"Assets.zip","CopyToMask":-1,"filePath":"datafiles",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"Collections.zip","CopyToMask":-1,"filePath":"datafiles",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"Collections.zip","CopyToMask":-1,"filePath":"datafiles",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"tile_0126.png","CopyToMask":-1,"filePath":"datafiles/Getting started",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"tile_0126.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
@ -820,6 +825,12 @@
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"NotoSans-Regular.ttf","CopyToMask":-1,"filePath":"datafiles/data/fonts",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"NotoSans-Regular.ttf","CopyToMask":-1,"filePath":"datafiles/data/fonts",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"NotoSans-SemiBold.ttf","CopyToMask":-1,"filePath":"datafiles/data/fonts",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"NotoSans-SemiBold.ttf","CopyToMask":-1,"filePath":"datafiles/data/fonts",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"NotoSans-Thin.ttf","CopyToMask":-1,"filePath":"datafiles/data/fonts",}, {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"NotoSans-Thin.ttf","CopyToMask":-1,"filePath":"datafiles/data/fonts",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"5 Particle and effectors.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"2 animation.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"3 Group and collection.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"4 Looping operation.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"0 introduction.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
{"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"1 image import.png","CopyToMask":-1,"filePath":"datafiles/Getting started",},
], ],
"MetaData": { "MetaData": {
"IDEVersion": "2022.9.0.49", "IDEVersion": "2022.9.0.49",

View file

@ -0,0 +1,21 @@
{
"resourceType": "GMAnimCurve",
"resourceVersion": "1.2",
"name": "ac_flash",
"function": 1,
"channels": [
{"resourceType":"GMAnimCurveChannel","resourceVersion":"1.0","name":"curve1","colour":4290799884,"visible":true,"points":[
{"th0":-0.1,"th1":0.1,"tv0":0.0,"tv1":0.0,"x":0.0,"y":0.0,},
{"th0":1.0,"th1":-1.0,"tv0":0.0,"tv1":0.0,"x":0.16603054,"y":0.517304,},
{"th0":-0.054580152,"th1":0.14541985,"tv0":0.0,"tv1":0.0,"x":0.33015275,"y":0.24000001,},
{"th0":1.0,"th1":-1.0,"tv0":0.0,"tv1":0.0,"x":0.50763357,"y":0.7874107,},
{"th0":1.0,"th1":-1.0,"tv0":0.0,"tv1":0.0,"x":0.66412216,"y":0.24862753,},
{"th0":1.0,"th1":-1.0,"tv0":0.0,"tv1":0.0,"x":0.86641234,"y":0.92553616,},
{"th0":-0.1,"th1":0.1,"tv0":0.0,"tv1":0.0,"x":1.0,"y":1.0,},
],},
],
"parent": {
"name": "animation_curve",
"path": "folders/animation_curve.yy",
},
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
fonts/_f_h3/_f_h3.old.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

1214
fonts/_f_h3/_f_h3.old.yy Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View file

@ -24,7 +24,7 @@
"path": "texturegroups/Default", "path": "texturegroups/Default",
}, },
"ascenderOffset": 0, "ascenderOffset": 0,
"ascender": 0, "ascender": 26,
"glyphs": { "glyphs": {
"32": {"x":2,"y":2,"w":7,"h":35,"character":32,"shift":7,"offset":0,}, "32": {"x":2,"y":2,"w":7,"h":35,"character":32,"shift":7,"offset":0,},
"33": {"x":47,"y":76,"w":5,"h":35,"character":33,"shift":9,"offset":2,}, "33": {"x":47,"y":76,"w":5,"h":35,"character":33,"shift":9,"offset":2,},

View file

@ -17,8 +17,8 @@
dialog_resiz_my = 0; dialog_resiz_my = 0;
dialog_w_min = 320; dialog_w_min = 320;
dialog_h_min = 320; dialog_h_min = 320;
dialog_w_max = 1000; dialog_w_max = WIN_W;
dialog_h_max = 1000; dialog_h_max = WIN_H;
onResize = -1; onResize = -1;
draggable = true; draggable = true;
@ -39,7 +39,7 @@
dialog_dragging = false; dialog_dragging = false;
} }
if(FOCUS == self) { if(sFOCUS) {
if(destroy_on_escape && keyboard_check_pressed(vk_escape)) if(destroy_on_escape && keyboard_check_pressed(vk_escape))
instance_destroy(self); instance_destroy(self);
if(mouse_check_button_pressed(mb_left)) { if(mouse_check_button_pressed(mb_left)) {

View file

@ -1,5 +1,5 @@
/// @description init /// @description init
if(HOVER == self) HOVER = noone; if(sHOVER) HOVER = noone;
if(FOCUS == self) setFocus(noone); if(sFOCUS) setFocus(noone);
TEXTBOX_ACTIVE = noone; TEXTBOX_ACTIVE = noone;

View file

@ -35,7 +35,7 @@ if !ready exit;
dialog_x + dialog_w, dialog_y + dialog_h) < 12) { dialog_x + dialog_w, dialog_y + dialog_h) < 12) {
CURSOR = cr_size_we; CURSOR = cr_size_we;
if(FOCUS == self && mouse_check_button_pressed(mb_left)) { if(sFOCUS && mouse_check_button_pressed(mb_left)) {
dialog_resizing |= 1 << 0; dialog_resizing |= 1 << 0;
dialog_resiz_sw = dialog_w; dialog_resiz_sw = dialog_w;
dialog_resiz_mx = mouse_mx; dialog_resiz_mx = mouse_mx;
@ -51,7 +51,7 @@ if !ready exit;
else else
CURSOR = cr_size_ns; CURSOR = cr_size_ns;
if(FOCUS == self && mouse_check_button_pressed(mb_left)) { if(sFOCUS && mouse_check_button_pressed(mb_left)) {
dialog_resizing |= 1 << 1; dialog_resizing |= 1 << 1;
dialog_resiz_sh = dialog_h; dialog_resiz_sh = dialog_h;
dialog_resiz_mx = mouse_mx; dialog_resiz_mx = mouse_mx;

View file

@ -2,10 +2,10 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 500; dialog_w = ui(500);
dialog_h = 600; dialog_h = ui(600);
thank_h = dialog_h - 220; thank_h = dialog_h - ui(220);
destroy_on_click_out = true; destroy_on_click_out = true;
#endregion #endregion
@ -17,8 +17,8 @@ event_inherited();
[ "gif importer\nWindow commands\nExecute shell simple", "YellowAfterLife" ], [ "gif importer\nWindow commands\nExecute shell simple", "YellowAfterLife" ],
] ]
sc_thank = new scrollPane(dialog_w - 64, thank_h, function(_y, _m) { sc_thank = new scrollPane(dialog_w - ui(64), thank_h, function(_y, _m) {
var cx = (dialog_w - 64) / 2; var cx = (dialog_w - ui(64)) / 2;
var _h = _y; var _h = _y;
var yy = _y; var yy = _y;
draw_clear_alpha(c_ui_blue_grey, 0); draw_clear_alpha(c_ui_blue_grey, 0);
@ -28,7 +28,7 @@ event_inherited();
draw_text(cx, yy, "Special Thanks"); draw_text(cx, yy, "Special Thanks");
for( var i = 0; i < array_length(credits); i++ ) { for( var i = 0; i < array_length(credits); i++ ) {
yy += 40; yy += line_height(, 8);
draw_set_font(f_p2); draw_set_font(f_p2);
draw_set_color(c_ui_blue_grey); draw_set_color(c_ui_blue_grey);
draw_text(cx, yy, credits[i][0]); draw_text(cx, yy, credits[i][0]);
@ -37,13 +37,16 @@ event_inherited();
draw_set_font(f_p0b); draw_set_font(f_p0b);
draw_set_color(c_ui_blue_white); draw_set_color(c_ui_blue_white);
draw_text(cx, yy, credits[i][1]); draw_text(cx, yy, credits[i][1]);
yy += ui(8);
} }
draw_set_font(f_p0); draw_set_font(f_p0);
draw_set_color(c_ui_blue_ltgrey); draw_set_color(c_ui_blue_ltgrey);
yy += 40; yy += ui(40);
draw_text(cx, yy, "Made with GameMaker Studio 2, Abode Illustrator,\nAseprite"); draw_text_ext(cx, yy, "Made with GameMaker Studio 2, Abode Illustrator, Aseprite", -1, sc_thank.w - ui(16));
yy += ui(32);
return yy - _h + 32; return yy - _h + ui(32);
}) })
#endregion #endregion

View file

@ -3,23 +3,24 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion #endregion
#region about #region about
var cx = dialog_x + dialog_w / 2; var cx = dialog_x + dialog_w / 2;
var ly = dialog_y + ui(96);
draw_sprite(icon_64, 0, cx, dialog_y + 56); draw_sprite_ui_uniform(icon_64, 0, cx, dialog_y + ui(56));
draw_set_text(f_h3, fa_center, fa_top, c_ui_orange); draw_set_text(f_h3, fa_center, fa_top, c_ui_orange);
draw_text(cx, dialog_y + 96, "Pixel Composer"); draw_text(cx, ly, "Pixel Composer");
ly += line_height();
draw_set_text(f_p0, fa_center, fa_top, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_center, fa_top, c_ui_blue_ltgrey);
draw_text(cx, dialog_y + 132, "2021, MakhamDev"); draw_text(cx, ly, "2021, MakhamDev");
var thank_y = dialog_y + 180; var thank_y = dialog_y + ui(188);
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(24), thank_y - ui(8), dialog_w - ui(48), thank_h + ui(16));
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + 24, thank_y - 8, dialog_w - 48, thank_h + 16); sc_thank.active = sFOCUS;
sc_thank.active = FOCUS == self; sc_thank.draw(dialog_x + ui(32), thank_y);
sc_thank.draw(dialog_x + 32, thank_y);
#endregion #endregion

View file

@ -3,8 +3,8 @@ event_inherited();
#region data #region data
destroy_on_click_out = true; destroy_on_click_out = true;
dialog_w = 290; dialog_w = ui(290);
dialog_h = 192; dialog_h = ui(172);
paths = ""; paths = "";
is_dir = false; is_dir = false;
@ -16,7 +16,7 @@ event_inherited();
is_dir = directory_exists(path); is_dir = directory_exists(path);
if(is_dir) { if(is_dir) {
dialog_h += 96; dialog_h += ui(96);
} }
} }

View file

@ -3,23 +3,23 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Import multiple images"); draw_text(dialog_x + ui(24), dialog_y + ui(16), "Import multiple images");
#endregion #endregion
#region nodes #region nodes
draw_sprite_stretched(s_ui_panel_bg, 1, dialog_x + 16, dialog_y + 44, dialog_w - 32, 132); draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(16), dialog_y + ui(44), dialog_w - ui(32), ui(112));
var grid_size = 64; var grid_size = ui(64);
var grid_width = 80; var grid_space = ui(16);
var grid_space = 16; var grid_width = grid_size + grid_space;
for(var i = 0; i < array_length(nodes); i++) { for(var i = 0; i < array_length(nodes); i++) {
var _node = nodes[i]; var _node = nodes[i];
var xx = dialog_x + 16 + 16 + i * (grid_size + grid_space); var xx = dialog_x + ui(32) + i * grid_width;
var yy = dialog_y + 44 + 16; var yy = dialog_y + ui(60);
PANEL_GRAPH.stepBegin(); PANEL_GRAPH.stepBegin();
var nx = PANEL_GRAPH.mouse_grid_x; var nx = PANEL_GRAPH.mouse_grid_x;
@ -35,7 +35,7 @@ if !ready exit;
for( var i = 0; i < array_length(path_arr); i++ ) { for( var i = 0; i < array_length(path_arr); i++ ) {
var path = path_arr[i]; var path = path_arr[i];
Node_create_Image_path(nx, ny, path); Node_create_Image_path(nx, ny, path);
ny += 160; ny += ui(160);
} }
break; break;
case 1 : case 1 :
@ -50,30 +50,30 @@ if !ready exit;
} }
} }
draw_sprite(_node.spr, 0, xx + grid_size / 2, yy + grid_size / 2); draw_sprite_ui_uniform(_node.spr, 0, xx + grid_size / 2, yy + grid_size / 2);
draw_set_text(f_p1, fa_center, fa_top, c_white); draw_set_text(f_p2, fa_center, fa_top, c_white);
draw_text_ext(xx + grid_size / 2, yy + grid_size + 4, _node.name, -1, grid_width); draw_text(xx + grid_size / 2, yy + grid_size + 4, _node.name);
} }
#endregion #endregion
#region directory option #region directory option
if(is_dir) { if(is_dir) {
var dir_y = dialog_y + 188; var dir_y = dialog_y + ui(172);
cb_recursive.active = FOCUS == self; cb_recursive.active = sFOCUS;
cb_recursive.hover = HOVER == self; cb_recursive.hover = sHOVER;
cb_recursive.draw(dialog_x + dialog_w - 48, dir_y, dir_recursive, [mouse_mx, mouse_my]); cb_recursive.draw(dialog_x + dialog_w - ui(48), dir_y, dir_recursive, mouse_ui);
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 20, dir_y + 14, "Recursive"); draw_text(dialog_x + ui(24), dir_y + ui(14), "Recursive");
dir_y += 40; dir_y += ui(40);
tb_filter.active = FOCUS == self; tb_filter.active = sFOCUS;
tb_filter.hover = HOVER == self; tb_filter.hover = sHOVER;
tb_filter.draw(dialog_x + 100, dir_y, dialog_w - 100 - 20, 36, dir_filter, [mouse_mx, mouse_my]); tb_filter.draw(dialog_x + ui(100), dir_y, dialog_w - ui(120), ui(36), dir_filter, mouse_ui);
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 20, dir_y + 18, "Filter"); draw_text(dialog_x + ui(24), dir_y + ui(18), "Filter");
} }
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_add_multiple_images",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,8 +25,8 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -30,8 +34,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_add_multiple_images",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -9,6 +9,11 @@ event_inherited();
node_called = noone; node_called = noone;
junction_hovering = noone; junction_hovering = noone;
if(ADD_NODE_W == -1 || ADD_NODE_H == -1) {
ADD_NODE_W = ui(532);
ADD_NODE_H = ui(346);
}
dialog_w = ADD_NODE_W; dialog_w = ADD_NODE_W;
dialog_h = ADD_NODE_H; dialog_h = ADD_NODE_H;
@ -92,11 +97,11 @@ event_inherited();
} }
} }
catagory_pane = new scrollPane(132, dialog_h - 66, function(_y, _m) { catagory_pane = new scrollPane(ui(132), dialog_h - ui(66), function(_y, _m) {
draw_clear_alpha(c_ui_blue_black, 0); draw_clear_alpha(c_ui_blue_black, 0);
var hh = 0; var hh = 0;
var hg = 28; var hg = ui(28);
var key = ds_map_find_first(ALL_NODES); var key = ds_map_find_first(ALL_NODES);
var cnt = PANEL_GRAPH.getCurrentContext(); var cnt = PANEL_GRAPH.getCurrentContext();
var context = cnt == -1? "" : instanceof(cnt); var context = cnt == -1? "" : instanceof(cnt);
@ -117,9 +122,9 @@ event_inherited();
} }
if(key == page_key) { if(key == page_key) {
draw_sprite_stretched(s_ui_panel_bg, 0, 0, _y + hh, 132, hg); draw_sprite_stretched(s_ui_panel_bg, 0, 0, _y + hh, ui(132), hg);
} else if(point_in_rectangle(_m[0], _m[1], 0, _y + hh, 100, _y + hh + hg - 1)) { } else if(point_in_rectangle(_m[0], _m[1], 0, _y + hh, ui(100), _y + hh + hg - 1)) {
draw_sprite_stretched_ext(s_ui_panel_bg, 0, 0, _y + hh + 3, 103, hg - 6, c_white, 0.75); draw_sprite_stretched_ext(s_ui_panel_bg, 0, 0, _y + hh + ui(3), ui(103), hg - ui(6), c_white, 0.75);
if(mouse_check_button(mb_left)) { if(mouse_check_button(mb_left)) {
page_key = key; page_key = key;
ADD_NODE_PAGE = key; ADD_NODE_PAGE = key;
@ -129,14 +134,14 @@ event_inherited();
} }
} }
draw_text(8, _y + hh + hg / 2, key); draw_text(ui(8), _y + hh + hg / 2, key);
hh += hg; hh += hg;
} }
return hh; return hh;
}); });
content_pane = new scrollPane(dialog_w - 144, dialog_h - 66, function(_y, _m) { content_pane = new scrollPane(dialog_w - ui(144), dialog_h - ui(66), function(_y, _m) {
draw_clear_alpha(c_white, 0); draw_clear_alpha(c_white, 0);
var nodes = page; var nodes = page;
@ -144,9 +149,9 @@ event_inherited();
var hh = 0; var hh = 0;
if(ADD_NODE_MODE == 0) { if(ADD_NODE_MODE == 0) {
var grid_size = 64; var grid_size = ui(64);
var grid_width = 80; var grid_width = ui(80);
var grid_space = 12; var grid_space = ui(12);
var col = floor(content_pane.surface_w / (grid_width + grid_space)); var col = floor(content_pane.surface_w / (grid_width + grid_space));
var row = ceil(node_count / col); var row = ceil(node_count / col);
var yy = _y + grid_space; var yy = _y + grid_space;
@ -177,7 +182,7 @@ event_inherited();
var spr_x = _boxx + grid_size / 2; var spr_x = _boxx + grid_size / 2;
var spr_y = yy + grid_size / 2; var spr_y = yy + grid_size / 2;
if(variable_struct_exists(_node, "spr") && sprite_exists(_node.spr)) if(variable_struct_exists(_node, "spr") && sprite_exists(_node.spr))
draw_sprite(_node.spr, 0, spr_x, spr_y); draw_sprite_ui_uniform(_node.spr, 0, spr_x, spr_y);
draw_set_text(f_p2, fa_center, fa_top, c_white); draw_set_text(f_p2, fa_center, fa_top, c_white);
name_height = max(name_height, string_height_ext(_node.name, -1, grid_width) + 8); name_height = max(name_height, string_height_ext(_node.name, -1, grid_width) + 8);
@ -190,7 +195,7 @@ event_inherited();
} }
} else if(ADD_NODE_MODE == 1) { } else if(ADD_NODE_MODE == 1) {
var list_width = content_pane.surface_w; var list_width = content_pane.surface_w;
var list_height = 28; var list_height = ui(28);
var yy = _y + list_height / 2; var yy = _y + list_height / 2;
hh += list_height; hh += list_height;
@ -200,25 +205,25 @@ event_inherited();
if(i % 2) { if(i % 2) {
BLEND_ADD BLEND_ADD
draw_sprite_stretched_ext(s_node_bg, 0, 4, yy, list_width - 8, list_height, c_white, 0.2); draw_sprite_stretched_ext(s_node_bg, 0, ui(4), yy, list_width - ui(8), list_height, c_white, 0.2);
BLEND_NORMAL BLEND_NORMAL
} }
if(point_in_rectangle(_m[0], _m[1], 0, yy, list_width, yy + list_height - 1)) { if(point_in_rectangle(_m[0], _m[1], 0, yy, list_width, yy + list_height - 1)) {
draw_sprite_stretched(s_node_active, 0, 4, yy, list_width - 8, list_height); draw_sprite_stretched(s_node_active, 0, ui(4), yy, list_width - ui(8), list_height);
if(mouse_check_button_pressed(mb_left)) if(mouse_check_button_pressed(mb_left))
buildNode(_node); buildNode(_node);
} }
var spr_x = list_height / 2 + 8 + 6; var spr_x = list_height / 2 + ui(14);
var spr_y = yy + list_height / 2; var spr_y = yy + list_height / 2;
if(variable_struct_exists(_node, "spr") && sprite_exists(_node.spr)) { if(variable_struct_exists(_node, "spr") && sprite_exists(_node.spr)) {
var ss = (list_height - 8) / max(sprite_get_width(_node.spr), sprite_get_height(_node.spr)); var ss = (list_height - ui(8)) / max(sprite_get_width(_node.spr), sprite_get_height(_node.spr));
draw_sprite_ext(_node.spr, 0, spr_x, spr_y, ss, ss, 0, c_white, 1); draw_sprite_ext(_node.spr, 0, spr_x, spr_y, ss, ss, 0, c_white, 1);
} }
draw_set_text(f_p2, fa_left, fa_center, c_white); draw_set_text(f_p2, fa_left, fa_center, c_white);
draw_text(list_height + 8 + 12, yy + list_height / 2, _node.name); draw_text(list_height + ui(20), yy + list_height / 2, _node.name);
yy += list_height; yy += list_height;
hh += list_height; hh += list_height;
@ -231,15 +236,15 @@ event_inherited();
#region resize #region resize
dialog_resizable = true; dialog_resizable = true;
dialog_w_min = 200; dialog_w_min = ui(200);
dialog_h_min = 120; dialog_h_min = ui(120);
dialog_w_max = 800; dialog_w_max = ui(800);
dialog_h_max = 640; dialog_h_max = ui(640);
onResize = function() { onResize = function() {
catagory_pane.resize(132, dialog_h - 66); catagory_pane.resize(ui(132), dialog_h - ui(66));
content_pane.resize(dialog_w - 144, dialog_h - 66); content_pane.resize(dialog_w - ui(144), dialog_h - ui(66));
search_pane.resize(dialog_w - 40, dialog_h - 66); search_pane.resize(dialog_w - ui(40), dialog_h - ui(66));
ADD_NODE_W = dialog_w; ADD_NODE_W = dialog_w;
ADD_NODE_H = dialog_h; ADD_NODE_H = dialog_h;
@ -298,16 +303,16 @@ event_inherited();
searchCollection(search_list, search_string, false); searchCollection(search_list, search_string, false);
} }
search_pane = new scrollPane(dialog_w - 40, dialog_h - 66, function(_y, _m) { search_pane = new scrollPane(dialog_w - ui(40), dialog_h - ui(66), function(_y, _m) {
draw_clear_alpha(c_white, 0); draw_clear_alpha(c_white, 0);
var amo = ds_list_size(search_list); var amo = ds_list_size(search_list);
var hh = 0; var hh = 0;
if(ADD_NODE_MODE == 0) { if(ADD_NODE_MODE == 0) {
var grid_size = 64; var grid_size = ui(64);
var grid_width = 80; var grid_width = ui(80);
var grid_space = 16; var grid_space = ui(16);
var col = floor(search_pane.surface_w / (grid_width + grid_space)); var col = floor(search_pane.surface_w / (grid_width + grid_space));
var yy = _y + grid_space; var yy = _y + grid_space;
var index = 0; var index = 0;
@ -338,7 +343,7 @@ event_inherited();
var _si = current_time * PREF_MAP[? "collection_preview_speed"] / 3000; var _si = current_time * PREF_MAP[? "collection_preview_speed"] / 3000;
var _sw = sprite_get_width(_node.spr); var _sw = sprite_get_width(_node.spr);
var _sh = sprite_get_height(_node.spr); var _sh = sprite_get_height(_node.spr);
var _ss = 32 / max(_sw, _sh); var _ss = ui(32) / max(_sw, _sh);
var _sox = sprite_get_xoffset(_node.spr); var _sox = sprite_get_xoffset(_node.spr);
var _soy = sprite_get_yoffset(_node.spr); var _soy = sprite_get_yoffset(_node.spr);
@ -353,7 +358,7 @@ event_inherited();
draw_set_text(f_p2, fa_center, fa_top, c_white); draw_set_text(f_p2, fa_center, fa_top, c_white);
var txt = _node.name; var txt = _node.name;
name_height = max(name_height, string_height_ext(txt, -1, grid_width) + 8); name_height = max(name_height, string_height_ext(txt, -1, grid_width) + ui(8));
draw_text_ext(_boxx + grid_size / 2, yy + grid_size + 4, txt, -1, grid_width); draw_text_ext(_boxx + grid_size / 2, yy + grid_size + 4, txt, -1, grid_width);
if(point_in_rectangle(_m[0], _m[1], _nx, yy, _nx + grid_width, yy + grid_size)) { if(point_in_rectangle(_m[0], _m[1], _nx, yy, _nx + grid_width, yy + grid_size)) {
@ -381,7 +386,7 @@ event_inherited();
} }
} else if(ADD_NODE_MODE == 1) { } else if(ADD_NODE_MODE == 1) {
var list_width = search_pane.surface_w; var list_width = search_pane.surface_w;
var list_height = 28; var list_height = ui(28);
var yy = _y + list_height / 2; var yy = _y + list_height / 2;
hh += list_height; hh += list_height;
@ -396,7 +401,7 @@ event_inherited();
if(i % 2) { if(i % 2) {
BLEND_ADD BLEND_ADD
draw_sprite_stretched_ext(s_node_bg, 0, 4, yy, list_width - 8, list_height, c_white, 0.2); draw_sprite_stretched_ext(s_node_bg, 0, ui(4), yy, list_width - ui(8), list_height, c_white, 0.2);
BLEND_NORMAL BLEND_NORMAL
} }
@ -404,12 +409,12 @@ event_inherited();
var _si = current_time * PREF_MAP[? "collection_preview_speed"] / 3000; var _si = current_time * PREF_MAP[? "collection_preview_speed"] / 3000;
var _sw = sprite_get_width(_node.spr); var _sw = sprite_get_width(_node.spr);
var _sh = sprite_get_height(_node.spr); var _sh = sprite_get_height(_node.spr);
var _ss = (list_height - 8) / max(_sw, _sh); var _ss = (list_height - ui(8)) / max(_sw, _sh);
var _sox = sprite_get_xoffset(_node.spr); var _sox = sprite_get_xoffset(_node.spr);
var _soy = sprite_get_yoffset(_node.spr); var _soy = sprite_get_yoffset(_node.spr);
var _sx = list_height / 2 + 8 + 6; var _sx = list_height / 2 + ui(14);
var _sy = yy + list_height / 2; var _sy = yy + list_height / 2;
_sx += _sw * _ss / 2 - _sox * _ss; _sx += _sw * _ss / 2 - _sox * _ss;
_sy += _sh * _ss / 2 - _soy * _ss; _sy += _sh * _ss / 2 - _soy * _ss;
@ -418,7 +423,7 @@ event_inherited();
} }
draw_set_text(f_p2, fa_left, fa_center, c_white); draw_set_text(f_p2, fa_left, fa_center, c_white);
draw_text(list_height + 8 + 12, yy + list_height / 2, _node.name); draw_text(list_height + ui(20), yy + list_height / 2, _node.name);
if(point_in_rectangle(_m[0], _m[1], 0, yy, list_width, yy + list_height - 1)) { if(point_in_rectangle(_m[0], _m[1], 0, yy, list_width, yy + list_height - 1)) {
node_selecting = i; node_selecting = i;
@ -427,7 +432,7 @@ event_inherited();
} }
if(node_selecting == i) { if(node_selecting == i) {
draw_sprite_stretched(s_node_active, 0, 4, yy, list_width - 8, list_height); draw_sprite_stretched(s_node_active, 0, ui(4), yy, list_width - ui(8), list_height);
if(keyboard_check_pressed(vk_enter)) if(keyboard_check_pressed(vk_enter))
buildNode(_node, _param); buildNode(_node, _param);
} }

View file

@ -3,7 +3,7 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion #endregion
@ -15,26 +15,26 @@ if !ready exit;
tb_search.hover = false; tb_search.hover = false;
tb_search.sprite_index = 1; tb_search.sprite_index = 1;
catagory_pane.active = FOCUS == self; catagory_pane.active = sFOCUS;
catagory_pane.draw(dialog_x + 14, dialog_y + 52); catagory_pane.draw(dialog_x + ui(14), dialog_y + ui(52));
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + 120, dialog_y + 52, dialog_w - 120 - 14, dialog_h - 66); draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(120), dialog_y + ui(52), dialog_w - ui(134), dialog_h - ui(66));
content_pane.active = FOCUS == self; content_pane.active = sFOCUS;
content_pane.draw(dialog_x + 120, dialog_y + 52); content_pane.draw(dialog_x + ui(120), dialog_y + ui(52));
node_selecting = 0; node_selecting = 0;
} else { } else {
tb_search.focus = true; tb_search.focus = true;
tb_search.hover = true; tb_search.hover = true;
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + 14, dialog_y + 52, dialog_w - 28, dialog_h - 66); draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(14), dialog_y + ui(52), dialog_w - ui(28), dialog_h - ui(66));
search_pane.active = FOCUS == self; search_pane.active = sFOCUS;
search_pane.draw(dialog_x + 16, dialog_y + 52); search_pane.draw(dialog_x + ui(16), dialog_y + ui(52));
} }
tb_search.draw(dialog_x + 14, dialog_y + 14, dialog_w - 64, 32, search_string, [mouse_mx, mouse_my]); tb_search.draw(dialog_x + ui(14), dialog_y + ui(14), dialog_w - ui(64), ui(32), search_string, mouse_ui);
var bx = dialog_x + dialog_w - 44; var bx = dialog_x + dialog_w - ui(44);
var by = dialog_y + 16; var by = dialog_y + ui(16);
var b = buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, var b = buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER,
ADD_NODE_MODE == 1? "List view" : "Grid view", s_add_node_view, ADD_NODE_MODE, c_ui_blue_grey); ADD_NODE_MODE == 1? "List view" : "Grid view", s_add_node_view, ADD_NODE_MODE, c_ui_blue_grey);
if(b == 2) if(b == 2)
ADD_NODE_MODE = !ADD_NODE_MODE; ADD_NODE_MODE = !ADD_NODE_MODE;

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 368; dialog_w = ui(368);
dialog_h = 120; dialog_h = ui(120);
destroy_on_click_out = true; destroy_on_click_out = true;
#endregion #endregion

View file

@ -3,30 +3,30 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Animation scaler"); draw_text(dialog_x + ui(24), dialog_y + ui(16), "Animation scaler");
#endregion #endregion
#region scaler #region scaler
var yy = dialog_y + 44; var yy = dialog_y + ui(44);
tb_scale_frame.active = FOCUS == self; tb_scale_frame.active = sFOCUS;
tb_scale_frame.hover = HOVER == self; tb_scale_frame.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Target frame length"); draw_text(dialog_x + ui(32), yy + ui(17), "Target frame length");
var tb_x = dialog_x + 200; var tb_x = dialog_x + ui(200);
tb_scale_frame.draw(tb_x, yy, 96, 34, scale_to, [mouse_mx, mouse_my]); tb_scale_frame.draw(tb_x, yy, ui(96), TEXTBOX_HEIGHT, scale_to, mouse_ui);
var sx1 = tb_x + 96; var sx1 = tb_x + ui(96);
draw_set_text(f_p1, fa_right, fa_top, c_ui_blue_grey); draw_set_text(f_p1, fa_right, fa_top, c_ui_blue_grey);
draw_text(sx1, yy + 34 + 4, "Scaling factor: " + string(scale_to / ANIMATOR.frames_total)); draw_text(sx1, yy + ui(38), "Scaling factor: " + string(scale_to / ANIMATOR.frames_total));
var bx = sx1 + 16; var bx = sx1 + ui(16);
var by = yy; var by = yy;
if(buttonInstant(s_button_lime, bx, by, 34, 34, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_icon_accept_24, 0, c_ui_blue_black) == 2) { if(buttonInstant(s_button_lime, bx, by, ui(34), ui(34), mouse_ui, sFOCUS, sHOVER, "", s_icon_accept_24, 0, c_ui_blue_black) == 2) {
var fac = scale_to / ANIMATOR.frames_total; var fac = scale_to / ANIMATOR.frames_total;
var key = ds_map_find_first(NODE_MAP); var key = ds_map_find_first(NODE_MAP);
repeat(ds_map_size(NODE_MAP)) { repeat(ds_map_size(NODE_MAP)) {

View file

@ -4,8 +4,8 @@ event_inherited();
#region data #region data
anchor = ANCHOR.right | ANCHOR.bottom; anchor = ANCHOR.right | ANCHOR.bottom;
dialog_w = 368; dialog_w = ui(368);
dialog_h = 188; dialog_h = ui(188);
destroy_on_click_out = true; destroy_on_click_out = true;
#endregion #endregion

View file

@ -3,33 +3,33 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Animation"); draw_text(dialog_x + ui(24), dialog_y + ui(16), "Animation");
#endregion #endregion
#region draw #region draw
var yy = dialog_y + 44; var yy = dialog_y + ui(44);
tb_length.active = FOCUS == self; tb_length.active = sFOCUS;
tb_length.hover = HOVER == self; tb_length.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Animation length"); draw_text(dialog_x + ui(32), yy + ui(17), "Animation length");
tb_length.draw(dialog_x + dialog_w - 24 - 96, yy, 96, 34, ANIMATOR.frames_total, [mouse_mx, mouse_my]); tb_length.draw(dialog_x + dialog_w - ui(120), yy, ui(96), TEXTBOX_HEIGHT, ANIMATOR.frames_total, mouse_ui);
yy += 44; yy += ui(44);
tb_framerate.active = FOCUS == self; tb_framerate.active = sFOCUS;
tb_framerate.hover = HOVER == self; tb_framerate.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Preview frame rate"); draw_text(dialog_x + ui(32), yy + ui(17), "Preview frame rate");
tb_framerate.draw(dialog_x + dialog_w - 24 - 96, yy, 96, 34, ANIMATOR.framerate, [mouse_mx, mouse_my]); tb_framerate.draw(dialog_x + dialog_w - ui(120), yy, ui(96), TEXTBOX_HEIGHT, ANIMATOR.framerate, mouse_ui);
yy += 44; yy += ui(44);
eb_playback.active = FOCUS == self; eb_playback.active = sFOCUS;
eb_playback.hover = HOVER == self; eb_playback.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "On end"); draw_text(dialog_x + ui(32), yy + ui(17), "On end");
eb_playback.draw(dialog_x + dialog_w - 24 - 128, yy, 128, 34, ANIMATOR.playback, [mouse_mx, mouse_my]); eb_playback.draw(dialog_x + dialog_w - ui(152), yy, ui(128), TEXTBOX_HEIGHT, ANIMATOR.playback, mouse_ui);
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_animation",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,8 +25,8 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -30,8 +34,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_animation",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -7,16 +7,16 @@ event_inherited();
target = noone; target = noone;
dialog_w = 608; dialog_w = ui(608);
dialog_h = 320; dialog_h = ui(320);
anchor = ANCHOR.top | ANCHOR.right; anchor = ANCHOR.top | ANCHOR.right;
dialog_resizable = true; dialog_resizable = true;
dialog_w_min = 200; dialog_w_min = ui(200);
dialog_h_min = 120; dialog_h_min = ui(120);
dialog_w_max = 640; dialog_w_max = ui(640);
dialog_h_max = 480; dialog_h_max = ui(480);
#endregion #endregion
#region context #region context
@ -40,15 +40,15 @@ event_inherited();
#endregion #endregion
#region surface #region surface
folderW = 180; folderW = ui(180);
content_w = dialog_w - 32 - folderW; content_w = dialog_w - ui(32) - folderW;
content_h = dialog_h - 32; content_h = dialog_h - ui(32);
function onResize() { function onResize() {
content_w = dialog_w - 32 - folderW; content_w = dialog_w - ui(32) - folderW;
content_h = dialog_h - 32; content_h = dialog_h - ui(32);
contentPane.resize(content_w, content_h); contentPane.resize(content_w, content_h);
folderPane.resize(folderW - 8, content_h - 32); folderPane.resize(folderW - ui(16), content_h - ui(32));
} }
contentPane = new scrollPane(content_w, content_h, function(_y, _m) { contentPane = new scrollPane(content_w, content_h, function(_y, _m) {
@ -59,9 +59,9 @@ event_inherited();
var hh = 0; var hh = 0;
var frame = current_time * PREF_MAP[? "collection_preview_speed"] / 8000; var frame = current_time * PREF_MAP[? "collection_preview_speed"] / 8000;
var grid_size = 64; var grid_size = ui(64);
var img_size = grid_size - 16; var img_size = grid_size - ui(16);
var grid_space = 12; var grid_space = ui(12);
var col = max(1, floor(content_w / (grid_size + grid_space))); var col = max(1, floor(content_w / (grid_size + grid_space)));
var row = ceil(amo / col); var row = ceil(amo / col);
var yy = _y + grid_space; var yy = _y + grid_space;
@ -106,16 +106,16 @@ event_inherited();
return hh; return hh;
}); });
folderPane = new scrollPane(folderW - 8, content_h - 48, function(_y, _m) { folderPane = new scrollPane(folderW - ui(16), content_h - ui(32), function(_y, _m) {
draw_clear_alpha(c_ui_blue_black, 0); draw_clear_alpha(c_ui_blue_black, 0);
var hh = 8; var hh = 8;
for(var i = 0; i < ds_list_size(global.ASSETS.subDir); i++) { for(var i = 0; i < ds_list_size(global.ASSETS.subDir); i++) {
var hg = global.ASSETS.subDir[| i].draw(self, 8, _y, _m, folderPane.w - 16, HOVER == self, FOCUS == self, global.ASSETS); var hg = global.ASSETS.subDir[| i].draw(self, ui(8), _y + 8, _m, folderPane.w - ui(16), sHOVER, sFOCUS, global.ASSETS);
hh += hg; hh += hg;
_y += hg; _y += hg;
} }
return hh; return hh + 8;
}); });
#endregion #endregion

View file

@ -1,20 +1,20 @@
/// @description init /// @description init
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion #endregion
#region draw #region draw
draw_set_text(f_p0b, fa_left, fa_top, c_white); draw_set_text(f_p0b, fa_left, fa_top, c_white);
draw_text(dialog_x + 16, dialog_y + 16, "Assets"); draw_text(dialog_x + ui(16), dialog_y + ui(16), "Assets");
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + 16, dialog_y + 40, folderW - 8, dialog_h - 16 - 40); draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(16), dialog_y + ui(48), folderW - ui(8), dialog_h - ui(64));
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + 16 + folderW, dialog_y + 16, dialog_w - 16 - folderW - 16, dialog_h - 32); draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(16) + folderW, dialog_y + ui(16), dialog_w - ui(32) - folderW, dialog_h - ui(32));
folderPane.active = HOVER == self; folderPane.active = sHOVER;
folderPane.draw(dialog_x + 16, dialog_y + 48); folderPane.draw(dialog_x + ui(16), dialog_y + ui(48));
contentPane.active = HOVER == self; contentPane.active = sHOVER;
contentPane.draw(dialog_x + 20 + folderW, dialog_y + 16); contentPane.draw(dialog_x + ui(20) + folderW, dialog_y + ui(16));
#endregion #endregion

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 240 + 16 + 540; dialog_w = ui(796);
dialog_h = 380; dialog_h = ui(380);
destroy_on_click_out = true; destroy_on_click_out = true;
name = "Color selector"; name = "Color selector";
@ -16,7 +16,7 @@ event_inherited();
sat = 0; sat = 0;
val = 0; val = 0;
color_surface = surface_create(256, 256); color_surface = surface_create_valid(ui(256), ui(256));
onApply = -1; onApply = -1;
@ -112,15 +112,15 @@ event_inherited();
} }
presetCollect(); presetCollect();
sp_preset_w = 240 - 32 - 16; sp_preset_w = ui(240 - 32 - 16);
sp_preset_size = 24; sp_preset_size = ui(24);
click_block = false; click_block = false;
sp_presets = new scrollPane(sp_preset_w, dialog_h - 44 - 18, function(_y, _m) { sp_presets = new scrollPane(sp_preset_w, dialog_h - ui(62), function(_y, _m) {
var ww = sp_preset_w - 32 - 8; var ww = sp_preset_w - ui(40);
var hh = 32; var hh = ui(32);
var _gs = sp_preset_size; var _gs = sp_preset_size;
var yy = _y + 8; var yy = _y + ui(8);
var _height, pre_amo; var _height, pre_amo;
draw_clear_alpha(c_ui_blue_black, 0); draw_clear_alpha(c_ui_blue_black, 0);
@ -130,25 +130,25 @@ event_inherited();
var row = ceil(pre_amo / col); var row = ceil(pre_amo / col);
if(preset_selecting == i) if(preset_selecting == i)
_height = 28 + row * _gs + 12; _height = ui(28) + row * _gs + ui(12);
else else
_height = 52; _height = ui(52);
draw_sprite_stretched(s_ui_panel_bg, 1, 4, yy, sp_preset_w - 16, _height); draw_sprite_stretched(s_ui_panel_bg, 1, ui(4), yy, sp_preset_w - ui(16), _height);
draw_set_text(f_p2, fa_left, fa_top, c_ui_blue_ltgrey); draw_set_text(f_p2, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(16, yy + 8, preset_name[| i]); draw_text(ui(16), yy + ui(8), preset_name[| i]);
if(preset_selecting == i) if(preset_selecting == i)
drawPaletteGrid(presets[| i], 16, yy + 28, ww, _gs, current_color); drawPaletteGrid(presets[| i], ui(16), yy + ui(28), ww, _gs, current_color);
else else
drawPalette(presets[| i], 16, yy + 24, ww, 20); drawPalette(presets[| i], ui(16), yy + ui(28), ww, ui(20));
if(FOCUS == self) { if(sFOCUS) {
if(!click_block && mouse_check_button(mb_left)) { if(!click_block && mouse_check_button(mb_left)) {
if(preset_selecting == i) { if(preset_selecting == i) {
if(point_in_rectangle(_m[0], _m[1], 16, yy + 28, 16 + ww, yy + 28 + _height)) { if(point_in_rectangle(_m[0], _m[1], ui(16), yy + ui(28), ui(16) + ww, yy + ui(28) + _height)) {
var m_ax = _m[0] - 16; var m_ax = _m[0] - ui(16);
var m_ay = _m[1] - (yy + 28); var m_ay = _m[1] - (yy + ui(28));
var m_gx = floor(m_ax / _gs); var m_gx = floor(m_ax / _gs);
var m_gy = floor(m_ay / _gs); var m_gy = floor(m_ay / _gs);
@ -157,15 +157,15 @@ event_inherited();
current_color = presets[| i][_index]; current_color = presets[| i][_index];
resetHSV(); resetHSV();
} }
} else if(point_in_rectangle(_m[0], _m[1], 4, yy, 4 + sp_preset_w - 16, yy + _height)) { } else if(point_in_rectangle(_m[0], _m[1], ui(4), yy, ui(4) + sp_preset_w - ui(16), yy + _height)) {
preset_selecting = i; preset_selecting = i;
click_block = true; click_block = true;
} }
} }
} }
yy += _height + 4; yy += _height + ui(4);
hh += _height + 4; hh += _height + ui(4);
} }
if(mouse_check_button_released(mb_left)) if(mouse_check_button_released(mb_left))

View file

@ -16,63 +16,63 @@ if !ready exit;
if(mouse_check_button_pressed(mb_right)) if(mouse_check_button_pressed(mb_right))
if(dropper_active == true) instance_destroy(); if(dropper_active == true) instance_destroy();
var dx = mouse_mx + 36; var dx = mouse_mx + ui(36);
var dy = mouse_my + 36; var dy = mouse_my + ui(36);
draw_sprite_stretched(s_color_picker_sample, 0, dx - 20, dy - 20, 40, 40); draw_sprite_stretched(s_color_picker_sample, 0, dx - ui(20), dy - ui(20), ui(40), ui(40));
draw_sprite_stretched_ext(s_color_picker_sample, 0, dx - 18, dy - 18, 36, 36, dropper_color, 1); draw_sprite_stretched_ext(s_color_picker_sample, 0, dx - ui(18), dy - ui(18), ui(36), ui(36), dropper_color, 1);
exit; exit;
} }
#endregion #endregion
#region base UI #region base UI
var presets_x = dialog_x; var presets_x = dialog_x;
var presets_w = 240; var presets_w = ui(240);
var content_x = dialog_x + presets_w + 16; var content_x = dialog_x + presets_w + ui(16);
var content_w = dialog_w - presets_w - 16; var content_w = dialog_w - presets_w - ui(16);
draw_sprite_stretched(s_dialog_bg, 0, presets_x, dialog_y, presets_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, presets_x, dialog_y, presets_w, dialog_h);
if(FOCUS == self) draw_sprite_stretched(s_dialog_active, 0, presets_x, dialog_y, presets_w, dialog_h); if(sFOCUS) draw_sprite_stretched(s_dialog_active, 0, presets_x, dialog_y, presets_w, dialog_h);
draw_sprite_stretched(s_dialog_bg, 0, content_x, dialog_y, content_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, content_x, dialog_y, content_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, content_x, dialog_y, content_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, content_x, dialog_y, content_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(presets_x + 24, dialog_y + 24, "Palettes"); draw_text(presets_x + ui(24), dialog_y + ui(16), "Palettes");
draw_text(content_x + 24, dialog_y + 24, name); draw_text(content_x + ui(24), dialog_y + ui(16), name);
#endregion #endregion
#region palette #region palette
draw_sprite_stretched(s_ui_panel_bg, 0, presets_x + 16, dialog_y + 44, 240 - 32, dialog_h - 44 - 16); draw_sprite_stretched(s_ui_panel_bg, 0, presets_x + ui(16), dialog_y + ui(44), ui(240 - 32), dialog_h - ui(60));
sp_presets.active = FOCUS == self; sp_presets.active = sFOCUS;
sp_presets.draw(presets_x + 16 + 8, dialog_y + 44); sp_presets.draw(presets_x + ui(24), dialog_y + ui(44));
var bx = presets_x + presets_w - 16 - 28; var bx = presets_x + presets_w - ui(44);
var by = dialog_y + 12; var by = dialog_y + ui(12);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Refresh", s_refresh_24) == 2) if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Refresh", s_refresh_24) == 2)
presetCollect(); presetCollect();
bx -= 32; bx -= ui(32);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Open palette folder", s_folder_24) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Open palette folder", s_folder_24) == 2) {
var _realpath = environment_get_variable("LOCALAPPDATA") + "\\Pixels_Composer\\Palettes"; var _realpath = environment_get_variable("LOCALAPPDATA") + "\\Pixels_Composer\\Palettes";
var _windir = environment_get_variable("WINDIR") + "\\explorer.exe"; var _windir = environment_get_variable("WINDIR") + "\\explorer.exe";
execute_shell(_windir, _realpath); execute_shell(_windir, _realpath);
} }
bx -= 32; bx -= ui(32);
#endregion #endregion
#region color surface #region color surface
var col_x = content_x + 20; var col_x = content_x + ui(20);
var col_y = dialog_y + 48; var col_y = dialog_y + ui(48);
draw_sprite_stretched(s_ui_panel_bg, 0, col_x - 8, col_y - 8, 256 + 16, 256 + 16); draw_sprite_stretched(s_ui_panel_bg, 0, col_x - ui(8), col_y - ui(8), ui(256 + 16), ui(256 + 16));
if(!is_surface(color_surface)) color_surface = surface_create(256, 256); if(!is_surface(color_surface)) color_surface = surface_create_valid(ui(256), ui(256));
surface_set_target(color_surface); surface_set_target(color_surface);
draw_sprite_ext(s_fx_pixel, 0, 0, 0, 256, 256, 0, c_white, 1); draw_sprite_uniform(s_fx_pixel, 0, 0, 0, ui(256));
surface_reset_target(); surface_reset_target();
shader_set(sh_color_picker); shader_set(sh_color_picker);
@ -84,32 +84,32 @@ if !ready exit;
#endregion #endregion
#region selector #region selector
var hue_x = content_x + 300; var hue_x = content_x + ui(300);
var hue_y = col_y; var hue_y = col_y;
draw_sprite_stretched(s_ui_panel_bg, 0, hue_x - 8, hue_y - 8, 32, 256 + 16); draw_sprite_stretched(s_ui_panel_bg, 0, hue_x - ui(8), hue_y - ui(8), ui(32), ui(256 + 16));
for(var i = 0; i < 256; i++) { for(var i = 0; i < 256; i++) {
draw_set_color(make_color_hsv(i, 255, 255)); draw_set_color(make_color_hsv(i, 255, 255));
draw_rectangle(hue_x, hue_y + i, hue_x + 16, hue_y + i + 1, false); draw_rectangle(hue_x, hue_y + ui(i), hue_x + ui(16), hue_y + ui(i + 1), false);
} }
var hy = hue_y + hue; var hy = hue_y + ui(hue);
draw_sprite_stretched_ext(s_ui_base_white, 0, hue_x - 3, hy - 6, 24, 10, make_color_hsv(hue, 255, 255), 1); draw_sprite_stretched_ext(s_ui_base_white, 0, hue_x - ui(3), hy - ui(6), ui(24), ui(10), make_color_hsv(hue, 255, 255), 1);
draw_sprite_stretched_ext(s_ui_base_white, 0, col_x + sat - 6, col_y + 256 - val - 6, 12, 12, current_color, 1); draw_sprite_stretched_ext(s_ui_base_white, 0, col_x + ui(sat - 6), col_y + ui(256 - val - 6), ui(12), ui(12), current_color, 1);
if(FOCUS == self) { if(sFOCUS) {
if(mouse_check_button_pressed(mb_left)) { if(mouse_check_button_pressed(mb_left)) {
if(point_in_rectangle(mouse_mx, mouse_my, hue_x, hue_y, hue_x + 16, hue_y + 256)) { if(point_in_rectangle(mouse_mx, mouse_my, hue_x, hue_y, hue_x + ui(16), hue_y + ui(256))) {
hue_dragging = true; hue_dragging = true;
} else if(point_in_rectangle(mouse_mx, mouse_my, col_x, col_y, col_x + 256, col_y + 256)) { } else if(point_in_rectangle(mouse_mx, mouse_my, col_x, col_y, col_x + ui(256), col_y + ui(256))) {
value_draggin = true; value_draggin = true;
} }
} }
} }
if(hue_dragging) { if(hue_dragging) {
hue = clamp(mouse_my - hue_y, 0, 256); hue = clamp((mouse_my - hue_y) / UI_SCALE, 0, 256);
setHSV(); setHSV();
if(mouse_check_button_released(mb_left)) if(mouse_check_button_released(mb_left))
@ -117,72 +117,69 @@ if !ready exit;
} }
if(value_draggin) { if(value_draggin) {
var smx = mouse_mx - col_x; sat = clamp((mouse_mx - col_x) / UI_SCALE, 0, 256);
var smy = mouse_my - col_y; val = 256 - clamp((mouse_my - col_y) / UI_SCALE, 0, 256);
sat = clamp(smx, 0, 256);
val = 256 - clamp(smy, 0, 256);
setHSV(); setHSV();
if(mouse_check_button_released(mb_left)) if(mouse_check_button_released(mb_left))
value_draggin = false; value_draggin = false;
} }
#endregion #endregion
#region data #region data
var data_x = hue_x + 40; var data_x = hue_x + ui(40);
var data_y = col_y; var data_y = col_y;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(data_x, data_y + 40 * 0 + 17, "Hue"); draw_text(data_x, data_y + ui(40 * 0 + 17), "Hue");
draw_text(data_x, data_y + 40 * 1 + 17, "Saturation") draw_text(data_x, data_y + ui(40 * 1 + 17), "Saturation")
draw_text(data_x, data_y + 40 * 2 + 17, "Value"); draw_text(data_x, data_y + ui(40 * 2 + 17), "Value");
tb_hue.active = FOCUS == self; tb_hue.hover = HOVER == self; tb_hue.active = sFOCUS; tb_hue.hover = sHOVER;
tb_sat.active = FOCUS == self; tb_sat.hover = HOVER == self; tb_sat.active = sFOCUS; tb_sat.hover = sHOVER;
tb_val.active = FOCUS == self; tb_val.hover = HOVER == self; tb_val.active = sFOCUS; tb_val.hover = sHOVER;
tb_hue.draw(data_x + 80, data_y + 44 * 0, 100, 34, round(color_get_hue(current_color)), [mouse_mx, mouse_my]); tb_hue.draw(data_x + ui(80), data_y + ui(44 * 0), ui(100), TEXTBOX_HEIGHT, round(color_get_hue(current_color)), mouse_ui);
tb_sat.draw(data_x + 80, data_y + 44 * 1, 100, 34, round(color_get_saturation(current_color)), [mouse_mx, mouse_my]); tb_sat.draw(data_x + ui(80), data_y + ui(44 * 1), ui(100), TEXTBOX_HEIGHT, round(color_get_saturation(current_color)), mouse_ui);
tb_val.draw(data_x + 80, data_y + 44 * 2, 100, 34, round(color_get_value(current_color)), [mouse_mx, mouse_my]); tb_val.draw(data_x + ui(80), data_y + ui(44 * 2), ui(100), TEXTBOX_HEIGHT, round(color_get_value(current_color)), mouse_ui);
data_y = data_y + 44 * 3 + 8; data_y = data_y + ui(44 * 3 + 8);
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(data_x, data_y + 40 * 0 + 17, "Red"); draw_text(data_x, data_y + ui(40 * 0 + 17), "Red");
draw_text(data_x, data_y + 40 * 1 + 17, "Green"); draw_text(data_x, data_y + ui(40 * 1 + 17), "Green");
draw_text(data_x, data_y + 40 * 2 + 17, "Blue"); draw_text(data_x, data_y + ui(40 * 2 + 17), "Blue");
tb_red.active = FOCUS == self; tb_red.hover = HOVER == self; tb_red.active = sFOCUS; tb_red.hover = sHOVER;
tb_green.active = FOCUS == self; tb_green.hover = HOVER == self; tb_green.active = sFOCUS; tb_green.hover = sHOVER;
tb_blue.active = FOCUS == self; tb_blue.hover = HOVER == self; tb_blue.active = sFOCUS; tb_blue.hover = sHOVER;
tb_red.draw (data_x + 80, data_y + 44 * 0, 100, 34, color_get_red(current_color), [mouse_mx, mouse_my]); tb_red.draw (data_x + ui(80), data_y + ui(44 * 0), ui(100), TEXTBOX_HEIGHT, color_get_red(current_color), mouse_ui);
tb_green.draw(data_x + 80, data_y + 44 * 1, 100, 34, color_get_green(current_color), [mouse_mx, mouse_my]); tb_green.draw(data_x + ui(80), data_y + ui(44 * 1), ui(100), TEXTBOX_HEIGHT, color_get_green(current_color), mouse_ui);
tb_blue.draw (data_x + 80, data_y + 44 * 2, 100, 34, color_get_blue(current_color), [mouse_mx, mouse_my]); tb_blue.draw (data_x + ui(80), data_y + ui(44 * 2), ui(100), TEXTBOX_HEIGHT, color_get_blue(current_color), mouse_ui);
tb_hex.active = FOCUS == self; tb_hex.hover = HOVER == self; tb_hex.active = sFOCUS; tb_hex.hover = sHOVER;
tb_hex.draw(hue_x - 108 - 20, data_y + 44 * 3, 108, 34, color_get_hex(current_color), [mouse_mx, mouse_my]); tb_hex.draw(hue_x - ui(128), data_y + ui(44 * 3), ui(108), TEXTBOX_HEIGHT, color_get_hex(current_color), mouse_ui);
#endregion #endregion
#region controls #region controls
var cx = content_x + 36; var cx = content_x + ui(36);
var cy = dialog_y + dialog_h - 36; var cy = dialog_y + dialog_h - ui(36);
draw_sprite_stretched(s_color_picker_sample, 0, cx - 20, cy - 20, 40, 40); draw_sprite_stretched(s_color_picker_sample, 0, cx - ui(20), cy - ui(20), ui(40), ui(40));
draw_sprite_stretched_ext(s_color_picker_sample, 0, cx - 18, cy - 18, 36, 36, current_color, 1); draw_sprite_stretched_ext(s_color_picker_sample, 0, cx - ui(18), cy - ui(18), ui(36), ui(36), current_color, 1);
var bx = content_x + content_w - 36; var bx = content_x + content_w - ui(36);
var by = dialog_y + dialog_h - 36; var by = dialog_y + dialog_h - ui(36);
if(buttonInstant(s_button_lime, bx - 18, by - 18, 36, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_icon_accept_24, 0, c_ui_blue_black) == 2) { if(buttonInstant(s_button_lime, bx - ui(18), by - ui(18), ui(36), ui(36), mouse_ui, sFOCUS, sHOVER, "", s_icon_accept_24, 0, c_ui_blue_black) == 2) {
onApply(current_color); onApply(current_color);
instance_destroy(); instance_destroy();
} }
var bx = content_x + 80; var bx = content_x + ui(80);
var by = dialog_y + dialog_h - 36; var by = dialog_y + dialog_h - ui(36);
if(buttonInstant(s_button_hide, bx - 18, by - 18, 36, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_color_picker_dropper, 0, c_white) == 2) { if(buttonInstant(s_button_hide, bx - ui(18), by - ui(18), ui(36), ui(36), mouse_ui, sFOCUS, sHOVER, "", s_color_picker_dropper, 0, c_white) == 2) {
dropper_active = true; dropper_active = true;
} }
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_color_selector",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,10 +25,10 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
{"isDnD":false,"eventNum":1,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":1,"eventType":3,"collisionObjectId":null,},
{"isDnD":false,"eventNum":75,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":75,"eventType":8,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -32,8 +36,4 @@
"name": "selector", "name": "selector",
"path": "folders/dialog/selector.yy", "path": "folders/dialog/selector.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_color_selector",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -3,8 +3,8 @@ event_inherited();
#region data #region data
destroy_on_click_out = true; destroy_on_click_out = true;
dialog_w = 290; dialog_w = ui(290);
dialog_h = 188; dialog_h = ui(188);
target = noone; target = noone;
dir_paths = ""; dir_paths = "";

View file

@ -3,35 +3,35 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Import directory"); draw_text(dialog_x + ui(24), dialog_y + ui(16), "Import directory");
#endregion #endregion
#region directory option #region directory option
var dir_y = dialog_y + 44; var dir_y = dialog_y + ui(44);
cb_recursive.active = FOCUS == self; cb_recursive.active = sFOCUS;
cb_recursive.hover = HOVER == self; cb_recursive.hover = sHOVER;
cb_recursive.draw(dialog_x + dialog_w - 48, dir_y, dir_recursive, [mouse_mx, mouse_my]); cb_recursive.draw(dialog_x + dialog_w - ui(48), dir_y, dir_recursive, mouse_ui);
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 20, dir_y + 14, "Recursive"); draw_text(dialog_x + ui(20), dir_y + ui(14), "Recursive");
dir_y += 40; dir_y += ui(40);
tb_filter.active = FOCUS == self; tb_filter.active = sFOCUS;
tb_filter.hover = HOVER == self; tb_filter.hover = sHOVER;
tb_filter.draw(dialog_x + 100, dir_y, dialog_w - 100 - 20, 36, dir_filter, [mouse_mx, mouse_my]); tb_filter.draw(dialog_x + ui(100), dir_y, dialog_w - ui(120), ui(36), dir_filter, mouse_ui);
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 20, dir_y + 18, "Filter"); draw_text(dialog_x + ui(20), dir_y + ui(18), "Filter");
var bx = dialog_x + dialog_w - 20 - 100; var bx = dialog_x + dialog_w - ui(120);
dir_y += 48; dir_y += ui(48);
if(buttonInstant(s_button, bx, dir_y, 100, 40, [mouse_mx, mouse_my], FOCUS == self, HOVER == self) == 2) { if(buttonInstant(s_button, bx, dir_y, ui(100), ui(40), mouse_ui, sFOCUS, sHOVER) == 2) {
if(target) { if(target) {
var paths = paths_to_array(dir_paths, dir_recursive, dir_filter); var paths = paths_to_array(dir_paths, dir_recursive, dir_filter);
target.updatePaths(paths); target.updatePaths(paths);
@ -41,5 +41,5 @@ if !ready exit;
} }
draw_set_text(f_p0b, fa_center, fa_center, c_ui_orange); draw_set_text(f_p0b, fa_center, fa_center, c_ui_orange);
draw_text(bx + 50, dir_y + 20, "Import"); draw_text(bx + ui(50), dir_y + ui(20), "Import");
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_drag_folder",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,8 +25,8 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -30,8 +34,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_drag_folder",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -2,6 +2,6 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 400; dialog_w = ui(400);
dialog_h = 140; dialog_h = ui(140);
#endregion #endregion

View file

@ -7,39 +7,41 @@ draw_set_alpha(1);
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion #endregion
#region text #region text
var py = dialog_y + ui(16);
draw_set_text(f_h5, fa_left, fa_top, c_ui_blue_grey); draw_set_text(f_h5, fa_left, fa_top, c_ui_blue_grey);
draw_text(dialog_x + 24, dialog_y + 24, "Project modified"); draw_text(dialog_x + ui(24), py, "Project modified");
py += line_height(, 4);
draw_set_text(f_p0, fa_left, fa_top, c_white); draw_set_text(f_p0, fa_left, fa_top, c_white);
draw_text(dialog_x + 24, dialog_y + 54, "Save progress before exit?"); draw_text(dialog_x + ui(24), py, "Save progress before exit?");
var bw = 96, bh = 32; var bw = ui(96), bh = TEXTBOX_HEIGHT;
var bx1 = dialog_x + dialog_w - 16; var bx1 = dialog_x + dialog_w - ui(16);
var by1 = dialog_y + dialog_h - 16; var by1 = dialog_y + dialog_h - ui(16);
var bx0 = bx1 - bw; var bx0 = bx1 - bw;
var by0 = by1 - bh; var by0 = by1 - bh;
draw_set_text(f_p1, fa_center, fa_center, c_white); draw_set_text(f_p1, fa_center, fa_center, c_white);
var b = buttonInstant(s_button, bx0, by0, bw, bh, [mouse_mx, mouse_my], FOCUS == self, HOVER == self); var b = buttonInstant(s_button, bx0, by0, bw, bh, mouse_ui, sFOCUS, sHOVER);
draw_text(bx0 + bw / 2, by0 + bh / 2, "Cancel"); draw_text(bx0 + bw / 2, by0 + bh / 2, "Cancel");
if(b == 2) if(b == 2)
instance_destroy(); instance_destroy();
bx0 -= bw + 12; bx0 -= bw + ui(12);
var b = buttonInstant(s_button, bx0, by0, bw, bh, [mouse_mx, mouse_my], FOCUS == self, HOVER == self); var b = buttonInstant(s_button, bx0, by0, bw, bh, mouse_ui, sFOCUS, sHOVER);
draw_text(bx0 + bw / 2, by0 + bh / 2, "Don't save"); draw_text(bx0 + bw / 2, by0 + bh / 2, "Don't save");
if(b == 2) { if(b == 2) {
PREF_SAVE(); PREF_SAVE();
game_end(); game_end();
} }
bx0 -= bw + 12; bx0 -= bw + ui(12);
var b = buttonInstant(s_button, bx0, by0, bw, bh, [mouse_mx, mouse_my], FOCUS == self, HOVER == self); var b = buttonInstant(s_button, bx0, by0, bw, bh, mouse_ui, sFOCUS, sHOVER);
draw_text(bx0 + bw / 2, by0 + bh / 2, "Save"); draw_text(bx0 + bw / 2, by0 + bh / 2, "Save");
if(b == 2) { if(b == 2) {
SAVE(); SAVE();

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 240; dialog_w = ui(240);
dialog_h = 48; dialog_h = ui(48);
destroy_on_click_out = true; destroy_on_click_out = true;

View file

@ -4,12 +4,12 @@
#endregion #endregion
#region draw TB #region draw TB
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 8, dialog_y + dialog_h / 2, "Name "); draw_text(dialog_x + ui(8), dialog_y + dialog_h / 2, "Name ");
tb_name.active = FOCUS == self; tb_name.active = sFOCUS;
tb_name.hover = HOVER == self; tb_name.hover = sHOVER;
tb_name.draw(dialog_x + 64, dialog_y + 8, dialog_w - 64 - 8, dialog_h - 16, tb_name.draw(dialog_x + ui(64), dialog_y + ui(8), dialog_w - ui(72), dialog_h - ui(16),
"New file", [mouse_mx, mouse_my]); "New file", mouse_ui);
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_file_name",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,8 +25,8 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -30,8 +34,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_file_name",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 240 + 16 + 540; dialog_w = ui(796);
dialog_h = 428; dialog_h = ui(428);
name = "Gradient editor"; name = "Gradient editor";
gradient = noone; gradient = noone;
@ -22,7 +22,7 @@ event_inherited();
sat = 0; sat = 0;
val = 0; val = 0;
color_surface = surface_create(256, 256); color_surface = surface_create_valid(ui(256), ui(256));
onApply = -1; onApply = -1;
@ -146,28 +146,28 @@ event_inherited();
} }
presetCollect(); presetCollect();
sp_preset_w = 240 - 32 - 16; sp_preset_w = ui(240 - 32 - 16);
sp_presets = new scrollPane(sp_preset_w, dialog_h - 44 - 18, function(_y, _m) { sp_presets = new scrollPane(sp_preset_w, dialog_h - ui(62), function(_y, _m) {
var ww = sp_preset_w - 32 - 8; var ww = sp_preset_w - ui(40);
var hh = 32; var hh = ui(32);
var yy = _y + 8; var yy = _y + ui(8);
var hg = 52; var hg = ui(52);
draw_clear_alpha(c_ui_blue_black, 0); draw_clear_alpha(c_ui_blue_black, 0);
for(var i = 0; i < ds_list_size(presets); i++) { for(var i = 0; i < ds_list_size(presets); i++) {
draw_sprite_stretched(s_ui_panel_bg, 1, 4, yy, sp_preset_w - 16, hg); draw_sprite_stretched(s_ui_panel_bg, 1, ui(4), yy, sp_preset_w - ui(16), hg);
draw_set_text(f_p2, fa_left, fa_top, c_ui_blue_ltgrey); draw_set_text(f_p2, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(16, yy + 8, preset_name[| i]); draw_text(ui(16), yy + ui(8), preset_name[| i]);
draw_gradient(16, yy + 24, ww, 16, presets[| i]); draw_gradient(ui(16), yy + ui(28), ww, ui(16), presets[| i]);
if(FOCUS == self && point_in_rectangle(_m[0], _m[1], 4, yy, 4 + sp_preset_w - 16, yy + hg)) { if(sFOCUS && point_in_rectangle(_m[0], _m[1], ui(4), yy, ui(4) + sp_preset_w - ui(16), yy + hg)) {
if(mouse_check_button_pressed(mb_left)) if(mouse_check_button_pressed(mb_left))
ds_list_copy(gradient, presets[| i]); ds_list_copy(gradient, presets[| i]);
} }
yy += hg + 4; yy += hg + ui(4);
hh += hg + 4; hh += hg + ui(4);
} }
return hh; return hh;

View file

@ -13,10 +13,10 @@ if !ready exit;
if(dropper_active == 2) instance_destroy(); if(dropper_active == 2) instance_destroy();
} }
var dx = mouse_mx + 36; var dx = mouse_mx + ui(36);
var dy = mouse_my + 36; var dy = mouse_my + ui(36);
draw_sprite_stretched(s_color_picker_sample, 0, dx - 20, dy - 20, 40, 40); draw_sprite_stretched(s_color_picker_sample, 0, dx - ui(20), dy - ui(20), ui(40), ui(40));
draw_sprite_stretched_ext(s_color_picker_sample, 0, dx - 18, dy - 18, 36, 36, dropper_color, 1); draw_sprite_stretched_ext(s_color_picker_sample, 0, dx - ui(18), dy - ui(18), ui(36), ui(36), dropper_color, 1);
exit; exit;
} }
@ -24,36 +24,36 @@ if !ready exit;
#region base UI #region base UI
var presets_x = dialog_x; var presets_x = dialog_x;
var presets_w = 240; var presets_w = ui(240);
var content_x = dialog_x + presets_w + 16; var content_x = dialog_x + presets_w + ui(16);
var content_w = dialog_w - presets_w - 16; var content_w = dialog_w - presets_w - ui(16);
draw_sprite_stretched(s_dialog_bg, 0, presets_x, dialog_y, presets_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, presets_x, dialog_y, presets_w, dialog_h);
if(FOCUS == self) draw_sprite_stretched(s_dialog_active, 0, presets_x, dialog_y, presets_w, dialog_h); if(sFOCUS) draw_sprite_stretched(s_dialog_active, 0, presets_x, dialog_y, presets_w, dialog_h);
draw_sprite_stretched(s_dialog_bg, 0, content_x, dialog_y, content_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, content_x, dialog_y, content_w, dialog_h);
if(FOCUS == self) draw_sprite_stretched(s_dialog_active, 0, content_x, dialog_y, content_w, dialog_h); if(sFOCUS) draw_sprite_stretched(s_dialog_active, 0, content_x, dialog_y, content_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(presets_x + 24, dialog_y + 24, "Presets"); draw_text(presets_x + ui(24), dialog_y + ui(16), "Presets");
draw_text(content_x + 24, dialog_y + 24, name); draw_text(content_x + ui(24), dialog_y + ui(16), name);
#endregion #endregion
#region presets #region presets
draw_sprite_stretched(s_ui_panel_bg, 0, presets_x + 16, dialog_y + 44, 240 - 32, dialog_h - 44 - 16); draw_sprite_stretched(s_ui_panel_bg, 0, presets_x + ui(16), dialog_y + ui(44), ui(240 - 32), dialog_h - ui(60));
sp_presets.active = FOCUS == self; sp_presets.active = sFOCUS;
sp_presets.draw(presets_x + 16 + 8, dialog_y + 44); sp_presets.draw(presets_x + ui(16 + 8), dialog_y + ui(44));
var bx = presets_x + presets_w - 16 - 28; var bx = presets_x + presets_w - ui(44);
var by = dialog_y + 12; var by = dialog_y + ui(12);
var _b = buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self); var _b = buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER);
if(_b) TOOLTIP = "Add to preset"; if(_b) TOOLTIP = "Add to preset";
if(_b == 2) { if(_b == 2) {
var dia = dialogCall(o_dialog_file_name, mouse_mx + 8, mouse_my + 8); var dia = dialogCall(o_dialog_file_name, mouse_mx + ui(8), mouse_my + ui(8));
dia.onModify = function (txt) { dia.onModify = function (txt) {
var file = file_text_open_write(txt + ".txt"); var file = file_text_open_write(txt + ".txt");
for(var i = 0; i < ds_list_size(gradient); i++) { for(var i = 0; i < ds_list_size(gradient); i++) {
@ -72,39 +72,39 @@ if !ready exit;
}; };
dia.path = DIRECTORY + "Gradients/" dia.path = DIRECTORY + "Gradients/"
} }
draw_sprite_ext(s_add_24, 0, bx + 14, by + 14, 1, 1, 0, c_ui_blue_grey, 1); draw_sprite_ui_uniform(s_add_24, 0, bx + ui(14), by + ui(14), 1, c_ui_blue_grey);
bx -= 32; bx -= ui(32);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Refresh", s_refresh_24) == 2) if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Refresh", s_refresh_24) == 2)
presetCollect(); presetCollect();
bx -= 32; bx -= ui(32);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Open gradient folder", s_folder_24) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Open gradient folder", s_folder_24) == 2) {
var _realpath = environment_get_variable("LOCALAPPDATA") + "\\Pixels_Composer\\Gradients"; var _realpath = environment_get_variable("LOCALAPPDATA") + "\\Pixels_Composer\\Gradients";
var _windir = environment_get_variable("WINDIR") + "\\explorer.exe"; var _windir = environment_get_variable("WINDIR") + "\\explorer.exe";
execute_shell(_windir, _realpath); execute_shell(_windir, _realpath);
} }
bx -= 32; bx -= ui(32);
#endregion #endregion
#region gradient #region gradient
var gr_x = content_x + 22; var gr_x = content_x + ui(22);
var gr_y = dialog_y + 54; var gr_y = dialog_y + ui(54);
var gr_w = content_w - 44; var gr_w = content_w - ui(44);
var gr_h = 20; var gr_h = ui(20);
#region tools #region tools
var bx = content_x + content_w - 22 - 28; var bx = content_x + content_w - ui(50);
var by = dialog_y + 16; var by = dialog_y + ui(16);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Key blending", s_grad_blend) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Key blending", s_grad_blend) == 2) {
if(grad_data != noone) if(grad_data != noone)
grad_data[| 0] = !grad_data[| 0]; grad_data[| 0] = !grad_data[| 0];
} }
bx -= 32; bx -= ui(32);
#endregion #endregion
draw_sprite_stretched(s_textbox, 0, gr_x - 6, gr_y - 6, gr_w + 12, gr_h + 12); draw_sprite_stretched(s_textbox, 0, gr_x - ui(6), gr_y - ui(6), gr_w + ui(12), gr_h + ui(12));
draw_gradient(gr_x, gr_y, gr_w, gr_h, gradient, grad_data[| 0]); draw_gradient(gr_x, gr_y, gr_w, gr_h, gradient, grad_data[| 0]);
var hover = noone; var hover = noone;
@ -113,10 +113,10 @@ if !ready exit;
var _kx = gr_x + _k.time * gr_w; var _kx = gr_x + _k.time * gr_w;
var _in = _k == key_selecting? 1 : 0; var _in = _k == key_selecting? 1 : 0;
draw_sprite_ext(s_prop_gradient, _in, _kx, gr_y + gr_h / 2, 1, 1, 0, c_white, 1); draw_sprite_ui_uniform(s_prop_gradient, _in, _kx, gr_y + gr_h / 2, 1);
if(HOVER == self && point_in_rectangle(mouse_mx, mouse_my, _kx - 6, gr_y, _kx + 6, gr_y + gr_h)) { if(sHOVER && point_in_rectangle(mouse_mx, mouse_my, _kx - ui(6), gr_y, _kx + ui(6), gr_y + gr_h)) {
draw_sprite_ext(s_prop_gradient, _in, _kx, gr_y + gr_h / 2, 1.2, 1.2, 0, c_white, 1); draw_sprite_ui_uniform(s_prop_gradient, _in, _kx, gr_y + gr_h / 2, 1.2);
hover = _k; hover = _k;
} }
} }
@ -138,8 +138,8 @@ if !ready exit;
} }
} }
if(FOCUS == self) { if(sFOCUS) {
if(point_in_rectangle(mouse_mx, mouse_my, gr_x - 6, gr_y - 6, gr_x + gr_w + 12, gr_y + gr_h + 12)) { if(point_in_rectangle(mouse_mx, mouse_my, gr_x - ui(6), gr_y - ui(6), gr_x + gr_w + ui(12), gr_y + gr_h + ui(12))) {
if(mouse_check_button_pressed(mb_left)) { if(mouse_check_button_pressed(mb_left)) {
if(hover) { if(hover) {
key_selecting = hover; key_selecting = hover;
@ -174,14 +174,14 @@ if !ready exit;
#endregion #endregion
#region color surface #region color surface
var col_x = content_x + 20; var col_x = content_x + ui(20);
var col_y = dialog_y + 96; var col_y = dialog_y + ui(96);
draw_sprite_stretched(s_ui_panel_bg, 0, col_x - 8, col_y - 8, 256 + 16, 256 + 16); draw_sprite_stretched(s_ui_panel_bg, 0, col_x - ui(8), col_y - ui(8), ui(256 + 16), ui(256 + 16));
if(!is_surface(color_surface)) color_surface = surface_create(256, 256); if(!is_surface(color_surface)) color_surface = surface_create_valid(ui(256), ui(256));
surface_set_target(color_surface); surface_set_target(color_surface);
draw_sprite_ext(s_fx_pixel, 0, 0, 0, 256, 256, 0, c_white, 1); draw_sprite_ext(s_fx_pixel, 0, 0, 0, ui(256), ui(256), 0, c_white, 1);
surface_reset_target(); surface_reset_target();
shader_set(sh_color_picker); shader_set(sh_color_picker);
@ -193,32 +193,32 @@ if !ready exit;
#endregion #endregion
#region selector #region selector
var hue_x = content_x + 300; var hue_x = content_x + ui(300);
var hue_y = col_y; var hue_y = col_y;
draw_sprite_stretched(s_ui_panel_bg, 0, hue_x - 8, hue_y - 8, 32, 256 + 16); draw_sprite_stretched(s_ui_panel_bg, 0, hue_x - ui(8), hue_y - ui(8), ui(32), ui(256 + 16));
for(var i = 0; i < 256; i++) { for(var i = 0; i < 256; i++) {
draw_set_color(make_color_hsv(i, 255, 255)); draw_set_color(make_color_hsv(i, 255, 255));
draw_rectangle(hue_x, hue_y + i, hue_x + 16, hue_y + i + 1, false); draw_rectangle(hue_x, hue_y + ui(i), hue_x + ui(16), hue_y + ui(i + 1), false);
} }
var hy = hue_y + hue; var hy = hue_y + ui(hue);
draw_sprite_stretched_ext(s_ui_base_white, 0, hue_x - 3, hy - 6, 24, 10, make_color_hsv(hue, 255, 255), 1); draw_sprite_stretched_ext(s_ui_base_white, 0, hue_x - ui(3), hy - ui(6), ui(24), ui(10), make_color_hsv(hue, 255, 255), 1);
draw_sprite_stretched_ext(s_ui_base_white, 0, col_x + sat - 6, col_y + 256 - val - 6, 12, 12, current_color, 1); draw_sprite_stretched_ext(s_ui_base_white, 0, col_x + ui(sat - 6), col_y + ui(256 - val - 6), ui(12), ui(12), current_color, 1);
if(FOCUS == self) { if(sFOCUS) {
if(mouse_check_button_pressed(mb_left)) { if(mouse_check_button_pressed(mb_left)) {
if(point_in_rectangle(mouse_mx, mouse_my, hue_x, hue_y, hue_x + 16, hue_y + 256)) { if(point_in_rectangle(mouse_mx, mouse_my, hue_x, hue_y, hue_x + ui(16), hue_y + ui(256))) {
hue_dragging = true; hue_dragging = true;
} else if(point_in_rectangle(mouse_mx, mouse_my, col_x, col_y, col_x + 256, col_y + 256)) { } else if(point_in_rectangle(mouse_mx, mouse_my, col_x, col_y, col_x + ui(256), col_y + ui(256))) {
value_draggin = true; value_draggin = true;
} }
} }
} }
if(hue_dragging) { if(hue_dragging) {
hue = clamp(mouse_my - hue_y, 0, 256); hue = clamp((mouse_my - hue_y) / UI_SCALE, 0, 256);
setHSV(); setHSV();
if(mouse_check_button_released(mb_left)) if(mouse_check_button_released(mb_left))
@ -226,11 +226,8 @@ if !ready exit;
} }
if(value_draggin) { if(value_draggin) {
var smx = mouse_mx - col_x; sat = clamp((mouse_mx - col_x) / UI_SCALE, 0, 256);
var smy = mouse_my - col_y; val = 256 - clamp((mouse_my - col_y) / UI_SCALE, 0, 256);
sat = clamp(smx, 0, 256);
val = 256 - clamp(smy, 0, 256);
setHSV(); setHSV();
if(mouse_check_button_released(mb_left)) if(mouse_check_button_released(mb_left))
@ -239,59 +236,59 @@ if !ready exit;
#endregion #endregion
#region data #region data
var data_x = hue_x + 40; var data_x = hue_x + ui(40);
var data_y = col_y; var data_y = col_y;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(data_x, data_y + 40 * 0 + 17, "Hue"); draw_text(data_x, data_y + ui(40 * 0 + 17), "Hue");
draw_text(data_x, data_y + 40 * 1 + 17, "Saturation") draw_text(data_x, data_y + ui(40 * 1 + 17), "Saturation")
draw_text(data_x, data_y + 40 * 2 + 17, "Value"); draw_text(data_x, data_y + ui(40 * 2 + 17), "Value");
tb_hue.active = FOCUS == self; tb_hue.hover = HOVER == self; tb_hue.active = sFOCUS; tb_hue.hover = sHOVER;
tb_sat.active = FOCUS == self; tb_sat.hover = HOVER == self; tb_sat.active = sFOCUS; tb_sat.hover = sHOVER;
tb_val.active = FOCUS == self; tb_val.hover = HOVER == self; tb_val.active = sFOCUS; tb_val.hover = sHOVER;
tb_hue.draw(data_x + 80, data_y + 44 * 0, 100, 34, round(color_get_hue(current_color)), [mouse_mx, mouse_my]); tb_hue.draw(data_x + ui(80), data_y + ui(44 * 0), ui(100), TEXTBOX_HEIGHT, round(color_get_hue(current_color)), mouse_ui);
tb_sat.draw(data_x + 80, data_y + 44 * 1, 100, 34, round(color_get_saturation(current_color)), [mouse_mx, mouse_my]); tb_sat.draw(data_x + ui(80), data_y + ui(44 * 1), ui(100), TEXTBOX_HEIGHT, round(color_get_saturation(current_color)), mouse_ui);
tb_val.draw(data_x + 80, data_y + 44 * 2, 100, 34, round(color_get_value(current_color)), [mouse_mx, mouse_my]); tb_val.draw(data_x + ui(80), data_y + ui(44 * 2), ui(100), TEXTBOX_HEIGHT, round(color_get_value(current_color)), mouse_ui);
data_y = data_y + 44 * 3 + 8; data_y = data_y + ui(44 * 3 + 8);
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(data_x, data_y + 40 * 0 + 17, "Red"); draw_text(data_x, data_y + ui(40 * 0 + 17), "Red");
draw_text(data_x, data_y + 40 * 1 + 17, "Green"); draw_text(data_x, data_y + ui(40 * 1 + 17), "Green");
draw_text(data_x, data_y + 40 * 2 + 17, "Blue"); draw_text(data_x, data_y + ui(40 * 2 + 17), "Blue");
tb_red.active = FOCUS == self; tb_red.hover = HOVER == self; tb_red.active = sFOCUS; tb_red.hover = sHOVER;
tb_green.active = FOCUS == self; tb_green.hover = HOVER == self; tb_green.active = sFOCUS; tb_green.hover = sHOVER;
tb_blue.active = FOCUS == self; tb_blue.hover = HOVER == self; tb_blue.active = sFOCUS; tb_blue.hover = sHOVER;
tb_red.draw (data_x + 80, data_y + 44 * 0, 100, 34, color_get_red(current_color), [mouse_mx, mouse_my]); tb_red.draw (data_x + ui(80), data_y + ui(44 * 0), ui(100), TEXTBOX_HEIGHT, color_get_red(current_color), mouse_ui);
tb_green.draw(data_x + 80, data_y + 44 * 1, 100, 34, color_get_green(current_color), [mouse_mx, mouse_my]); tb_green.draw(data_x + ui(80), data_y + ui(44 * 1), ui(100), TEXTBOX_HEIGHT, color_get_green(current_color), mouse_ui);
tb_blue.draw (data_x + 80, data_y + 44 * 2, 100, 34, color_get_blue(current_color), [mouse_mx, mouse_my]); tb_blue.draw (data_x + ui(80), data_y + ui(44 * 2), ui(100), TEXTBOX_HEIGHT, color_get_blue(current_color), mouse_ui);
tb_hex.active = FOCUS == self; tb_hex.hover = HOVER == self; tb_hex.active = sFOCUS; tb_hex.hover = sHOVER;
tb_hex.draw(hue_x - 108 - 20, data_y + 44 * 3, 108, 34, color_get_hex(current_color), [mouse_mx, mouse_my]); tb_hex.draw(hue_x - ui(128), data_y + ui(44 * 3), ui(108), TEXTBOX_HEIGHT, color_get_hex(current_color), mouse_ui);
#endregion #endregion
#region controls #region controls
var cx = content_x + 36; var cx = content_x + ui(36);
var cy = dialog_y + dialog_h - 36; var cy = dialog_y + dialog_h - ui(36);
draw_sprite_stretched(s_color_picker_sample, 0, cx - 20, cy - 20, 40, 40); draw_sprite_stretched(s_color_picker_sample, 0, cx - ui(20), cy - ui(20), ui(40), ui(40));
draw_sprite_stretched_ext(s_color_picker_sample, 0, cx - 18, cy - 18, 36, 36, current_color, 1); draw_sprite_stretched_ext(s_color_picker_sample, 0, cx - ui(18), cy - ui(18), ui(36), ui(36), current_color, 1);
var bx = content_x + content_w - 36; var bx = content_x + content_w - ui(36);
var by = dialog_y + dialog_h - 36; var by = dialog_y + dialog_h - ui(36);
if(buttonInstant(s_button_lime, bx - 18, by - 18, 36, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_icon_accept_24, 0, c_ui_blue_black) == 2) { if(buttonInstant(s_button_lime, bx - ui(18), by - ui(18), ui(36), ui(36), mouse_ui, sFOCUS, sHOVER, "", s_icon_accept_24, 0, c_ui_blue_black) == 2) {
onApply(); onApply();
instance_destroy(); instance_destroy();
} }
var bx = content_x + 80; var bx = content_x + ui(80);
var by = dialog_y + dialog_h - 36; var by = dialog_y + dialog_h - ui(36);
if(buttonInstant(s_button_hide, bx - 18, by - 18, 36, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_color_picker_dropper, 0, c_white) == 2) { if(buttonInstant(s_button_hide, bx - ui(18), by - ui(18), ui(36), ui(36), mouse_ui, sFOCUS, sHOVER, "", s_color_picker_dropper, 0, c_white) == 2) {
dropper_active = true; dropper_active = true;
} }
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_gradient",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,11 +25,11 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
{"isDnD":false,"eventNum":1,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":1,"eventType":3,"collisionObjectId":null,},
{"isDnD":false,"eventNum":0,"eventType":1,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":1,"collisionObjectId":null,},
{"isDnD":false,"eventNum":75,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":75,"eventType":8,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -33,8 +37,4 @@
"name": "selector", "name": "selector",
"path": "folders/dialog/selector.yy", "path": "folders/dialog/selector.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_gradient",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 320; dialog_w = ui(320);
dialog_h = 180; dialog_h = ui(180);
destroy_on_click_out = true; destroy_on_click_out = true;
#endregion #endregion

View file

@ -0,0 +1,36 @@
/// @description init
if !ready exit;
#region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + ui(24), dialog_y + ui(16), "Grid settings");
#endregion
#region draw
var yy = dialog_y + ui(64);
var ww = ui(128);
cb_enable.active = sFOCUS;
cb_enable.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + ui(32), yy, "Snap to grid");
cb_enable.draw(dialog_x + dialog_w - ww / 2, yy, PANEL_GRAPH.node_drag_snap, mouse_ui,, fa_center, fa_center);
yy += ui(40);
tb_size.active = sFOCUS;
tb_size.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + ui(32), yy, "Grid size");
tb_size.draw(dialog_x + dialog_w - ui(24), yy, ww, TEXTBOX_HEIGHT, PANEL_GRAPH.graph_line_s, mouse_ui,, fa_right, fa_center);
yy += ui(40);
sl_opacity.active = sFOCUS;
sl_opacity.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + ui(32), yy, "Grid opacity");
sl_opacity.draw(dialog_x + dialog_w - ui(24), yy, ww, TEXTBOX_HEIGHT, PANEL_GRAPH.grid_opacity, mouse_ui, ui(52), fa_right, fa_center);
#endregion

View file

@ -1,7 +1,7 @@
{ {
"resourceType": "GMObject", "resourceType": "GMObject",
"resourceVersion": "1.0", "resourceVersion": "1.0",
"name": "o_dialog_inspector_grid", "name": "o_dialog_graph_grid",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,

View file

@ -3,19 +3,19 @@ event_inherited();
#region data #region data
destroy_on_click_out = true; destroy_on_click_out = true;
dialog_w = 648; dialog_w = ui(648);
dialog_h = max(500, WIN_H - 200); dialog_h = max(ui(500), WIN_H - ui(200));
dialog_resizable = true; dialog_resizable = true;
dialog_w_min = 400; dialog_w_min = ui(400);
dialog_h_min = 500; dialog_h_min = ui(500);
dialog_w_max = WIN_W; dialog_w_max = WIN_W;
dialog_h_max = WIN_H; dialog_h_max = WIN_H;
target = noone; target = noone;
function onResize() { function onResize() {
sp_content.resize(dialog_w - 150, dialog_h - 64); sp_content.resize(dialog_w - ui(150), dialog_h - ui(64));
} }
#endregion #endregion
@ -24,15 +24,15 @@ event_inherited();
dragging = -1; dragging = -1;
drag_spr = -1; drag_spr = -1;
sp_content = new scrollPane(dialog_w - 150, dialog_h - 64, function(_y, _m) { sp_content = new scrollPane(dialog_w - ui(150), dialog_h - ui(64), function(_y, _m) {
if(!target) return 0; if(!target) return 0;
draw_clear_alpha(c_ui_blue_grey, 0); draw_clear_alpha(c_ui_blue_grey, 0);
var _h = 8; var _h = ui(8);
var ww = 100; var ww = ui(100);
var hh = 100; var hh = ui(100);
var pad = 16; var pad = ui(16);
var arr = target.inputs[| 0].getValue(); var arr = target.inputs[| 0].getValue();
if(array_length(arr) != array_length(target.spr)) if(array_length(arr) != array_length(target.spr))
@ -42,7 +42,7 @@ event_inherited();
var col = floor((sp_content.surface_w - pad) / (ww + pad)); var col = floor((sp_content.surface_w - pad) / (ww + pad));
var row = ceil(len / col); var row = ceil(len / col);
var yy = _y + 8; var yy = _y + ui(8);
var menu = -1; var menu = -1;
var drag = -1; var drag = -1;
var inb_hover = -1; var inb_hover = -1;
@ -84,7 +84,7 @@ event_inherited();
var spr = target.spr[index]; var spr = target.spr[index];
var spr_w = sprite_get_width(spr); var spr_w = sprite_get_width(spr);
var spr_h = sprite_get_height(spr); var spr_h = sprite_get_height(spr);
var spr_s = min((ww - 16) / spr_w, (hh - 16) / spr_h); var spr_s = min((ww - ui(16)) / spr_w, (hh - ui(16)) / spr_h);
var spr_x = xx + ww / 2 - spr_w * spr_s / 2; var spr_x = xx + ww / 2 - spr_w * spr_s / 2;
var spr_y = yy + hh / 2 - spr_h * spr_s / 2; var spr_y = yy + hh / 2 - spr_h * spr_s / 2;
@ -98,9 +98,9 @@ event_inherited();
var name = string_cut_line(string_replace(filename_name(path), filename_ext(path), ""), ww); var name = string_cut_line(string_replace(filename_name(path), filename_ext(path), ""), ww);
var txt_h = string_height_ext(name, -1, ww); var txt_h = string_height_ext(name, -1, ww);
draw_text_ext(xx + ww / 2, yy + hh + 16, name, -1, ww); draw_text_ext(xx + ww / 2, yy + hh + ui(16), name, -1, ww);
ch = max(ch, hh + txt_h + 32); ch = max(ch, hh + txt_h + ui(32));
} }
yy += ch; yy += ch;

View file

@ -4,29 +4,29 @@ if !target exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Image array edit"); draw_text(dialog_x + ui(24), dialog_y + ui(16), "Image array edit");
#endregion #endregion
#region content #region content
var x0 = dialog_x + 20; var x0 = dialog_x + ui(20);
var x1 = x0 + sp_content.w; var x1 = x0 + sp_content.w;
var y0 = dialog_y + 44; var y0 = dialog_y + ui(44);
var y1 = y0 + sp_content.h; var y1 = y0 + sp_content.h;
draw_sprite_stretched(s_ui_panel_bg, 1, x0 - 6, y0 - 6, x1 - x0 + 12, y1 - y0 + 12); draw_sprite_stretched(s_ui_panel_bg, 1, x0 - ui(6), y0 - ui(6), x1 - x0 + ui(12), y1 - y0 + ui(12));
sp_content.active = FOCUS == self; sp_content.active = sFOCUS;
sp_content.draw(x0, y0); sp_content.draw(x0, y0);
#endregion #endregion
#region button #region button
var bx = dialog_x + dialog_w - 20 - 88; var bx = dialog_x + dialog_w - ui(108);
var by = y0; var by = y0;
if(buttonInstant(s_button, bx, by, 88, 40, [mouse_mx, mouse_my], FOCUS == self, HOVER == self) == 2) { if(buttonInstant(s_button, bx, by, ui(88), ui(40), mouse_ui, sFOCUS, sHOVER) == 2) {
var path = get_open_filenames(".png", ""); var path = get_open_filenames(".png", "");
if(path != "") { if(path != "") {
var paths = paths_to_array(path); var paths = paths_to_array(path);
@ -40,5 +40,5 @@ if !target exit;
} }
draw_set_text(f_p0, fa_center, fa_center, c_white); draw_set_text(f_p0, fa_center, fa_center, c_white);
draw_text(bx + 44, by + 20, "Add..."); draw_text(bx + ui(44), by + ui(20), "Add...");
#endregion #endregion

View file

@ -1,4 +1,7 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_image_array_edit",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
@ -22,8 +25,8 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -31,8 +34,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_image_array_edit",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -1,36 +0,0 @@
/// @description init
if !ready exit;
#region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Grid settings");
#endregion
#region draw
var yy = dialog_y + 44;
var ww = 128;
cb_enable.active = FOCUS == self;
cb_enable.hover = HOVER == self;
draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Snap to grid");
cb_enable.draw(dialog_x + dialog_w - 24 - ww / 2 - 14, yy, PANEL_GRAPH.node_drag_snap, [mouse_mx, mouse_my]);
yy += 40;
tb_size.active = FOCUS == self;
tb_size.hover = HOVER == self;
draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Grid size");
tb_size.draw(dialog_x + dialog_w - 24 - ww, yy, ww, 34, PANEL_GRAPH.graph_line_s, [mouse_mx, mouse_my]);
yy += 40;
sl_opacity.active = FOCUS == self;
sl_opacity.hover = HOVER == self;
draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Grid opacity");
sl_opacity.draw(dialog_x + dialog_w - 24 - ww, yy, ww, 34, PANEL_GRAPH.grid_opacity, [mouse_mx, mouse_my], 52);
#endregion

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 360; dialog_w = ui(360);
dialog_h = 360; dialog_h = ui(360);
destroy_on_click_out = true; destroy_on_click_out = true;

View file

@ -3,20 +3,18 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Interpolation curve"); draw_text(dialog_x + ui(24), dialog_y + ui(16), "Interpolation curve");
#endregion #endregion
#region draw #region draw
if(value_target != noone) { if(value_target != noone) {
editWidget.active = FOCUS == self; editWidget.active = sFOCUS;
editWidget.hover = HOVER == self; editWidget.hover = sHOVER;
editWidget.draw(dialog_x + 16, dialog_y + 48, dialog_w - 32, dialog_h - 48 - 16, editWidget.draw(dialog_x + ui(16), dialog_y + ui(48), dialog_w - ui(32), dialog_h - ui(64),
value_target.inter_curve, [mouse_mx, mouse_my]); value_target.inter_curve, mouse_ui);
} }
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_keyframe_curve",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,8 +25,8 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -30,8 +34,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_keyframe_curve",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -6,7 +6,7 @@ event_inherited();
destroy_on_click_out = false; destroy_on_click_out = false;
alarm[0] = -1; alarm[0] = -1;
menu = 1; menu = 1;
hght = 36; hght = ui(36);
children = ds_list_create(); children = ds_list_create();
ds_list_add(children, self); ds_list_add(children, self);
@ -27,11 +27,11 @@ event_inherited();
draw_set_text(f_p0, fa_center, fa_center, c_white); draw_set_text(f_p0, fa_center, fa_center, c_white);
for(var i = 0; i < array_length(menu); i++) { for(var i = 0; i < array_length(menu); i++) {
if(!is_array(menu[i])) { if(!is_array(menu[i])) {
dialog_h += 8; dialog_h += ui(8);
continue; continue;
} }
draw_set_font(f_p0); draw_set_font(f_p0);
var ww = string_width(menu[i][0]) + 64; var ww = string_width(menu[i][0]) + ui(64);
if(array_length(menu[i]) > 2) { if(array_length(menu[i]) > 2) {
if(menu[i][2] == ">") { if(menu[i][2] == ">") {
@ -41,7 +41,7 @@ event_inherited();
if(_key) { if(_key) {
draw_set_font(f_p1); draw_set_font(f_p1);
var ss = key_get_name(_key.key, _key.modi); var ss = key_get_name(_key.key, _key.modi);
ww += string_width(ss) + 16; ww += string_width(ss) + ui(16);
} }
} }
} }
@ -52,10 +52,10 @@ event_inherited();
dialog_h += hght; dialog_h += hght;
} }
if(dialog_x + dialog_w > WIN_W - 16) if(dialog_x + dialog_w > WIN_W - ui(16))
dialog_x = WIN_W - 16 - dialog_w; dialog_x = WIN_W - ui(16) - dialog_w;
if(dialog_y + dialog_h > WIN_H - 16) if(dialog_y + dialog_h > WIN_H - ui(16))
dialog_y = WIN_H - 16 - dialog_h; dialog_y = WIN_H - ui(16) - dialog_h;
ready = true; ready = true;
} }

View file

@ -1,13 +1,13 @@
/// @description init /// @description init
#region draw #region draw
var yy = dialog_y; var yy = dialog_y;
draw_sprite_stretched(s_textbox, 1, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_textbox, 1, dialog_x, dialog_y, dialog_w, dialog_h);
for(var i = 0; i < array_length(menu); i++) { for(var i = 0; i < array_length(menu); i++) {
if(!is_array(menu[i])) { if(!is_array(menu[i])) {
draw_sprite_stretched(s_menu_separator, 0, dialog_x + 8, yy, dialog_w - 16, 6); draw_sprite_stretched(s_menu_separator, 0, dialog_x + ui(8), yy, dialog_w - ui(16), ui(6));
yy += 8; yy += ui(8);
continue; continue;
} }
@ -16,10 +16,10 @@
if(is_array(menu[i][1])) if(is_array(menu[i][1]))
_h += hght; _h += hght;
if(HOVER == self && point_in_rectangle(mouse_mx, mouse_my, dialog_x, yy + 1, dialog_x + dialog_w, yy + _h - 1)) { if(sHOVER && point_in_rectangle(mouse_mx, mouse_my, dialog_x, yy + 1, dialog_x + dialog_w, yy + _h - 1)) {
draw_sprite_stretched_ext(s_textbox, 3, dialog_x, yy, dialog_w, _h, c_ui_blue_white, 1); draw_sprite_stretched_ext(s_textbox, 3, dialog_x, yy, dialog_w, _h, c_ui_blue_white, 1);
if(FOCUS == self && mouse_check_button_released(mb_left)) { if(sFOCUS && mouse_check_button_released(mb_left)) {
if(!is_array(menu[i][1])) { if(!is_array(menu[i][1])) {
var res = menu[i][1](dialog_x + dialog_w, yy, depth, menu[i][0]); var res = menu[i][1](dialog_x + dialog_w, yy, depth, menu[i][0]);
if(array_safe_get(menu[i], 2, 0) == ">") if(array_safe_get(menu[i], 2, 0) == ">")
@ -35,12 +35,12 @@
draw_text(dialog_x + dialog_w / 2, yy + hght / 2, menu[i][0]); draw_text(dialog_x + dialog_w / 2, yy + hght / 2, menu[i][0]);
var amo = array_length(menu[i][1]); var amo = array_length(menu[i][1]);
var _w = (amo - 1) / 2 * (hght + 4); var _w = (amo - 1) / 2 * (hght + ui(4));
var _sx = dialog_x + dialog_w / 2 - _w; var _sx = dialog_x + dialog_w / 2 - _w;
for(var j = 0; j < amo; j++) { for(var j = 0; j < amo; j++) {
var _bx = _sx + j * (hght + 4); var _bx = _sx + j * (hght + ui(4));
var _by = yy + hght + hght / 2 - 4; var _by = yy + hght + hght / 2 - ui(4);
var _spr = noone, _ind = 0; var _spr = noone, _ind = 0;
var _ss = menu[i][1][j][0]; var _ss = menu[i][1][j][0];
@ -52,30 +52,30 @@
_ind = 0; _ind = 0;
} }
if(HOVER == self && point_in_rectangle(mouse_mx, mouse_my, _bx - 14, _by - 14, _bx + 14, _by + 14)) { if(sHOVER && point_in_rectangle(mouse_mx, mouse_my, _bx - ui(14), _by - ui(14), _bx + ui(14), _by + ui(14))) {
draw_sprite_stretched(s_textbox, 1, _bx - 14, _by - 14, 28, 28); draw_sprite_stretched(s_textbox, 1, _bx - ui(14), _by - ui(14), ui(28), ui(28));
if(FOCUS == self && mouse_check_button_pressed(mb_left)) { if(sFOCUS && mouse_check_button_pressed(mb_left)) {
menu[i][1][j][1](); menu[i][1][j][1]();
instance_destroy(o_dialog_menubox); instance_destroy(o_dialog_menubox);
} }
} }
draw_sprite(_spr, _ind, _bx, _by); draw_sprite_ui_uniform(_spr, _ind, _bx, _by);
} }
} else { } else {
draw_set_text(f_p0, fa_left, fa_center, c_white); draw_set_text(f_p0, fa_left, fa_center, c_white);
draw_text(dialog_x + 16, yy + hght / 2, menu[i][0]); draw_text(dialog_x + ui(16), yy + hght / 2, menu[i][0]);
} }
if(array_length(menu[i]) > 2) { if(array_length(menu[i]) > 2) {
if(menu[i][2] == ">") { if(menu[i][2] == ">") {
draw_sprite_ext(s_arrow_16, 0, dialog_x + dialog_w - 20, yy + hght / 2, 1, 1, 0, c_ui_blue_dkgrey, 1); draw_sprite_ui_uniform(s_arrow_16, 0, dialog_x + dialog_w - ui(20), yy + hght / 2, 1, c_ui_blue_dkgrey);
} else if(is_array(menu[i][2])) { } else if(is_array(menu[i][2])) {
var _key = find_hotkey(menu[i][2][0], menu[i][2][1]); var _key = find_hotkey(menu[i][2][0], menu[i][2][1]);
if(_key) { if(_key) {
draw_set_text(f_p1, fa_right, fa_center, c_ui_blue_grey); draw_set_text(f_p1, fa_right, fa_center, c_ui_blue_grey);
draw_text(dialog_x + dialog_w - 16, yy + hght / 2, key_get_name(_key.key, _key.modi)); draw_text(dialog_x + dialog_w - ui(16), yy + hght / 2, key_get_name(_key.key, _key.modi));
} }
} }
} }

View file

@ -0,0 +1,62 @@
/// @description init
event_inherited();
#region data
dialog_w = ui(600);
dialog_h = ui(360);
dialog_resizable = true;
destroy_on_click_out = true;
onResize = function() {
sp_noti.resize(dialog_w - ui(80), dialog_h - ui(88));
}
current_page = 0;
filter = NOTI_TYPE.log | NOTI_TYPE.warning | NOTI_TYPE.error;
sp_noti = new scrollPane(dialog_w - ui(80), dialog_h - ui(88), function(_y, _m) {
draw_clear_alpha(c_ui_blue_black, 0);
var hh = 32;
var yy = _y;
var txw = sp_noti.w - ui(48 + 16 + 20);
for( var i = 0; i < ds_list_size(STATUSES); i++ ) {
var noti = STATUSES[| i];
if(noti.type & filter == 0) continue;
var _w = sp_noti.w - ui(12);
var _h = ui(8) + string_height_ext(noti.txt, -1, txw) + ui(8);
draw_sprite_stretched_ext(s_node_name, 0, 0, yy + ui(2), _w, _h - ui(4), c_ui_blue_grey, 1);
if(noti.life_max > 0) {
var _nwx = sp_noti.w - ui(12) - ui(44);
var _nw = _nwx * noti.life / noti.life_max;
draw_sprite_stretched_ext(s_node_name, 0, ui(44), yy + ui(2), _nw, _h - ui(4), c_ui_blue_ltgrey, 0.5);
}
draw_sprite_stretched_ext(s_node_name, 0, 0, yy + ui(2), ui(48), _h - ui(4), noti.color, 1);
if(noti.icon)
draw_sprite_ui(noti.icon, 1, ui(24), yy + _h / 2);
draw_set_text(f_p1, fa_left, fa_center, c_ui_blue_white);
draw_text_ext(ui(48 + 16), yy + _h / 2, noti.txt, -1, txw);
if(noti.onClick != noone && point_in_rectangle(_m[0], _m[1], 0, yy, _w, yy + _h - ui(4))) {
draw_sprite_stretched_ext(s_node_active, 0, 0, yy + ui(2), _w, _h - ui(4), c_white, 1);
if(mouse_check_button_pressed(mb_left))
noti.onClick();
}
yy += _h;
hh += _h;
}
return hh;
})
#endregion

View file

@ -0,0 +1,36 @@
/// @description init
if !ready exit;
#region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion
#region text
draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + ui(24), dialog_y + ui(16), "Notification");
var ww = ui(32);
var hh = ui(32);
var bx = dialog_x + dialog_w - ui(24) - ww;
var by = dialog_y + ui(16) + line_height() / 2 - hh / 2;
var error = !!(filter & NOTI_TYPE.error);
if(buttonInstant(s_button_hide, bx, by, ww, hh, mouse_ui, sFOCUS, sHOVER,, s_noti_icon_error, error, c_white, 0.3 + error * 0.7) == 2)
filter = filter ^ NOTI_TYPE.error;
bx -= ui(36);
var warn = !!(filter & NOTI_TYPE.warning);
if(buttonInstant(s_button_hide, bx, by, ww, hh, mouse_ui, sFOCUS, sHOVER,, s_noti_icon_warning, warn, c_white, 0.3 + warn * 0.7) == 2)
filter = filter ^ NOTI_TYPE.warning;
bx -= ui(36);
var log = !!(filter & NOTI_TYPE.log);
if(buttonInstant(s_button_hide, bx, by, ww, hh, mouse_ui, sFOCUS, sHOVER,, s_noti_icon_log, log, c_white, 0.3 + log * 0.7) == 2)
filter = filter ^ NOTI_TYPE.log;
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(24), dialog_y + ui(48), dialog_w - ui(48), dialog_h - ui(72));
sp_noti.active = sHOVER;
sp_noti.draw(dialog_x + ui(40), dialog_y + ui(56));
#endregion

View file

@ -0,0 +1,37 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_notifications",
"spriteId": null,
"solid": false,
"visible": true,
"managed": true,
"spriteMaskId": null,
"persistent": false,
"parentObjectId": {
"name": "_p_dialog",
"path": "objects/_p_dialog/_p_dialog.yy",
},
"physicsObject": false,
"physicsSensor": false,
"physicsShape": 1,
"physicsGroup": 1,
"physicsDensity": 0.5,
"physicsRestitution": 0.1,
"physicsLinearDamping": 0.1,
"physicsAngularDamping": 0.1,
"physicsFriction": 0.2,
"physicsStartAwake": true,
"physicsKinematic": false,
"physicsShapePoints": [],
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
],
"properties": [],
"overriddenProperties": [],
"parent": {
"name": "dialog",
"path": "folders/dialog.yy",
},
}

View file

@ -0,0 +1,38 @@
{
"spriteId": null,
"solid": false,
"visible": true,
"spriteMaskId": null,
"persistent": false,
"parentObjectId": {
"name": "_p_dialog",
"path": "objects/_p_dialog/_p_dialog.yy",
},
"physicsObject": false,
"physicsSensor": false,
"physicsShape": 1,
"physicsGroup": 1,
"physicsDensity": 0.5,
"physicsRestitution": 0.1,
"physicsLinearDamping": 0.1,
"physicsAngularDamping": 0.1,
"physicsFriction": 0.2,
"physicsStartAwake": true,
"physicsKinematic": false,
"physicsShapePoints": [],
"eventList": [
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
{"isDnD":false,"eventNum":0,"eventType":2,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
],
"properties": [],
"overriddenProperties": [],
"parent": {
"name": "dialog",
"path": "folders/dialog.yy",
},
"resourceVersion": "1.0",
"name": "o_dialog_warning",
"tags": [],
"resourceType": "GMObject",
}

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 240 + 16 + 540; dialog_w = ui(796);
dialog_h = 432; dialog_h = ui(432);
destroy_on_click_out = true; destroy_on_click_out = true;
name = "Palette editor"; name = "Palette editor";
@ -20,7 +20,7 @@ event_inherited();
sat = 0; sat = 0;
val = 0; val = 0;
color_surface = surface_create(256, 256); color_surface = surface_create_valid(ui(256), ui(256));
onApply = -1; onApply = -1;
@ -127,22 +127,22 @@ event_inherited();
} }
presetCollect(); presetCollect();
sp_preset_w = 240 - 32 - 16; sp_preset_w = ui(240 - 32 - 16);
sp_presets = new scrollPane(sp_preset_w, dialog_h - 44 - 18, function(_y, _m) { sp_presets = new scrollPane(sp_preset_w, dialog_h - ui(62), function(_y, _m) {
var ww = sp_preset_w - 32 - 8; var ww = sp_preset_w - ui(40);
var hh = 32; var hh = ui(32);
var yy = _y + 8; var yy = _y + ui(8);
var hg = 52; var hg = ui(52);
draw_clear_alpha(c_ui_blue_black, 0); draw_clear_alpha(c_ui_blue_black, 0);
for(var i = 0; i < ds_list_size(presets); i++) { for(var i = 0; i < ds_list_size(presets); i++) {
draw_sprite_stretched(s_ui_panel_bg, 1, 4, yy, sp_preset_w - 16, hg); draw_sprite_stretched(s_ui_panel_bg, 1, ui(4), yy, sp_preset_w - ui(16), hg);
draw_set_text(f_p2, fa_left, fa_top, c_ui_blue_ltgrey); draw_set_text(f_p2, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(16, yy + 8, preset_name[| i]); draw_text(ui(16), yy + ui(8), preset_name[| i]);
drawPalette(presets[| i], 16, yy + 24, ww, 16); drawPalette(presets[| i], ui(16), yy + ui(28), ww, ui(16));
if(FOCUS == self && point_in_rectangle(_m[0], _m[1], 4, yy, 4 + sp_preset_w - 16, yy + hg)) { if(sFOCUS && point_in_rectangle(_m[0], _m[1], ui(4), yy, ui(4) + sp_preset_w - ui(16), yy + hg)) {
if(mouse_check_button_pressed(mb_left)) { if(mouse_check_button_pressed(mb_left)) {
palette = array_create(array_length(presets[| i])); palette = array_create(array_length(presets[| i]));
for( var j = 0; j < array_length(presets[| i]); j++ ) { for( var j = 0; j < array_length(presets[| i]); j++ ) {
@ -151,8 +151,8 @@ event_inherited();
} }
} }
yy += hg + 4; yy += hg + ui(4);
hh += hg + 4; hh += hg + ui(4);
} }
return hh; return hh;
@ -184,6 +184,6 @@ event_inherited();
#region resize #region resize
onResize = function() { onResize = function() {
sp_presets.resize(sp_preset_w, dialog_h - 44 - 18); sp_presets.resize(sp_preset_w, dialog_h - ui(62));
} }
#endregion #endregion

View file

@ -15,10 +15,10 @@ if palette == 0 exit;
if(dropper_active == 2) instance_destroy(); if(dropper_active == 2) instance_destroy();
} }
var dx = mouse_mx + 36; var dx = mouse_mx + ui(36);
var dy = mouse_my + 36; var dy = mouse_my + ui(36);
draw_sprite_stretched(s_color_picker_sample, 0, dx - 20, dy - 20, 40, 40); draw_sprite_stretched(s_color_picker_sample, 0, dx - ui(20), dy - ui(20), ui(40), ui(40));
draw_sprite_stretched_ext(s_color_picker_sample, 0, dx - 18, dy - 18, 36, 36, dropper_color, 1); draw_sprite_stretched_ext(s_color_picker_sample, 0, dx - ui(18), dy - ui(18), ui(36), ui(36), dropper_color, 1);
exit; exit;
} }
@ -26,33 +26,33 @@ if palette == 0 exit;
#region base UI #region base UI
var presets_x = dialog_x; var presets_x = dialog_x;
var presets_w = 240; var presets_w = ui(240);
var content_x = dialog_x + presets_w + 16; var content_x = dialog_x + presets_w + ui(16);
var content_w = dialog_w - presets_w - 16; var content_w = dialog_w - presets_w - ui(16);
draw_sprite_stretched(s_dialog_bg, 0, presets_x, dialog_y, presets_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, presets_x, dialog_y, presets_w, dialog_h);
if(FOCUS == self) draw_sprite_stretched(s_dialog_active, 0, presets_x, dialog_y, presets_w, dialog_h); if(sFOCUS) draw_sprite_stretched(s_dialog_active, 0, presets_x, dialog_y, presets_w, dialog_h);
draw_sprite_stretched(s_dialog_bg, 0, content_x, dialog_y, content_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, content_x, dialog_y, content_w, dialog_h);
if(FOCUS == self) draw_sprite_stretched(s_dialog_active, 0, content_x, dialog_y, content_w, dialog_h); if(sFOCUS) draw_sprite_stretched(s_dialog_active, 0, content_x, dialog_y, content_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(presets_x + 24, dialog_y + 24, "Presets"); draw_text(presets_x + ui(24), dialog_y + ui(16), "Presets");
draw_text(content_x + 24, dialog_y + 24, name); draw_text(content_x + ui(24), dialog_y + ui(16), name);
#endregion #endregion
#region presets #region presets
draw_sprite_stretched(s_ui_panel_bg, 0, presets_x + 16, dialog_y + 44, 240 - 32, dialog_h - 44 - 16); draw_sprite_stretched(s_ui_panel_bg, 0, presets_x + ui(16), dialog_y + ui(44), ui(240 - 32), dialog_h - ui(60));
sp_presets.active = FOCUS == self; sp_presets.active = sFOCUS;
sp_presets.draw(presets_x + 16 + 8, dialog_y + 44); sp_presets.draw(presets_x + ui(24), dialog_y + ui(44));
var bx = presets_x + presets_w - 16 - 28; var bx = presets_x + presets_w - ui(44);
var by = dialog_y + 10; var by = dialog_y + ui(10);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Save current palette to preset", s_add_24) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Save current palette to preset", s_add_24) == 2) {
var dia = dialogCall(o_dialog_file_name, mouse_mx + 8, mouse_my + 8); var dia = dialogCall(o_dialog_file_name, mouse_mx + ui(8), mouse_my + ui(8));
dia.onModify = function (txt) { dia.onModify = function (txt) {
var file = file_text_open_write(txt + ".hex"); var file = file_text_open_write(txt + ".hex");
for(var i = 0; i < array_length(palette); i++) { for(var i = 0; i < array_length(palette); i++) {
@ -69,47 +69,47 @@ if palette == 0 exit;
}; };
dia.path = DIRECTORY + "Palettes/" dia.path = DIRECTORY + "Palettes/"
} }
bx -= 32; bx -= ui(32);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Refresh", s_refresh_16) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Refresh", s_refresh_16) == 2) {
presetCollect(); presetCollect();
} }
draw_sprite_ext(s_refresh_16, 0, bx + 14, by + 14, 1, 1, 0, c_ui_blue_grey, 1); draw_sprite_ui_uniform(s_refresh_16, 0, bx + ui(14), by + ui(14), 1, c_ui_blue_grey);
bx -= 32; bx -= ui(32);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Open palette folder", s_folder_24) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Open palette folder", s_folder_24) == 2) {
var _realpath = environment_get_variable("LOCALAPPDATA") + "\\Pixels_Composer\\Palettes"; var _realpath = environment_get_variable("LOCALAPPDATA") + "\\Pixels_Composer\\Palettes";
var _windir = environment_get_variable("WINDIR") + "\\explorer.exe"; var _windir = environment_get_variable("WINDIR") + "\\explorer.exe";
execute_shell(_windir, _realpath); execute_shell(_windir, _realpath);
} }
draw_sprite_ext(s_folder_24, 0, bx + 14, by + 14, 1, 1, 0, c_ui_blue_grey, 1); draw_sprite_ui_uniform(s_folder_24, 0, bx + ui(14), by + ui(14), 1, c_ui_blue_grey);
bx -= 32; bx -= ui(32);
#endregion #endregion
#region palette #region palette
var pl_x = content_x + 60; var pl_x = content_x + ui(60);
var pl_y = dialog_y + 54; var pl_y = dialog_y + ui(54);
var pl_w = content_w - 154; var pl_w = content_w - ui(154);
var pl_h = 24; var pl_h = ui(24);
var max_col = 8; var max_col = 8;
var col = min(array_length(palette), max_col); var col = min(array_length(palette), max_col);
var row = ceil(array_length(palette) / col); var row = ceil(array_length(palette) / col);
var ww = pl_w / col; var ww = pl_w / col;
var hh = (pl_h + 6) * row; var hh = (pl_h + ui(6)) * row;
dialog_h = 400 + hh; dialog_h = ui(400) + hh;
draw_sprite_stretched(s_textbox, 0, pl_x - 6, pl_y - 6, pl_w + 12, hh + 6); draw_sprite_stretched(s_textbox, 0, pl_x - ui(6), pl_y - ui(6), pl_w + ui(12), hh + ui(6));
#region tools #region tools
var bx = content_x + content_w - 22 - 28; var bx = content_x + content_w - ui(50);
var by = dialog_y + 16; var by = dialog_y + ui(16);
if(buttonInstant(s_button_hide, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Sort color", s_sort_24) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Sort color", s_sort_24) == 2) {
sortPalette(); sortPalette();
} }
bx -= 32; bx -= ui(32);
#endregion #endregion
var hover = -1; var hover = -1;
@ -119,11 +119,11 @@ if palette == 0 exit;
if(index >= array_length(palette)) break; if(index >= array_length(palette)) break;
var _p = palette[index]; var _p = palette[index];
var _kx = pl_x + j * ww; var _kx = pl_x + j * ww;
var _ky = pl_y + i * (pl_h + 6); var _ky = pl_y + i * (pl_h + ui(6));
draw_sprite_stretched_ext(s_color_picker_sample, index == index_selecting, _kx + 2, _ky, ww - 4, pl_h, _p, 1); draw_sprite_stretched_ext(s_color_picker_sample, index == index_selecting, _kx + ui(2), _ky, ww - ui(4), pl_h, _p, 1);
if(HOVER == self && point_in_rectangle(mouse_mx, mouse_my, _kx, _ky, _kx + ww, _ky + pl_h)) { if(sHOVER && point_in_rectangle(mouse_mx, mouse_my, _kx, _ky, _kx + ww, _ky + pl_h)) {
if(index_dragging > -1 && index_dragging != index) { if(index_dragging > -1 && index_dragging != index) {
draw_set_color(c_ui_blue_grey); draw_set_color(c_ui_blue_grey);
draw_line_width(_kx - 1, _ky, _kx - 1, _ky + pl_h, 2); draw_line_width(_kx - 1, _ky, _kx - 1, _ky + pl_h, 2);
@ -148,7 +148,7 @@ if palette == 0 exit;
} }
} }
if(FOCUS == self) { if(sFOCUS) {
if(mouse_check_button_pressed(mb_left)) { if(mouse_check_button_pressed(mb_left)) {
if(hover > -1) { if(hover > -1) {
index_selecting = hover; index_selecting = hover;
@ -159,40 +159,40 @@ if palette == 0 exit;
} }
} }
var bx = content_x + content_w - 22 - 28; var bx = content_x + content_w - ui(50);
var by = pl_y - 2; var by = pl_y - ui(2);
if(array_length(palette) > 1) { if(array_length(palette) > 1) {
if(buttonInstant(s_button, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_minus_24) == 2) { if(buttonInstant(s_button, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "", s_minus_24) == 2) {
array_resize(palette, array_length(palette) - 1); array_resize(palette, array_length(palette) - 1);
} }
} else { } else {
draw_sprite_ext(s_minus_24, 0, bx + 14, by + 14, 1, 1, 0, c_ui_blue_grey, 0.5); draw_sprite_ui_uniform(s_minus_24, 0, bx + ui(14), by + ui(14), 1, c_ui_blue_grey, 0.5);
} }
bx -= 32; bx -= ui(32);
if(buttonInstant(s_button, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_add_24) == 2) { if(buttonInstant(s_button, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "", s_add_24) == 2) {
palette[array_length(palette)] = c_black; palette[array_length(palette)] = c_black;
} }
bx = content_x + 18; bx = content_x + ui(18);
if(buttonInstant(s_button, bx, by, 28, 28, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Load palette file (.hex)", s_file) == 2) { if(buttonInstant(s_button, bx, by, ui(28), ui(28), mouse_ui, sFOCUS, sHOVER, "Load palette file (.hex)", s_file) == 2) {
var path = get_open_filename(".hex", ""); var path = get_open_filename(".hex", "");
if(path != "") if(path != "")
palette = loadPalette(path); palette = loadPalette(path);
} }
draw_sprite_ext(s_file, 0, bx + 14, by + 14, 1, 1, 0, c_ui_blue_grey, 1); draw_sprite_ui_uniform(s_file, 0, bx + ui(14), by + ui(14), 1, c_ui_blue_grey);
#endregion #endregion
#region color surface #region color surface
var col_x = content_x + 20; var col_x = content_x + ui(20);
var col_y = dialog_y + 70 + hh; var col_y = dialog_y + ui(70) + hh;
draw_sprite_stretched(s_ui_panel_bg, 0, col_x - 8, col_y - 8, 256 + 16, 256 + 16); draw_sprite_stretched(s_ui_panel_bg, 0, col_x - ui(8), col_y - ui(8), ui(256 + 16), ui(256 + 16));
if(!is_surface(color_surface)) color_surface = surface_create(256, 256); if(!is_surface(color_surface)) color_surface = surface_create_valid(ui(256), ui(256));
surface_set_target(color_surface); surface_set_target(color_surface);
draw_sprite_ext(s_fx_pixel, 0, 0, 0, 256, 256, 0, c_white, 1); draw_sprite_ext(s_fx_pixel, 0, 0, 0, ui(256), ui(256), 0, c_white, 1);
surface_reset_target(); surface_reset_target();
shader_set(sh_color_picker); shader_set(sh_color_picker);
@ -204,32 +204,32 @@ if palette == 0 exit;
#endregion #endregion
#region selector #region selector
var hue_x = content_x + 300; var hue_x = content_x + ui(300);
var hue_y = col_y; var hue_y = col_y;
draw_sprite_stretched(s_ui_panel_bg, 0, hue_x - 8, hue_y - 8, 32, 256 + 16); draw_sprite_stretched(s_ui_panel_bg, 0, hue_x - ui(8), hue_y - ui(8), ui(32), ui(256 + 16));
for(var i = 0; i < 256; i++) { for(var i = 0; i < 256; i++) {
draw_set_color(make_color_hsv(i, 255, 255)); draw_set_color(make_color_hsv(i, 255, 255));
draw_rectangle(hue_x, hue_y + i, hue_x + 16, hue_y + i + 1, false); draw_rectangle(hue_x, hue_y + ui(i), hue_x + ui(16), hue_y + ui(i + 1), false);
} }
var hy = hue_y + hue; var hy = hue_y + ui(hue);
draw_sprite_stretched_ext(s_ui_base_white, 0, hue_x - 3, hy - 6, 24, 10, make_color_hsv(hue, 255, 255), 1); draw_sprite_stretched_ext(s_ui_base_white, 0, hue_x - ui(3), hy - ui(6), ui(24), ui(10), make_color_hsv(hue, 255, 255), 1);
draw_sprite_stretched_ext(s_ui_base_white, 0, col_x + sat - 6, col_y + 256 - val - 6, 12, 12, current_color, 1); draw_sprite_stretched_ext(s_ui_base_white, 0, col_x + ui(sat - 6), col_y + ui(256 - val - 6), ui(12), ui(12), current_color, 1);
if(FOCUS == self) { if(sFOCUS) {
if(mouse_check_button_pressed(mb_left)) { if(mouse_check_button_pressed(mb_left)) {
if(point_in_rectangle(mouse_mx, mouse_my, hue_x, hue_y, hue_x + 16, hue_y + 256)) { if(point_in_rectangle(mouse_mx, mouse_my, hue_x, hue_y, hue_x + ui(16), hue_y + ui(256))) {
hue_dragging = true; hue_dragging = true;
} else if(point_in_rectangle(mouse_mx, mouse_my, col_x, col_y, col_x + 256, col_y + 256)) { } else if(point_in_rectangle(mouse_mx, mouse_my, col_x, col_y, col_x + ui(256), col_y + ui(256))) {
value_draggin = true; value_draggin = true;
} }
} }
} }
if(hue_dragging) { if(hue_dragging) {
hue = clamp(mouse_my - hue_y, 0, 256); hue = clamp((mouse_my - hue_y) / UI_SCALE, 0, 256);
setHSV(); setHSV();
if(mouse_check_button_released(mb_left)) if(mouse_check_button_released(mb_left))
@ -237,11 +237,8 @@ if palette == 0 exit;
} }
if(value_draggin) { if(value_draggin) {
var smx = mouse_mx - col_x; sat = clamp((mouse_mx - col_x) / UI_SCALE, 0, 256);
var smy = mouse_my - col_y; val = 256 - clamp((mouse_my - col_y) / UI_SCALE, 0, 256);
sat = clamp(smx, 0, 256);
val = 256 - clamp(smy, 0, 256);
setHSV(); setHSV();
if(mouse_check_button_released(mb_left)) if(mouse_check_button_released(mb_left))
@ -250,59 +247,59 @@ if palette == 0 exit;
#endregion #endregion
#region data #region data
var data_x = hue_x + 40; var data_x = hue_x + ui(40);
var data_y = col_y; var data_y = col_y;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(data_x, data_y + 40 * 0 + 17, "Hue"); draw_text(data_x, data_y + ui(40 * 0 + 17), "Hue");
draw_text(data_x, data_y + 40 * 1 + 17, "Saturation") draw_text(data_x, data_y + ui(40 * 1 + 17), "Saturation")
draw_text(data_x, data_y + 40 * 2 + 17, "Value"); draw_text(data_x, data_y + ui(40 * 2 + 17), "Value");
tb_hue.active = FOCUS == self; tb_hue.hover = HOVER == self; tb_hue.active = sFOCUS; tb_hue.hover = sHOVER;
tb_sat.active = FOCUS == self; tb_sat.hover = HOVER == self; tb_sat.active = sFOCUS; tb_sat.hover = sHOVER;
tb_val.active = FOCUS == self; tb_val.hover = HOVER == self; tb_val.active = sFOCUS; tb_val.hover = sHOVER;
tb_hue.draw(data_x + 80, data_y + 44 * 0, 100, 34, round(color_get_hue(current_color)), [mouse_mx, mouse_my]); tb_hue.draw(data_x + ui(80), data_y + ui(44 * 0), ui(100), TEXTBOX_HEIGHT, round(color_get_hue(current_color)), mouse_ui);
tb_sat.draw(data_x + 80, data_y + 44 * 1, 100, 34, round(color_get_saturation(current_color)), [mouse_mx, mouse_my]); tb_sat.draw(data_x + ui(80), data_y + ui(44 * 1), ui(100), TEXTBOX_HEIGHT, round(color_get_saturation(current_color)), mouse_ui);
tb_val.draw(data_x + 80, data_y + 44 * 2, 100, 34, round(color_get_value(current_color)), [mouse_mx, mouse_my]); tb_val.draw(data_x + ui(80), data_y + ui(44 * 2), ui(100), TEXTBOX_HEIGHT, round(color_get_value(current_color)), mouse_ui);
data_y = data_y + 44 * 3 + 8; data_y = data_y + ui(44 * 3 + 8);
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(data_x, data_y + 40 * 0 + 17, "Red"); draw_text(data_x, data_y + ui(40 * 0 + 17), "Red");
draw_text(data_x, data_y + 40 * 1 + 17, "Green"); draw_text(data_x, data_y + ui(40 * 1 + 17), "Green");
draw_text(data_x, data_y + 40 * 2 + 17, "Blue"); draw_text(data_x, data_y + ui(40 * 2 + 17), "Blue");
tb_red.active = FOCUS == self; tb_red.hover = HOVER == self; tb_red.active = sFOCUS; tb_red.hover = sHOVER;
tb_green.active = FOCUS == self; tb_green.hover = HOVER == self; tb_green.active = sFOCUS; tb_green.hover = sHOVER;
tb_blue.active = FOCUS == self; tb_blue.hover = HOVER == self; tb_blue.active = sFOCUS; tb_blue.hover = sHOVER;
tb_red.draw (data_x + 80, data_y + 44 * 0, 100, 34, color_get_red(current_color), [mouse_mx, mouse_my]); tb_red.draw (data_x + ui(80), data_y + ui(44 * 0), ui(100), TEXTBOX_HEIGHT, color_get_red(current_color), mouse_ui);
tb_green.draw(data_x + 80, data_y + 44 * 1, 100, 34, color_get_green(current_color), [mouse_mx, mouse_my]); tb_green.draw(data_x + ui(80), data_y + ui(44 * 1), ui(100), TEXTBOX_HEIGHT, color_get_green(current_color), mouse_ui);
tb_blue.draw (data_x + 80, data_y + 44 * 2, 100, 34, color_get_blue(current_color), [mouse_mx, mouse_my]); tb_blue.draw (data_x + ui(80), data_y + ui(44 * 2), ui(100), TEXTBOX_HEIGHT, color_get_blue(current_color), mouse_ui);
tb_hex.active = FOCUS == self; tb_hex.hover = HOVER == self; tb_hex.active = sFOCUS; tb_hex.hover = sHOVER;
tb_hex.draw(hue_x - 108 - 20, data_y + 44 * 3, 108, 34, color_get_hex(current_color), [mouse_mx, mouse_my]); tb_hex.draw(hue_x - ui(128), data_y + ui(44 * 3), ui(108), TEXTBOX_HEIGHT, color_get_hex(current_color), mouse_ui);
#endregion #endregion
#region controls #region controls
var cx = content_x + 36; var cx = content_x + ui(36);
var cy = dialog_y + dialog_h - 36; var cy = dialog_y + dialog_h - ui(36);
draw_sprite_stretched(s_color_picker_sample, 0, cx - 20, cy - 20, 40, 40); draw_sprite_stretched(s_color_picker_sample, 0, cx - ui(20), cy - ui(20), ui(40), ui(40));
draw_sprite_stretched_ext(s_color_picker_sample, 0, cx - 18, cy - 18, 36, 36, current_color, 1); draw_sprite_stretched_ext(s_color_picker_sample, 0, cx - ui(18), cy - ui(18), ui(36), ui(36), current_color, 1);
var bx = content_x + content_w - 36; var bx = content_x + content_w - ui(36);
var by = dialog_y + dialog_h - 36; var by = dialog_y + dialog_h - ui(36);
if(buttonInstant(s_button_lime, bx - 18, by - 18, 36, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_icon_accept_24, 0, c_ui_blue_black) == 2) { if(buttonInstant(s_button_lime, bx - ui(18), by - ui(18), ui(36), ui(36), mouse_ui, sFOCUS, sHOVER, "", s_icon_accept_24, 0, c_ui_blue_black) == 2) {
onApply(palette); onApply(palette);
instance_destroy(); instance_destroy();
} }
var bx = content_x + 80; var bx = content_x + ui(80);
var by = dialog_y + dialog_h - 36; var by = dialog_y + dialog_h - ui(36);
if(buttonInstant(s_button_hide, bx - 18, by - 18, 36, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "", s_color_picker_dropper, 0, c_white) == 2) { if(buttonInstant(s_button_hide, bx - ui(18), by - ui(18), ui(36), ui(36), mouse_ui, sFOCUS, sHOVER, "", s_color_picker_dropper, 0, c_white) == 2) {
dropper_active = true; dropper_active = true;
} }
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_palette",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,10 +25,10 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
{"isDnD":false,"eventNum":1,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":1,"eventType":3,"collisionObjectId":null,},
{"isDnD":false,"eventNum":75,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":75,"eventType":8,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -32,8 +36,4 @@
"name": "selector", "name": "selector",
"path": "folders/dialog/selector.yy", "path": "folders/dialog/selector.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_palette",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 640; dialog_w = ui(640);
dialog_h = 480; dialog_h = ui(480);
destroy_on_click_out = true; destroy_on_click_out = true;
destroy_on_escape = false; destroy_on_escape = false;
@ -11,14 +11,12 @@ event_inherited();
#region resize #region resize
dialog_resizable = true; dialog_resizable = true;
dialog_w_min = 640; dialog_w_min = ui(640);
dialog_h_min = 400; dialog_h_min = ui(480);
dialog_w_max = 1200;
dialog_h_max = 800;
onResize = function() { onResize = function() {
sp_pref.resize(dialog_w - 160 - 32, dialog_h - 56 - 24); sp_pref.resize(dialog_w - ui(192), dialog_h - ui(80));
sp_hotkey.resize(dialog_w - 160 - 32, dialog_h - 56 - 24); sp_hotkey.resize(dialog_w - ui(192), dialog_h - ui(80));
} }
#endregion #endregion
@ -40,15 +38,24 @@ event_inherited();
}) })
]); ]);
PREF_MAP[? "_display_scaling"] = PREF_MAP[? "display_scaling"];
ds_list_add(pref_global, [ ds_list_add(pref_global, [
"GUI scaling", "GUI scaling",
"display_scaling", "_display_scaling",
new slider(0.5, 2, 0.01, function(val) { new slider(0.5, 2, 0.01, function(val) {
PREF_MAP[? "display_scaling"] = val; PREF_MAP[? "_display_scaling"] = val;
PREF_SAVE(); PREF_SAVE();
}, function() { }, function() {
PREF_MAP[? "_display_scaling"] = clamp(PREF_MAP[? "_display_scaling"], 0.5, 2);
if(PREF_MAP[? "display_scaling"] == PREF_MAP[? "_display_scaling"])
return;
PREF_MAP[? "display_scaling"] = PREF_MAP[? "_display_scaling"];
setPanel(); setPanel();
loadFonts(); loadFonts();
time_source_start(time_source_create(time_source_global, 1, time_source_units_frames, onResize));
}) })
]); ]);
@ -151,13 +158,13 @@ event_inherited();
current_list = pref_global; current_list = pref_global;
sp_pref = new scrollPane(dialog_w - 160 - 32, dialog_h - 64 - 24, function(_y, _m) { sp_pref = new scrollPane(dialog_w - ui(192), dialog_h - ui(88), function(_y, _m) {
draw_clear_alpha(c_ui_blue_black, 0); draw_clear_alpha(c_ui_blue_black, 0);
var hh = 0; var hh = 0;
var th = 34; var th = TEXTBOX_HEIGHT;
var x1 = dialog_w - 160 - 32 - 8; var x1 = dialog_w - ui(200);
var yy = _y + 8; var yy = _y + ui(8);
var padd = 6; var padd = ui(6);
var ind = 0; var ind = 0;
for(var i = 0; i < ds_list_size(current_list); i++) { for(var i = 0; i < ds_list_size(current_list); i++) {
@ -165,9 +172,9 @@ event_inherited();
if(is_string(_pref)) { if(is_string(_pref)) {
draw_set_text(f_p0b, fa_left, fa_top, c_ui_blue_grey); draw_set_text(f_p0b, fa_left, fa_top, c_ui_blue_grey);
draw_text(8, yy, _pref); draw_text(ui(16), yy, _pref);
yy += string_height(_pref) + 8; yy += string_height(_pref) + ui(8);
hh += string_height(_pref) + 8; hh += string_height(_pref) + ui(8);
ind = 0; ind = 0;
continue; continue;
} }
@ -176,27 +183,27 @@ event_inherited();
if(search_text == "" || string_pos(string_lower(search_text), string_lower(name)) > 0) { if(search_text == "" || string_pos(string_lower(search_text), string_lower(name)) > 0) {
if(ind % 2 == 0) if(ind % 2 == 0)
draw_sprite_stretched_ext(s_ui_panel_bg, 0, 0, yy - padd, dialog_w - 200, th + padd * 2, c_ui_blue_white, 1); draw_sprite_stretched_ext(s_ui_panel_bg, 0, 0, yy - padd, sp_pref.w, th + padd * 2, c_ui_blue_white, 1);
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(8, yy + 17, _pref[0]); draw_text(ui(8), yy + th / 2, _pref[0]);
_pref[2].active = FOCUS == self; _pref[2].active = sFOCUS;
_pref[2].hover = HOVER == self; _pref[2].hover = sHOVER;
switch(instanceof(_pref[2])) { switch(instanceof(_pref[2])) {
case "textBox" : case "textBox" :
_pref[2].draw(x1 - 4 - 96, yy, 96, 34, PREF_MAP[? _pref[1]], _m); _pref[2].draw(x1 - ui(4), yy + th / 2, ui(88), th, PREF_MAP[? _pref[1]], _m,, fa_right, fa_center);
break; break;
case "checkBox" : case "checkBox" :
_pref[2].draw(x1 - 36, yy + 2, PREF_MAP[? _pref[1]], _m); _pref[2].draw(x1 - ui(48), yy + th / 2, PREF_MAP[? _pref[1]], _m,, fa_center, fa_center);
break; break;
case "slider" : case "slider" :
_pref[2].draw(x1 - 4 - 200, yy + 2, 200, 34, PREF_MAP[? _pref[1]], _m); _pref[2].draw(x1 - ui(4), yy + th / 2, ui(200), th, PREF_MAP[? _pref[1]], _m, ui(88), fa_right, fa_center);
break; break;
} }
yy += th + padd + 8; yy += th + padd + ui(8);
hh += th + padd + 8; hh += th + padd + ui(8);
ind++; ind++;
} }
} }
@ -221,12 +228,12 @@ event_inherited();
]; ];
hk_editing = noone; hk_editing = noone;
sp_hotkey = new scrollPane(dialog_w - 160 - 32, dialog_h - 64 - 24, function(_y, _m) { sp_hotkey = new scrollPane(dialog_w - ui(192), dialog_h - ui(88), function(_y, _m) {
draw_clear_alpha(c_ui_blue_black, 0); draw_clear_alpha(c_ui_blue_black, 0);
var padd = 8; var padd = ui(8);
var hh = 0; var hh = 0;
var currGroup = -1; var currGroup = -1;
var x1 = dialog_w - 160 - 32; var x1 = dialog_w - ui(192);
for(var j = 0; j < ds_list_size(HOTKEY_CONTEXT); j++) { for(var j = 0; j < ds_list_size(HOTKEY_CONTEXT); j++) {
var ll = HOTKEYS[? HOTKEY_CONTEXT[| j]]; var ll = HOTKEYS[? HOTKEY_CONTEXT[| j]];
@ -242,11 +249,11 @@ event_inherited();
continue; continue;
if(group != currGroup) { if(group != currGroup) {
if(group != "") hh += 12; if(group != "") hh += ui(12);
draw_set_text(f_p0b, fa_left, fa_top, c_ui_blue_grey); draw_set_text(f_p0b, fa_left, fa_top, c_ui_blue_grey);
draw_text(32, _y + hh, group == ""? "Global" : group); draw_text(ui(16), _y + hh, group == ""? "Global" : group);
hh += string_height("l") + 16; hh += string_height("l") + ui(16);
currGroup = group; currGroup = group;
} }
draw_set_text(f_p0, fa_left, fa_top, c_white); draw_set_text(f_p0, fa_left, fa_top, c_white);
@ -254,11 +261,11 @@ event_inherited();
if(i % 2 == 0) { if(i % 2 == 0) {
draw_sprite_stretched_ext(s_ui_panel_bg, 0, 0, _y + hh - padd, draw_sprite_stretched_ext(s_ui_panel_bg, 0, 0, _y + hh - padd,
dialog_w - 160 - 32, th + padd * 2, c_ui_blue_white, 1); sp_hotkey.w, th + padd * 2, c_ui_blue_white, 1);
} }
draw_set_text(f_p0, fa_left, fa_top, c_white); draw_set_text(f_p0, fa_left, fa_top, c_white);
draw_text(16, _y + hh, name); draw_text(ui(16), _y + hh, name);
var dk = key_get_name(key.key, key.modi); var dk = key_get_name(key.key, key.modi);
var kw = string_width(dk); var kw = string_width(dk);
@ -298,15 +305,15 @@ event_inherited();
PREF_SAVE(); PREF_SAVE();
} }
draw_sprite_stretched(s_button_hide, 2, x1 - 24 - kw - 16, _y + hh - 6, kw + 32, th + 12); draw_sprite_stretched(s_button_hide, 2, x1 - ui(40) - kw, _y + hh - ui(6), kw + ui(32), th + ui(12));
} else { } else {
if(buttonInstant(s_button_hide, x1 - 24 - kw - 16, _y + hh - 6, kw + 32, th + 12, _m, FOCUS == self, HOVER == self) == 2) { if(buttonInstant(s_button_hide, x1 - ui(40) - kw, _y + hh - ui(6), kw + ui(32), th + ui(12), _m, sFOCUS, sHOVER) == 2) {
hk_editing = key; hk_editing = key;
keyboard_lastchar = pkey; keyboard_lastchar = pkey;
} }
} }
draw_set_text(f_p0, fa_right, fa_top, hk_editing == key? c_ui_orange : c_white); draw_set_text(f_p0, fa_right, fa_top, hk_editing == key? c_ui_orange : c_white);
draw_text(x1 - 24, _y + hh, dk); draw_text(x1 - ui(24), _y + hh, dk);
hh += th + padd * 2; hh += th + padd * 2;
} }

View file

@ -3,56 +3,58 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Preferences"); draw_text(dialog_x + ui(24), dialog_y + ui(16), "Preferences");
var titlebar_h = ui(16) + line_height(f_p0, 16);
#endregion #endregion
#region page #region page
var yy = dialog_y + 64; var yy = dialog_y + titlebar_h;
var hh = yy - 8; var yl = yy - ui(8);
var hg = 36; var hg = line_height(f_p0, 8);
for(var i = 0; i < array_length(page); i++) { for(var i = 0; i < array_length(page); i++) {
draw_set_text(f_p0, fa_left, fa_center, c_white); draw_set_text(f_p0, fa_left, fa_center, c_white);
if(i == page_current) { if(i == page_current) {
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + 16, hh, 160, hg); draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(16), yl, ui(160), hg);
} else if(point_in_rectangle(mouse_mx, mouse_my, dialog_x, hh, dialog_x + 160, hh + hg)) { } else if(point_in_rectangle(mouse_mx, mouse_my, dialog_x, yl, dialog_x + ui(160), yl + hg)) {
draw_sprite_stretched_ext(s_ui_panel_bg, 0, dialog_x + 16, hh, 160, hg, c_white, 0.5); draw_sprite_stretched_ext(s_ui_panel_bg, 0, dialog_x + ui(16), yl, ui(160), hg, c_white, 0.5);
if(mouse_check_button(mb_left)) if(mouse_check_button(mb_left))
page_current = i; page_current = i;
} }
draw_text(dialog_x + 28, hh + hg / 2, page[i]); draw_text(dialog_x + ui(28), yl + hg / 2, page[i]);
hh += hg; yl += hg;
} }
#endregion #endregion
#region draw #region draw
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + 160, yy - 8, dialog_w - 160 - 16, dialog_h - 56 - 16); draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(160), yy - ui(8), dialog_w - ui(176), dialog_h - titlebar_h - ui(16));
tb_search.auto_update = true; tb_search.auto_update = true;
tb_search.no_empty = false; tb_search.no_empty = false;
tb_search.font = f_p1; tb_search.font = f_p1;
tb_search.active = FOCUS == self; tb_search.active = sFOCUS;
tb_search.hover = HOVER == self; tb_search.hover = sHOVER;
tb_search.draw(dialog_x + dialog_w - 16 - 200, dialog_y + 16, 200, 32, search_text, [mouse_mx, mouse_my]); tb_search.draw(dialog_x + dialog_w - ui(16), dialog_y + titlebar_h / 2, ui(200), TEXTBOX_HEIGHT, search_text, mouse_ui,, fa_right, fa_center);
draw_sprite_ext(s_search_16, 0, dialog_x + dialog_w - 16 - 200 - 16, dialog_y + 16 + 16, 1, 1, 0, c_ui_blue_grey, 1); draw_sprite_ui_uniform(s_search_16, 0, dialog_x + dialog_w - ui(232), dialog_y + titlebar_h / 2, 1, c_ui_blue_grey);
if(page_current == 0) { if(page_current == 0) {
current_list = pref_global; current_list = pref_global;
sp_pref.active = HOVER == self; sp_pref.active = sHOVER;
sp_pref.draw(dialog_x + 160 + 8, yy); sp_pref.draw(dialog_x + ui(168), yy);
} else if(page_current == 1) { } else if(page_current == 1) {
current_list = pref_node; current_list = pref_node;
sp_pref.active = HOVER == self; sp_pref.active = sHOVER;
sp_pref.draw(dialog_x + 160 + 8, yy); sp_pref.draw(dialog_x + ui(168), yy);
} else if(page_current == 2) { } else if(page_current == 2) {
if(mouse_check_button_pressed(mb_left)) hk_editing = noone; if(mouse_check_button_pressed(mb_left)) hk_editing = noone;
sp_hotkey.active = HOVER == self; sp_hotkey.active = sHOVER;
sp_hotkey.draw(dialog_x + 160 + 8, yy); sp_hotkey.draw(dialog_x + ui(168), yy);
} }
#endregion #endregion

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 280; dialog_w = ui(320);
dialog_h = 188; dialog_h = ui(260);
destroy_on_click_out = true; destroy_on_click_out = true;
#endregion #endregion
@ -11,13 +11,21 @@ event_inherited();
#region data #region data
cb_enable = new checkBox(function(str) { cb_enable = new checkBox(function(str) {
PANEL_PREVIEW.grid_show = !PANEL_PREVIEW.grid_show; PANEL_PREVIEW.grid_show = !PANEL_PREVIEW.grid_show;
}) });
tb_width = new textBox(TEXTBOX_INPUT.number, function(str) { tb_width = new textBox(TEXTBOX_INPUT.number, function(str) {
PANEL_PREVIEW.grid_width = max(1, real(str)); PANEL_PREVIEW.grid_width = max(1, real(str));
}) });
tb_height = new textBox(TEXTBOX_INPUT.number, function(str) { tb_height = new textBox(TEXTBOX_INPUT.number, function(str) {
PANEL_PREVIEW.grid_height = max(1, real(str)); PANEL_PREVIEW.grid_height = max(1, real(str));
}) });
sl_opacity = new slider(0, 1, .05, function(str) {
PANEL_PREVIEW.grid_opacity = clamp(real(str), 0, 1);
});
cl_color = buttonColor(function(color) {
PANEL_PREVIEW.grid_color = color;
});
#endregion #endregion

View file

@ -3,33 +3,48 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, "Grid settings"); draw_text(dialog_x + ui(24), dialog_y + ui(16), "Grid settings");
#endregion #endregion
#region draw #region draw
var yy = dialog_y + 44; var yy = dialog_y + ui(64);
var ww = ui(128);
cb_enable.active = FOCUS == self; cb_enable.active = sFOCUS;
cb_enable.hover = HOVER == self; cb_enable.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Enabled"); draw_text(dialog_x + ui(32), yy, "Enabled");
cb_enable.draw(dialog_x + dialog_w - 24 - 48 - 14, yy, PANEL_PREVIEW.grid_show, [mouse_mx, mouse_my]); cb_enable.draw(dialog_x + dialog_w - ww / 2, yy, PANEL_PREVIEW.grid_show, mouse_ui,, fa_center, fa_center);
yy += 44; yy += ui(40);
tb_width.active = FOCUS == self; tb_width.active = sFOCUS;
tb_width.hover = HOVER == self; tb_width.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Grid width"); draw_text(dialog_x + ui(32), yy, "Grid width");
tb_width.draw(dialog_x + dialog_w - 24 - 96, yy, 96, 34, PANEL_PREVIEW.grid_width, [mouse_mx, mouse_my]); tb_width.draw(dialog_x + dialog_w - ui(24), yy, ww, TEXTBOX_HEIGHT, PANEL_PREVIEW.grid_width, mouse_ui,, fa_right, fa_center);
yy += 44; yy += ui(40);
tb_height.active = FOCUS == self; tb_height.active = sFOCUS;
tb_height.hover = HOVER == self; tb_height.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white); draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + 32, yy + 17, "Grid height"); draw_text(dialog_x + ui(32), yy, "Grid height");
tb_height.draw(dialog_x + dialog_w - 24 - 96, yy, 96, 34, PANEL_PREVIEW.grid_height, [mouse_mx, mouse_my]); tb_height.draw(dialog_x + dialog_w - ui(24), yy, ww, TEXTBOX_HEIGHT, PANEL_PREVIEW.grid_height, mouse_ui,, fa_right, fa_center);
yy += ui(40);
sl_opacity.active = sFOCUS;
sl_opacity.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + ui(32), yy, "Grid opacity");
sl_opacity.draw(dialog_x + dialog_w - ui(24), yy, ww, TEXTBOX_HEIGHT, PANEL_PREVIEW.grid_opacity, mouse_ui, ui(52), fa_right, fa_center);
yy += ui(40);
cl_color.active = sFOCUS;
cl_color.hover = sHOVER;
draw_set_text(f_p1, fa_left, fa_center, c_white);
draw_text(dialog_x + ui(32), yy, "Grid Color");
cl_color.draw(dialog_x + dialog_w - ui(24) - ww, yy - TEXTBOX_HEIGHT / 2, ww, TEXTBOX_HEIGHT, PANEL_PREVIEW.grid_color, mouse_ui);
#endregion #endregion

View file

@ -2,8 +2,8 @@
event_inherited(); event_inherited();
#region data #region data
dialog_w = 600; dialog_w = ui(600);
dialog_h = 360; dialog_h = ui(360);
destroy_on_click_out = true; destroy_on_click_out = true;
note = ""; note = "";
@ -11,7 +11,7 @@ event_inherited();
var link = "https://gist.githubusercontent.com/Ttanasart-pt/e7ab670299ce6b00cfd632646f3ac9a8/raw/0.9.0"; var link = "https://gist.githubusercontent.com/Ttanasart-pt/e7ab670299ce6b00cfd632646f3ac9a8/raw/0.9.0";
node_get = http_get(link); node_get = http_get(link);
sp_note = new scrollPane(dialog_w - 80, dialog_h - 88, function(_y, _m) { sp_note = new scrollPane(dialog_w - ui(80), dialog_h - ui(88), function(_y, _m) {
draw_clear_alpha(c_ui_blue_black, 0); draw_clear_alpha(c_ui_blue_black, 0);
var yy = 0; var yy = 0;
var txt = note; var txt = note;
@ -32,36 +32,36 @@ event_inherited();
var sp = string_pos(" ", line); var sp = string_pos(" ", line);
var md = string_copy(line, 1, sp - 1); var md = string_copy(line, 1, sp - 1);
var ww = dialog_w - 128; var ww = dialog_w - ui(128);
var xx = (tab - 1) * 8; var xx = (tab - 1) * ui(8);
switch(md) { switch(md) {
case "#" : case "#" :
draw_set_text(f_h5, fa_left, fa_top, c_ui_blue_grey); draw_set_text(f_h5, fa_left, fa_top, c_ui_blue_grey);
line = string_copy(line, sp + 1, string_length(line) - sp); line = string_copy(line, sp + 1, string_length(line) - sp);
yy += 16; yy += ui(16);
draw_text_ext(xx, _y + yy, line, -1, ww); draw_text_ext(xx, _y + yy, line, -1, ww);
yy += 4; yy += ui(4);
break; break;
case "##" : case "##" :
draw_set_text(f_p0b, fa_left, fa_top, c_ui_blue_ltgrey); draw_set_text(f_p0b, fa_left, fa_top, c_ui_blue_ltgrey);
line = string_copy(line, sp + 1, string_length(line) - sp); line = string_copy(line, sp + 1, string_length(line) - sp);
yy += 8; yy += ui(8);
draw_text_ext(xx + 16, _y + yy, line, -1, ww); draw_text_ext(xx + ui(16), _y + yy, line, -1, ww);
yy += 4; yy += ui(4);
break; break;
case "-" : case "-" :
draw_set_text(f_p0, fa_left, fa_top, c_white); draw_set_text(f_p0, fa_left, fa_top, c_white);
line = string_copy(line, sp + 1, string_length(line) - sp); line = string_copy(line, sp + 1, string_length(line) - sp);
draw_sprite_ext(s_text_bullet, 0, xx + 16, _y + yy + 10, 1, 1, 0, c_ui_blue_grey, 1); draw_sprite_ui_uniform(s_text_bullet, 0, xx + ui(16), _y + yy + ui(10), 1, c_ui_blue_grey);
draw_text_ext(xx + 28, _y + yy, line, -1, ww); draw_text_ext(xx + ui(28), _y + yy, line, -1, ww);
break; break;
case "+" : case "+" :
draw_set_text(f_p0, fa_left, fa_top, c_white); draw_set_text(f_p0, fa_left, fa_top, c_white);
line = string_copy(line, sp + 1, string_length(line) - sp); line = string_copy(line, sp + 1, string_length(line) - sp);
draw_sprite_ext(s_text_bullet, 1, xx + 16, _y + yy + 10, 1, 1, 0, $5dde8f, 1); draw_sprite_ui_uniform(s_text_bullet, 1, xx + ui(16), _y + yy + ui(10), 1, $5dde8f);
draw_text_ext(xx + 28, _y + yy, line, -1, ww); draw_text_ext(xx + ui(28), _y + yy, line, -1, ww);
break; break;
default : default :
draw_set_text(f_p0, fa_left, fa_top, c_white); draw_set_text(f_p0, fa_left, fa_top, c_white);
@ -72,6 +72,6 @@ event_inherited();
yy += string_height_ext(line, -1, ww); yy += string_height_ext(line, -1, ww);
} }
return yy + 64; return yy + ui(64);
}) })
#endregion #endregion

View file

@ -3,16 +3,16 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion #endregion
#region text #region text
draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_ltgrey); draw_set_text(f_p0, fa_left, fa_top, c_ui_blue_ltgrey);
draw_text(dialog_x + 24, dialog_y + 24, string(VERSION_STRING) + " Release note"); draw_text(dialog_x + ui(24), dialog_y + ui(16), string(VERSION_STRING) + " Release note");
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + 24, dialog_y + 48, dialog_w - 48, dialog_h - 48 - 24); draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(24), dialog_y + ui(48), dialog_w - ui(48), dialog_h - ui(72));
sp_note.active = HOVER == self; sp_note.active = sHOVER;
sp_note.draw(dialog_x + 40, dialog_y + 56); sp_note.draw(dialog_x + ui(40), dialog_y + ui(56));
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_release_note",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,10 +25,10 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":0,"eventType":2,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":2,"collisionObjectId":null,},
{"isDnD":false,"eventNum":62,"eventType":7,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":62,"eventType":7,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -32,8 +36,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_release_note",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -1,9 +1,8 @@
/// @description init /// @description init
#region pos #region pos
var hght = 32; var hght = line_height(f_p0, 8);
var hh = array_length(scrollbox.data_list) * hght; var hh = array_length(scrollbox.data_list) * hght;
dialog_h = hh; dialog_h = hh;
#endregion #endregion
event_inherited(); event_inherited();

View file

@ -1,6 +1,6 @@
/// @description init /// @description init
#region draw #region draw
var hght = 32; var hght = line_height(f_p0, 8);
draw_sprite_stretched(s_textbox, 1, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_textbox, 1, dialog_x, dialog_y, dialog_w, dialog_h);
@ -20,6 +20,6 @@
if(align == fa_center) if(align == fa_center)
draw_text(dialog_x + dialog_w / 2, _ly + hght / 2, scrollbox.data_list[i]); draw_text(dialog_x + dialog_w / 2, _ly + hght / 2, scrollbox.data_list[i]);
else if(align == fa_left) else if(align == fa_left)
draw_text(dialog_x + 8, _ly + hght / 2, scrollbox.data_list[i]); draw_text(dialog_x + ui(8), _ly + hght / 2, scrollbox.data_list[i]);
} }
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_scrollbox",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,10 +25,10 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":0,"eventType":2,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":2,"collisionObjectId":null,},
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
{"isDnD":false,"eventNum":0,"eventType":1,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":1,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -32,8 +36,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_scrollbox",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -4,42 +4,45 @@ event_inherited();
#region data #region data
destroy_on_click_out = true; destroy_on_click_out = true;
dialog_w = 960; dialog_w = ui(960);
dialog_h = 600; dialog_h = ui(600);
#endregion #endregion
#region content #region content
var x0 = dialog_x + 16; var x0 = dialog_x + ui(16);
var x1 = x0 + 288; var x1 = x0 + ui(288);
var y0 = dialog_y + 128; var y0 = dialog_y + ui(128);
var y1 = dialog_y + dialog_h - 16; var y1 = dialog_y + dialog_h - ui(16);
sp_recent = new scrollPane(x1 - x0 - 12, y1 - y0, function(_y, _m) { sp_recent = new scrollPane(x1 - x0 - ui(12), y1 - y0, function(_y, _m) {
draw_clear_alpha(c_ui_blue_dkblack, 0); draw_clear_alpha(c_ui_blue_dkblack, 0);
var ww = sp_recent.surface_w - ui(2);
var hh = 0; var hh = 0;
var pad = 8; var pad = ui(8);
var hg = 64; var hg = ui(16) + line_height(f_p0b) + line_height(f_p1);
_y += pad; _y += pad;
for(var i = 0; i < ds_list_size(RECENT_FILES); i++) { for(var i = 0; i < ds_list_size(RECENT_FILES); i++) {
var _rec = RECENT_FILES[| i]; var _rec = RECENT_FILES[| i];
if(!file_exists(_rec)) continue; if(!file_exists(_rec)) continue;
draw_sprite_stretched(s_ui_panel_bg, 1, 0, _y, sp_recent.surface_w, hg); draw_sprite_stretched(s_ui_panel_bg, 1, 0, _y, ww, hg);
if(HOVER == self && point_in_rectangle(_m[0], _m[1], 0, _y, sp_recent.surface_w, _y + hg)) { if(sHOVER && point_in_rectangle(_m[0], _m[1], 0, _y, ww, _y + hg)) {
draw_sprite_stretched(s_node_active, 0, 0, _y, sp_recent.surface_w, hg); draw_sprite_stretched(s_node_active, 0, 0, _y, ww, hg);
if(FOCUS == self && mouse_check_button_pressed(mb_left)) { if(sFOCUS && mouse_check_button_pressed(mb_left)) {
LOAD_PATH(_rec); LOAD_PATH(_rec);
instance_destroy(); instance_destroy();
} }
} }
var ly = _y + ui(8);
draw_set_text(f_p0b, fa_left, fa_top, c_white); draw_set_text(f_p0b, fa_left, fa_top, c_white);
draw_text(12, _y + 12, filename_name(_rec)); draw_text(ui(12), ly, filename_name(_rec));
ly += line_height();
draw_set_text(f_p1, fa_left, fa_top, c_ui_blue_grey); draw_set_text(f_p1, fa_left, fa_top, c_ui_blue_grey);
draw_text_cut(12, _y + 32, _rec, sp_recent.surface_w - 24); draw_text_cut(ui(12), ly, _rec, ww - ui(24));
hh += hg + pad; hh += hg + pad;
_y += hg + pad; _y += hg + pad;
@ -48,15 +51,15 @@ event_inherited();
return hh; return hh;
}); });
x0 = x1 + 16; x0 = x1 + ui(16);
x1 = dialog_x + dialog_w - 16; x1 = dialog_x + dialog_w - ui(16);
sp_sample = new scrollPane(x1 - x0 - 12, y1 - y0, function(_y, _m) { sp_sample = new scrollPane(x1 - x0 - ui(12), y1 - y0, function(_y, _m) {
draw_clear_alpha(c_ui_blue_dkblack, 0); draw_clear_alpha(c_ui_blue_dkblack, 0);
var hh = 0; var hh = 0;
var grid_heigh = 96; var grid_heigh = ui(96);
var grid_width = 128; var grid_width = ui(128);
var grid_space = 20; var grid_space = ui(20);
var node_count = ds_list_size(SAMPLE_PROJECTS); var node_count = ds_list_size(SAMPLE_PROJECTS);
var col = floor(sp_sample.surface_w / (grid_width + grid_space)); var col = floor(sp_sample.surface_w / (grid_width + grid_space));
var row = ceil(node_count / col); var row = ceil(node_count / col);
@ -74,34 +77,34 @@ event_inherited();
var _boxx = _nx; var _boxx = _nx;
draw_sprite_stretched(s_node_bg, 0, _boxx, yy, grid_width, grid_heigh); draw_sprite_stretched(s_node_bg, 0, _boxx, yy, grid_width, grid_heigh);
if(HOVER == self && point_in_rectangle(_m[0], _m[1], _nx, yy, _nx + grid_width, yy + grid_heigh)) { if(sHOVER && point_in_rectangle(_m[0], _m[1], _nx, yy, _nx + grid_width, yy + grid_heigh)) {
draw_sprite_stretched(s_node_active, 0, _boxx, yy, grid_width, grid_heigh); draw_sprite_stretched(s_node_active, 0, _boxx, yy, grid_width, grid_heigh);
if(FOCUS == self && mouse_check_button_pressed(mb_left)) { if(sFOCUS && mouse_check_button_pressed(mb_left)) {
LOAD_PATH(_node.path, true); LOAD_PATH(_node.path, true);
instance_destroy(); instance_destroy();
} }
} }
if(_node.spr) if(_node.spr)
draw_sprite(_node.spr, 0, _boxx + grid_width / 2, yy + grid_heigh / 2); draw_sprite_ui_uniform(_node.spr, 0, _boxx + grid_width / 2, yy + grid_heigh / 2);
var tx = _boxx + grid_width / 2; var tx = _boxx + grid_width / 2;
var ty = yy + grid_heigh + 4; var ty = yy + grid_heigh + ui(4);
draw_set_text(f_p2, fa_center, fa_top, c_ui_blue_dkgrey); draw_set_text(f_p2, fa_center, fa_top, c_ui_blue_dkgrey);
var _tw = string_width(_node.tag); var _tw = string_width(_node.tag);
var _th = string_height(_node.tag); var _th = string_height(_node.tag);
draw_set_color(c_ui_blue_mdblack); draw_set_color(c_ui_blue_mdblack);
draw_roundrect_ext(tx - _tw / 2 - 6, ty - 2, tx + _tw / 2 + 6, ty + _th, 8, 8, 0); draw_roundrect_ext(tx - _tw / 2 - ui(6), ty - ui(2), tx + _tw / 2 + ui(6), ty + _th, ui(8), ui(8), 0);
draw_set_color(_node.tag == "Getting started"? c_ui_orange_light : c_ui_blue_grey); draw_set_color(_node.tag == "Getting started"? c_ui_orange_light : c_ui_blue_grey);
draw_text(tx, ty, _node.tag); draw_text(tx, ty - ui(2), _node.tag);
draw_set_text(f_p1, fa_center, fa_top, c_white); draw_set_text(f_p1, fa_center, fa_top, c_white);
name_height = max(name_height, string_height_ext(_node.name, -1, grid_width) + 8); name_height = max(name_height, string_height_ext(_node.name, -1, grid_width) + ui(8));
draw_text_ext(tx, ty + 20, _node.name, -1, grid_width); draw_text_ext(tx, ty + line_height() - ui(2), _node.name, -1, grid_width);
} }
} }
var hght = grid_heigh + grid_space + name_height + 20; var hght = grid_heigh + grid_space + name_height + ui(20);
hh += hght; hh += hght;
yy += hght; yy += hght;
} }

View file

@ -3,58 +3,59 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion #endregion
#region content #region content
draw_sprite(icon_64, 0, dialog_x + 56, dialog_y + 56); draw_sprite_ui_uniform(icon_64, 0, dialog_x + ui(56), dialog_y + ui(56));
draw_set_text(f_h5, fa_left, fa_bottom, c_ui_orange); draw_set_text(f_h5, fa_left, fa_center, c_ui_orange);
draw_text(dialog_x + 56 + 40, dialog_y + 70, "Pixel Composer"); draw_text(dialog_x + ui(56 + 48), dialog_y + ui(56), "Pixel Composer");
var bx = dialog_x + 266; var bx = dialog_x + ui(56 + 48) + string_width("Pixel Composer") + ui(16);
var by = dialog_y + 40; var by = dialog_y + ui(56);
var txt = "v. " + VERSION_STRING; var txt = "v. " + VERSION_STRING;
draw_set_text(f_p0, fa_center, fa_center, c_ui_blue_grey); draw_set_text(f_p0, fa_left, fa_center, c_ui_blue_grey);
var ww = string_width(txt) + 16; var ww = string_width(txt) + ui(16);
if(buttonInstant(s_button_hide, bx, by, ww, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self) == 2) { var hh = line_height(, 16);
if(buttonInstant(s_button_hide, bx, by - hh / 2, ww, hh, mouse_ui, sFOCUS, sHOVER) == 2) {
dialogCall(o_dialog_release_note, WIN_W / 2, WIN_H / 2); dialogCall(o_dialog_release_note, WIN_W / 2, WIN_H / 2);
} }
draw_text(bx + ww / 2, by + 18, txt); draw_text(bx + ui(8), by, txt);
var bx = dialog_x + dialog_w - 16 - 36; var bx = dialog_x + dialog_w - ui(52);
var by = dialog_y + 16; var by = dialog_y + ui(16);
if(buttonInstant(s_button_hide, bx, by, 36, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Prefernece", s_gear_24) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(36), ui(36), mouse_ui, sFOCUS, sHOVER, "Preference", s_gear_24) == 2) {
dialogCall(o_dialog_preference, WIN_W / 2, WIN_H / 2); dialogCall(o_dialog_preference, WIN_W / 2, WIN_H / 2);
} }
bx -= 40; bx -= ui(40);
if(buttonInstant(s_button_hide, bx, by, 36, 36, [mouse_mx, mouse_my], FOCUS == self, HOVER == self, "Show on startup", s_icon_spalsh_show_on_start, PREF_MAP[? "show_splash"]) == 2) { if(buttonInstant(s_button_hide, bx, by, ui(36), ui(36), mouse_ui, sFOCUS, sHOVER, "Show on startup", s_icon_splash_show_on_start, PREF_MAP[? "show_splash"]) == 2) {
PREF_MAP[? "show_splash"] = !PREF_MAP[? "show_splash"]; PREF_MAP[? "show_splash"] = !PREF_MAP[? "show_splash"];
PREF_SAVE(); PREF_SAVE();
} }
var x0 = dialog_x + 16; var x0 = dialog_x + ui(16);
var x1 = x0 + 288; var x1 = x0 + ui(288);
var y0 = dialog_y + 128; var y0 = dialog_y + ui(128);
var y1 = dialog_y + dialog_h - 16; var y1 = dialog_y + dialog_h - ui(16);
draw_set_text(f_p0, fa_left, fa_bottom, c_ui_blue_grey); draw_set_text(f_p0, fa_left, fa_bottom, c_ui_blue_grey);
draw_text(x0, y0 - 4, "Recent files"); draw_text(x0, y0 - ui(4), "Recent files");
draw_sprite_stretched(s_ui_panel_bg, 0, x0, y0, x1 - x0, y1 - y0); draw_sprite_stretched(s_ui_panel_bg, 0, x0, y0, x1 - x0, y1 - y0);
sp_recent.active = FOCUS == self; sp_recent.active = sFOCUS;
sp_recent.draw(x0 + 6, y0); sp_recent.draw(x0 + ui(6), y0);
x0 = x1 + 16; x0 = x1 + ui(16);
x1 = dialog_x + dialog_w - 16; x1 = dialog_x + dialog_w - ui(16);
draw_set_text(f_p0, fa_left, fa_bottom, c_ui_blue_grey); draw_set_text(f_p0, fa_left, fa_bottom, c_ui_blue_grey);
draw_text(x0, y0 - 4, "Sample projects"); draw_text(x0, y0 - ui(4), "Sample projects");
draw_sprite_stretched(s_ui_panel_bg, 0, x0, y0, x1 - x0, y1 - y0); draw_sprite_stretched(s_ui_panel_bg, 0, x0, y0, x1 - x0, y1 - y0);
sp_sample.active = FOCUS == self; sp_sample.active = sFOCUS;
sp_sample.draw(x0 + 6, y0); sp_sample.draw(x0 + ui(6), y0);
draw_set_text(f_p1, fa_right, fa_bottom, c_ui_blue_grey); draw_set_text(f_p1, fa_right, fa_bottom, c_ui_blue_grey);
draw_text(x1 - 75 - 8, y0 - 4, "Art by "); draw_text(x1 - ui(82), y0 - ui(4), "Art by ");
draw_sprite_ext(s_kenney, 0, x1, y0 - 4, 1, 1, 0, c_white, 0.5); draw_sprite_ui_uniform(s_kenney, 0, x1, y0 - ui(4), 2, c_white, 0.5);
#endregion #endregion

View file

@ -3,12 +3,12 @@ if !ready exit;
#region base UI #region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(FOCUS == self) if(sFOCUS)
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h); draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion #endregion
#region text #region text
draw_set_text(f_p0, fa_center, fa_top, c_white); draw_set_text(f_p0, fa_center, fa_top, c_white);
draw_text(dialog_x + dialog_w / 2, dialog_y + 24, warning_text); draw_text(dialog_x + dialog_w / 2, dialog_y + ui(24), warning_text);
#endregion #endregion

View file

@ -1,7 +1,11 @@
{ {
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "o_dialog_warning",
"spriteId": null, "spriteId": null,
"solid": false, "solid": false,
"visible": true, "visible": true,
"managed": true,
"spriteMaskId": null, "spriteMaskId": null,
"persistent": false, "persistent": false,
"parentObjectId": { "parentObjectId": {
@ -21,9 +25,9 @@
"physicsKinematic": false, "physicsKinematic": false,
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "eventList": [
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,},
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,},
{"isDnD":false,"eventNum":0,"eventType":2,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","isDnD":false,"eventNum":0,"eventType":2,"collisionObjectId":null,},
], ],
"properties": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],
@ -31,8 +35,4 @@
"name": "dialog", "name": "dialog",
"path": "folders/dialog.yy", "path": "folders/dialog.yy",
}, },
"resourceVersion": "1.0",
"name": "o_dialog_warning",
"tags": [],
"resourceType": "GMObject",
} }

View file

@ -35,7 +35,7 @@
dc_check = 0; dc_check = 0;
display_set_timing_method(tm_sleep); display_set_timing_method(tm_sleep);
addHotkey("", "New file", "N", MOD_KEY.ctrl, NEW); addHotkey("", "New file", "N", MOD_KEY.ctrl, NEW);
addHotkey("", "Save", "S", MOD_KEY.ctrl, SAVE); addHotkey("", "Save", "S", MOD_KEY.ctrl, SAVE);
addHotkey("", "Save as", "S", MOD_KEY.ctrl | MOD_KEY.shift, SAVE_AS); addHotkey("", "Save as", "S", MOD_KEY.ctrl | MOD_KEY.shift, SAVE_AS);

View file

@ -3,18 +3,18 @@
if(TOOLTIP != "") { if(TOOLTIP != "") {
draw_set_text(f_p0, fa_left, fa_top, c_white); draw_set_text(f_p0, fa_left, fa_top, c_white);
var mx = mouse_mx + 16; var mx = mouse_mx + ui(16);
var my = mouse_my + 16; var my = mouse_my + ui(16);
var tw = string_width(TOOLTIP); var tw = string_width(TOOLTIP);
var th = string_height(TOOLTIP); var th = string_height(TOOLTIP);
if(mouse_mx + tw > WIN_W - 32) if(mouse_mx + tw + ui(16) > WIN_W)
mx = mouse_mx - 16 - tw; mx = max(0, mouse_mx - ui(16) - tw);
if(mouse_my + th > WIN_H - 32) if(mouse_my + th + ui(16) > WIN_H)
my = mouse_my - 16 - th; my = max(mouse_my - ui(16) - th);
draw_sprite_stretched(s_textbox, 0, mx - 8, my - 8, tw + 16, th + 16); draw_sprite_stretched(s_textbox, 0, mx - ui(8), my - ui(8), tw + ui(16), th + ui(16));
draw_text(mx, my, TOOLTIP); draw_text(mx, my, TOOLTIP);
} }
TOOLTIP = ""; TOOLTIP = "";

View file

@ -126,4 +126,22 @@
_modified = MODIFIED; _modified = MODIFIED;
window_set_caption(CURRENT_PATH + (MODIFIED? "*" : "") + " - Pixel Composer"); window_set_caption(CURRENT_PATH + (MODIFIED? "*" : "") + " - Pixel Composer");
} }
#endregion
#region notification
if(!ds_list_empty(WARNING)) {
var rem = ds_stack_create();
for( var i = 0; i < ds_list_size(WARNING); i++ ) {
var w = WARNING[| i];
if(--w.life <= 0)
ds_stack_push(rem, w);
}
while(!ds_stack_empty(rem)) {
ds_list_delete(WARNING, ds_stack_pop(rem));
}
ds_stack_destroy(rem);
}
#endregion #endregion

View file

@ -0,0 +1,4 @@
function animation_curve_eval(curve, t) {
var ch = animcurve_get_channel(curve, 0);
return animcurve_channel_evaluate(ch, t);
}

View file

@ -0,0 +1,11 @@
{
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "animation_curve",
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "functions",
"path": "folders/functions.yy",
},
}

View file

@ -15,12 +15,12 @@ function APPEND(_path) {
if(_v != SAVEFILE_VERSION) { if(_v != SAVEFILE_VERSION) {
var warn = "File version mismatch : loading file verion " + string(_v) + " to Pixel Composer " + string(SAVEFILE_VERSION); var warn = "File version mismatch : loading file verion " + string(_v) + " to Pixel Composer " + string(SAVEFILE_VERSION);
log_warning("FILE", warn) log_warning("FILE", warn)
PANEL_MENU.addNotiExtra(warn); noti_warning(warn);
} }
} else { } else {
var warn = "File version mismatch : loading old format to Pixel Composer " + string(SAVEFILE_VERSION); var warn = "File version mismatch : loading old format to Pixel Composer " + string(SAVEFILE_VERSION);
log_warning("FILE", warn) log_warning("FILE", warn)
PANEL_MENU.addNotiExtra(warn); noti_warning(warn);
} }
var _node_list = _map[? "nodes"]; var _node_list = _map[? "nodes"];
@ -45,7 +45,7 @@ function APPEND(_path) {
ds_list_add(node_create, _node); ds_list_add(node_create, _node);
} }
} catch(e) { } catch(e) {
PANEL_MENU.addNotiExtra("Node load error : " + e.message); noti_warning("Node load error : " + e.message);
log_warning("APPEND, node", e.longMessage); log_warning("APPEND, node", e.longMessage);
} }
@ -53,7 +53,7 @@ function APPEND(_path) {
for(var i = 0; i < ds_list_size(appended_list); i++) for(var i = 0; i < ds_list_size(appended_list); i++)
appended_list[| i].postDeserialize(); appended_list[| i].postDeserialize();
} catch(e) { } catch(e) {
PANEL_MENU.addNotiExtra("Deserialize error : " + e.message); noti_warning("Deserialize error : " + e.message);
log_warning("APPEND, deserialize", e.longMessage); log_warning("APPEND, deserialize", e.longMessage);
} }
@ -65,7 +65,7 @@ function APPEND(_path) {
for(var i = 0; i < ds_list_size(appended_list); i++) for(var i = 0; i < ds_list_size(appended_list); i++)
appended_list[| i].postConnect(); appended_list[| i].postConnect();
} catch(e) { } catch(e) {
PANEL_MENU.addNotiExtra("Connect error : " + e.message); noti_warning("Connect error : " + e.message);
log_warning("APPEND, connect", e.longMessage); log_warning("APPEND, connect", e.longMessage);
} }
@ -73,7 +73,7 @@ function APPEND(_path) {
for(var i = 0; i < ds_list_size(appended_list); i++) for(var i = 0; i < ds_list_size(appended_list); i++)
appended_list[| i].doUpdate(); appended_list[| i].doUpdate();
} catch(e) { } catch(e) {
PANEL_MENU.addNotiExtra("Update error : " + e.message); noti_warning("Update error : " + e.message);
log_warning("APPEND, update", e.longMessage); log_warning("APPEND, update", e.longMessage);
} }
@ -98,9 +98,9 @@ function APPEND(_path) {
} }
if(!ds_queue_empty(CONNECTION_CONFLICT)) if(!ds_queue_empty(CONNECTION_CONFLICT))
PANEL_MENU.addNotiExtra("Some connection(s) is unsolved. This may caused by render node not being update properly, or image path is broken."); noti_warning("Some connection(s) is unsolved. This may caused by render node not being update properly, or image path is broken.");
} catch(e) { } catch(e) {
PANEL_MENU.addNotiExtra("Conflict solver error : " + e.message); noti_warning("Conflict solver error : " + e.message);
log_warning("APPEND, solver", e.longMessage); log_warning("APPEND, solver", e.longMessage);
} }
} }
@ -109,7 +109,7 @@ function APPEND(_path) {
PANEL_ANIMATION.updatePropertyList(); PANEL_ANIMATION.updatePropertyList();
log_message("FILE", "append file " + _path); log_message("FILE", "append file " + _path);
PANEL_MENU.showNoti("Collection loaded", s_noti_icon_file_load); noti_status("Collection loaded", s_noti_icon_file_load);
ds_map_destroy(_map); ds_map_destroy(_map);
return node_create; return node_create;

View file

@ -20,7 +20,7 @@ function areaBox(_onModify) constructor {
} }
static draw = function(_x, _y, _data, _m) { static draw = function(_x, _y, _data, _m) {
if(buttonInstant(s_button_hide, _x - 48, _y + 64 - 48, 96, 96, _m, active, hover, "", s_inspector_area, array_safe_get(_data, 4), c_white) == 2) { if(buttonInstant(s_button_hide, _x - ui(48), _y + ui(64 - 48), ui(96), ui(96), _m, active, hover, "", s_inspector_area, array_safe_get(_data, 4), c_white) == 2) {
if(mouse_check_button_pressed(mb_left)) { if(mouse_check_button_pressed(mb_left)) {
var val = (array_safe_get(_data, 4) + 1) % 2; var val = (array_safe_get(_data, 4) + 1) % 2;
onModify(4, val); onModify(4, val);
@ -28,7 +28,7 @@ function areaBox(_onModify) constructor {
} }
if(onSurfaceSize != -1) { if(onSurfaceSize != -1) {
if(buttonInstant(s_button_hide, _x - 64 - 12, _y + 28 - 12, 24, 24, _m, active, hover, "Fill surface", s_fill_16, 0, c_white) == 2) { if(buttonInstant(s_button_hide, _x - ui(76), _y + ui(28 - 12), ui(24), ui(24), _m, active, hover, "Fill surface", s_fill_16, 0, c_white) == 2) {
var ss = onSurfaceSize(); var ss = onSurfaceSize();
onModify(0, toNumber(ss[0] / 2)); onModify(0, toNumber(ss[0] / 2));
onModify(1, toNumber(ss[1] / 2)); onModify(1, toNumber(ss[1] / 2));
@ -43,11 +43,11 @@ function areaBox(_onModify) constructor {
tb[i].align = fa_center; tb[i].align = fa_center;
} }
tb[0].draw(_x - 56 - 48, _y - 28, 96, 34, array_safe_get(_data, 0), _m); tb[0].draw(_x - ui(56) - ui(48), _y - ui(28), ui(96), TEXTBOX_HEIGHT, array_safe_get(_data, 0), _m);
tb[1].draw(_x + 56 - 48, _y - 28, 96, 34, array_safe_get(_data, 1), _m); tb[1].draw(_x + ui(56) - ui(48), _y - ui(28), ui(96), TEXTBOX_HEIGHT, array_safe_get(_data, 1), _m);
tb[2].draw(_x - 36, _y + 64 + 48 + 8, 64, 34, array_safe_get(_data, 2), _m); tb[2].draw(_x - ui(36), _y + ui(64 + 48 + 8), ui(64), TEXTBOX_HEIGHT, array_safe_get(_data, 2), _m);
tb[3].draw(_x + 64, _y + 64 - 16, 64, 34, array_safe_get(_data, 3), _m); tb[3].draw(_x + ui(64), _y + ui(64 - 16), ui(64), TEXTBOX_HEIGHT, array_safe_get(_data, 3), _m);
active = false; active = false;
hover = false; hover = false;

View file

@ -1,12 +1,11 @@
{ {
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "areaBox",
"isDnD": false, "isDnD": false,
"isCompatibility": false, "isCompatibility": false,
"parent": { "parent": {
"name": "widgets", "name": "widgets",
"path": "folders/widgets.yy", "path": "folders/widgets.yy",
}, },
"resourceVersion": "1.0",
"name": "areaBox",
"tags": [],
"resourceType": "GMScript",
} }

View file

@ -5,8 +5,8 @@ function surface_apply_gaussian(surface, size, bg = false, bg_c = c_white, clamp
static uni_wei = shader_get_uniform(sh_blur_gaussian, "weight"); static uni_wei = shader_get_uniform(sh_blur_gaussian, "weight");
static uni_sze = shader_get_uniform(sh_blur_gaussian, "size"); static uni_sze = shader_get_uniform(sh_blur_gaussian, "size");
var hori = surface_create(surface_get_width(surface), surface_get_height(surface)); var hori = surface_create_valid(surface_get_width(surface), surface_get_height(surface));
var vert = surface_create(surface_get_width(surface), surface_get_height(surface)); var vert = surface_create_valid(surface_get_width(surface), surface_get_height(surface));
size = max(1, round(size)); size = max(1, round(size));
var gau_array = array_create(size); var gau_array = array_create(size);

View file

@ -1,12 +1,11 @@
{ {
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "blurSurface",
"isDnD": false, "isDnD": false,
"isCompatibility": false, "isCompatibility": false,
"parent": { "parent": {
"name": "surface", "name": "surface",
"path": "folders/functions/surface.yy", "path": "folders/functions/surface.yy",
}, },
"resourceVersion": "1.0",
"name": "blurSurface",
"tags": [],
"resourceType": "GMScript",
} }

View file

@ -0,0 +1,6 @@
function buffer_get_color(buffer, _x, _y, w, h) {
buffer_seek(buffer, buffer_seek_start, (w * _y + _x) * 4);
var c = buffer_read(buffer, buffer_u32);
return c;
}

View file

@ -0,0 +1,11 @@
{
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "buffer_surface",
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "surface",
"path": "folders/functions/surface.yy",
},
}

View file

@ -43,7 +43,7 @@ function buttonClass(_onClick) constructor {
} else { } else {
draw_sprite_stretched_ext(spr, 0, _x, _y, _w, _h, blend, 1); draw_sprite_stretched_ext(spr, 0, _x, _y, _w, _h, blend, 1);
} }
if(icon) draw_sprite(icon, icon_index, _x + _w / 2, _y + _h / 2); if(icon) draw_sprite_ui_uniform(icon, icon_index, _x + _w / 2, _y + _h / 2);
if(text != "") { if(text != "") {
draw_set_text(f_p0, fa_center, fa_center, c_white); draw_set_text(f_p0, fa_center, fa_center, c_white);
draw_text(_x + _w / 2, _y + _h / 2, text); draw_text(_x + _w / 2, _y + _h / 2, text);
@ -73,7 +73,7 @@ function buttonInstant(spr, _x, _y, _w, _h, _m, _act, _hvr, _tip = "", _icon = n
} }
if(_icon) { if(_icon) {
draw_sprite_ext(_icon, _icon_index, _x + _w / 2, _y + _h / 2, 1, 1, 0, _icon_blend, _icon_alpha); draw_sprite_ui_uniform(_icon, _icon_index, _x + _w / 2, _y + _h / 2, 1, _icon_blend, _icon_alpha);
} }
return res; return res;

View file

@ -1,12 +1,11 @@
{ {
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "button",
"isDnD": false, "isDnD": false,
"isCompatibility": false, "isCompatibility": false,
"parent": { "parent": {
"name": "widgets", "name": "widgets",
"path": "folders/widgets.yy", "path": "folders/widgets.yy",
}, },
"resourceVersion": "1.0",
"name": "button",
"tags": [],
"resourceType": "GMScript",
} }

View file

@ -21,7 +21,7 @@ function buttonColorClass(_onApply) constructor {
static draw = function(_x, _y, _w, _h, _color, _m) { static draw = function(_x, _y, _w, _h, _color, _m) {
b_picker.hover = hover; b_picker.hover = hover;
b_picker.active = active; b_picker.active = active;
b_picker.draw(_x + _w - 32, _y + _h / 2 - 16, 32, 32, _m, s_button_hide); b_picker.draw(_x + _w - ui(32), _y + _h / 2 - ui(16), ui(32), ui(32), _m, s_button_hide);
if(keyboard_check_pressed(vk_alt)) { if(keyboard_check_pressed(vk_alt)) {
onColorPick(); onColorPick();
@ -34,7 +34,7 @@ function buttonColorClass(_onApply) constructor {
} }
} }
var _cw = _w - 40; var _cw = _w - ui(40);
var click = false; var click = false;
if(hover && point_in_rectangle(_m[0], _m[1], _x, _y, _x + _cw, _y + _h)) { if(hover && point_in_rectangle(_m[0], _m[1], _x, _y, _x + _cw, _y + _h)) {
draw_sprite_stretched(s_button, 1, _x, _y, _cw, _h); draw_sprite_stretched(s_button, 1, _x, _y, _cw, _h);
@ -50,7 +50,7 @@ function buttonColorClass(_onApply) constructor {
} else { } else {
draw_sprite_stretched(s_button, 0, _x, _y, _cw, _h); draw_sprite_stretched(s_button, 0, _x, _y, _cw, _h);
} }
draw_sprite_stretched_ext(s_color_picker_sample, 0, _x + 4, _y + 4, _cw - 8, _h - 8, _color, 1); draw_sprite_stretched_ext(s_color_picker_sample, 0, _x + ui(4), _y + ui(4), _cw - ui(8), _h - ui(8), _color, 1);
hover = false; hover = false;
active = false; active = false;

View file

@ -1,12 +1,11 @@
{ {
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "buttonColor",
"isDnD": false, "isDnD": false,
"isCompatibility": false, "isCompatibility": false,
"parent": { "parent": {
"name": "widgets", "name": "widgets",
"path": "folders/widgets.yy", "path": "folders/widgets.yy",
}, },
"resourceVersion": "1.0",
"name": "buttonColor",
"tags": [],
"resourceType": "GMScript",
} }

View file

@ -24,7 +24,7 @@ function buttonGradientClass(_onApply) constructor {
draw_sprite_stretched(s_button, 0, _x, _y, _w, _h); draw_sprite_stretched(s_button, 0, _x, _y, _w, _h);
} }
draw_gradient(_x + 6, _y + 6, _w - 12, _h - 12, _gradient, _data[| 0]); draw_gradient(_x + ui(6), _y + ui(6), _w - ui(12), _h - ui(12), _gradient, _data[| 0]);
hover = false; hover = false;
active = false; active = false;

View file

@ -1,12 +1,11 @@
{ {
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "buttonGradient",
"isDnD": false, "isDnD": false,
"isCompatibility": false, "isCompatibility": false,
"parent": { "parent": {
"name": "widgets", "name": "widgets",
"path": "folders/widgets.yy", "path": "folders/widgets.yy",
}, },
"resourceVersion": "1.0",
"name": "buttonGradient",
"tags": [],
"resourceType": "GMScript",
} }

View file

@ -34,7 +34,7 @@ function buttonGroupClass(_data, _onClick) constructor {
draw_set_text(f_p0, fa_center, fa_center, c_white); draw_set_text(f_p0, fa_center, fa_center, c_white);
draw_text(bx + ww / 2, _y + _h / 2, data[i]); draw_text(bx + ww / 2, _y + _h / 2, data[i]);
} else if(sprite_exists(data[i])) { } else if(sprite_exists(data[i])) {
draw_sprite(data[i], i, bx + ww / 2, _y + _h / 2); draw_sprite_ui_uniform(data[i], i, bx + ww / 2, _y + _h / 2);
} }
} }
hover = false; hover = false;

View file

@ -1,12 +1,11 @@
{ {
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "buttonGroup",
"isDnD": false, "isDnD": false,
"isCompatibility": false, "isCompatibility": false,
"parent": { "parent": {
"name": "widgets", "name": "widgets",
"path": "folders/widgets.yy", "path": "folders/widgets.yy",
}, },
"resourceVersion": "1.0",
"name": "buttonGroup",
"tags": [],
"resourceType": "GMScript",
} }

View file

@ -24,7 +24,7 @@ function buttonPaletteClass(_onApply) constructor {
draw_sprite_stretched(s_button, 0, _x, _y, _w, _h); draw_sprite_stretched(s_button, 0, _x, _y, _w, _h);
} }
drawPalette(_color, _x + 6, _y + 6, _w - 12, _h - 12); drawPalette(_color, _x + ui(6), _y + ui(6), _w - ui(12), _h - ui(12));
hover = false; hover = false;
active = false; active = false;

View file

@ -1,12 +1,11 @@
{ {
"resourceType": "GMScript",
"resourceVersion": "1.0",
"name": "buttonPalette",
"isDnD": false, "isDnD": false,
"isCompatibility": false, "isCompatibility": false,
"parent": { "parent": {
"name": "widgets", "name": "widgets",
"path": "folders/widgets.yy", "path": "folders/widgets.yy",
}, },
"resourceVersion": "1.0",
"name": "buttonPalette",
"tags": [],
"resourceType": "GMScript",
} }

View file

@ -4,14 +4,23 @@ function checkBox(_onClick) constructor {
onClick = _onClick; onClick = _onClick;
static draw = function(_x, _y, _value, _m, _s = 28) { static draw = function(_x, _y, _value, _m, ss = ui(28), halign = fa_left, valign = fa_top) {
var cx = _x; switch(halign) {
var cy = _y; case fa_left: _x = _x; break;
case fa_center: _x = _x - ss / 2; break;
case fa_right: _x = _x - ss; break;
}
draw_sprite_stretched(s_checkbox, _value * 2, cx, cy, _s, _s); switch(valign) {
case fa_top: _y = _y; break;
case fa_center: _y = _y - ss / 2; break;
case fa_bottom: _y = _y - ss; break;
}
if(hover && point_in_rectangle(_m[0], _m[1], cx, cy, cx + _s, cy + _s)) { draw_sprite_stretched(s_checkbox, _value * 2, _x, _y, ss, ss);
draw_sprite_stretched(s_checkbox, _value * 2 + 1, _x, _y, _s, _s);
if(hover && point_in_rectangle(_m[0], _m[1], _x, _y, _x + ss, _y + ss)) {
draw_sprite_stretched(s_checkbox, _value * 2 + 1, _x, _y, ss, ss);
if(active && mouse_check_button_pressed(mb_left)) { if(active && mouse_check_button_pressed(mb_left)) {
if(onClick) onClick(); if(onClick) onClick();

View file

@ -55,57 +55,57 @@ function controlPointBox(_onModify) constructor {
var yy = _y; var yy = _y;
scMode.draw(_x, yy, _w, 34, sMode[_data[PUPPET_CONTROL.mode]], _m, _rx, _ry); scMode.draw(_x, yy, _w, TEXTBOX_HEIGHT, sMode[_data[PUPPET_CONTROL.mode]], _m, _rx, _ry);
yy += 34 + 8; yy += TEXTBOX_HEIGHT + ui(8);
var lw = 80; var lw = ui(80);
var w = _w / 2 - lw; var w = _w / 2 - lw;
draw_set_text(f_p0, fa_left, fa_center, c_white); draw_set_text(f_p0, fa_left, fa_center, c_white);
draw_text(_x, yy + 17, "cx"); draw_text(_x, yy + ui(17), "cx");
draw_text(_x + _w / 2 + 10, yy + 17, "cy"); draw_text(_x + _w / 2 + ui(10), yy + ui(17), "cy");
tbCx.draw(_x + lw, yy, w, 34, _data[PUPPET_CONTROL.cx], _m); tbCx.draw(_x + lw, yy, w, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.cx], _m);
tbCy.draw(_x + _w / 2 + lw, yy, w, 34, _data[PUPPET_CONTROL.cy], _m); tbCy.draw(_x + _w / 2 + lw, yy, w, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.cy], _m);
yy += 34 + 8; yy += TEXTBOX_HEIGHT + ui(8);
switch(_data[PUPPET_CONTROL.mode]) { switch(_data[PUPPET_CONTROL.mode]) {
case PUPPET_FORCE_MODE.move: case PUPPET_FORCE_MODE.move:
draw_set_text(f_p0, fa_left, fa_center, c_white); draw_set_text(f_p0, fa_left, fa_center, c_white);
draw_text(_x, yy + 17, "fx"); draw_text(_x, yy + ui(17), "fx");
draw_text(_x + _w / 2 + 10, yy + 17, "fy"); draw_text(_x + _w / 2 + ui(10), yy + ui(17), "fy");
tbFx.draw(_x + lw, yy, w, 34, _data[PUPPET_CONTROL.fx], _m); tbFx.draw(_x + lw, yy, w, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.fx], _m);
tbFy.draw(_x + _w / 2 + lw, yy, w, 34, _data[PUPPET_CONTROL.fy], _m); tbFy.draw(_x + _w / 2 + lw, yy, w, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.fy], _m);
yy += 34 + 8; yy += TEXTBOX_HEIGHT + ui(8);
draw_set_text(f_p0, fa_left, fa_center, c_white); draw_set_text(f_p0, fa_left, fa_center, c_white);
draw_text(_x, yy + 17, "radius"); draw_text(_x, yy + ui(17), "radius");
sW.draw(_x + lw, yy, _w - lw, 34, _data[PUPPET_CONTROL.width], _m); sW.draw(_x + lw, yy, _w - lw, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.width], _m);
yy += 34 + 8; yy += TEXTBOX_HEIGHT + ui(8);
break; break;
case PUPPET_FORCE_MODE.pinch: case PUPPET_FORCE_MODE.pinch:
case PUPPET_FORCE_MODE.inflate: case PUPPET_FORCE_MODE.inflate:
draw_set_text(f_p0, fa_left, fa_center, c_white); draw_set_text(f_p0, fa_left, fa_center, c_white);
draw_text(_x, yy + 17, "radius"); draw_text(_x, yy + ui(17), "radius");
sW.draw(_x + lw, yy, _w - lw, 34, _data[PUPPET_CONTROL.width], _m); sW.draw(_x + lw, yy, _w - lw, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.width], _m);
yy += 34 + 8; yy += TEXTBOX_HEIGHT + ui(8);
draw_text(_x, yy + 17, "strength"); draw_text(_x, yy + ui(17), "strength");
tbH.draw(_x + lw, yy, _w - lw, 34, _data[PUPPET_CONTROL.height], _m); tbH.draw(_x + lw, yy, _w - lw, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.height], _m);
yy += 34 + 8; yy += TEXTBOX_HEIGHT + ui(8);
break; break;
case PUPPET_FORCE_MODE.wind: case PUPPET_FORCE_MODE.wind:
draw_set_text(f_p0, fa_left, fa_center, c_white); draw_set_text(f_p0, fa_left, fa_center, c_white);
draw_text(_x, yy + 17, "stength"); draw_text(_x, yy + ui(17), "stength");
tbFx.draw(_x + lw, yy, _w - lw, 34, _data[PUPPET_CONTROL.fx], _m); tbFx.draw(_x + lw, yy, _w - lw, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.fx], _m);
yy += 34 + 8; yy += TEXTBOX_HEIGHT + ui(8);
draw_set_text(f_p0, fa_left, fa_center, c_white); draw_set_text(f_p0, fa_left, fa_center, c_white);
draw_text(_x, yy + 17, "width"); draw_text(_x, yy + ui(17), "width");
tbW.draw(_x + lw, yy, _w - lw, 34, _data[PUPPET_CONTROL.width], _m); tbW.draw(_x + lw, yy, _w - lw, TEXTBOX_HEIGHT, _data[PUPPET_CONTROL.width], _m);
yy += 34 + 8; yy += TEXTBOX_HEIGHT + ui(8);
rot.draw(_x + _w / 2, yy, _data[PUPPET_CONTROL.fy], _m); rot.draw(_x + _w / 2, yy, _data[PUPPET_CONTROL.fy], _m);
yy += 94 + 8; yy += ui(94 + 8);
break; break;
} }

Some files were not shown because too many files have changed in this diff Show more