video
|
@ -24,6 +24,8 @@
|
|||
{"name":"key displayer","order":2,"path":"folders/addons/key displayer.yy",},
|
||||
{"name":"animation_curve","order":9,"path":"folders/animation_curve.yy",},
|
||||
{"name":"dialog","order":4,"path":"folders/dialog.yy",},
|
||||
{"name":"_others","order":15,"path":"folders/dialog/_others.yy",},
|
||||
{"name":"video banner","order":1,"path":"folders/dialog/_others/video banner.yy",},
|
||||
{"name":"color selector","order":4,"path":"folders/dialog/color selector.yy",},
|
||||
{"name":"graph","order":5,"path":"folders/dialog/graph.yy",},
|
||||
{"name":"guide","order":12,"path":"folders/dialog/guide.yy",},
|
||||
|
@ -758,6 +760,7 @@
|
|||
{"name":"s_node_transform","order":8,"path":"sprites/s_node_transform/s_node_transform.yy",},
|
||||
{"name":"s_node_pb_draw_line","order":27,"path":"sprites/s_node_pb_draw_line/s_node_pb_draw_line.yy",},
|
||||
{"name":"node_canvas","order":18,"path":"scripts/node_canvas/node_canvas.yy",},
|
||||
{"name":"ac_disappear","order":2,"path":"animcurves/ac_disappear/ac_disappear.yy",},
|
||||
{"name":"s_node_path_array","order":11,"path":"sprites/s_node_path_array/s_node_path_array.yy",},
|
||||
{"name":"node_display_image","order":4,"path":"scripts/node_display_image/node_display_image.yy",},
|
||||
{"name":"node_rigid_global","order":5,"path":"scripts/node_rigid_global/node_rigid_global.yy",},
|
||||
|
@ -1757,6 +1760,7 @@
|
|||
{"name":"sh_flood_fill_replace","order":2,"path":"shaders/sh_flood_fill_replace/sh_flood_fill_replace.yy",},
|
||||
{"name":"sprite_loader","order":11,"path":"scripts/sprite_loader/sprite_loader.yy",},
|
||||
{"name":"fd_rectangle_get_material_surface","order":12,"path":"scripts/fd_rectangle_get_material_surface/fd_rectangle_get_material_surface.yy",},
|
||||
{"name":"s_dialog_bg_l","order":1,"path":"sprites/s_dialog_bg_l/s_dialog_bg_l.yy",},
|
||||
{"name":"fd_rectangle_clear","order":6,"path":"scripts/fd_rectangle_clear/fd_rectangle_clear.yy",},
|
||||
{"name":"sh_tile_random","order":56,"path":"shaders/sh_tile_random/sh_tile_random.yy",},
|
||||
{"name":"d3d_cone","order":5,"path":"scripts/d3d_cone/d3d_cone.yy",},
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"key displayer","folderPath":"folders/addons/key displayer.yy",},
|
||||
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"animation_curve","folderPath":"folders/animation_curve.yy",},
|
||||
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"dialog","folderPath":"folders/dialog.yy",},
|
||||
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"_others","folderPath":"folders/dialog/_others.yy",},
|
||||
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"video banner","folderPath":"folders/dialog/_others/video banner.yy",},
|
||||
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"color selector","folderPath":"folders/dialog/color selector.yy",},
|
||||
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"graph","folderPath":"folders/dialog/graph.yy",},
|
||||
{"resourceType":"GMFolder","resourceVersion":"1.0","name":"guide","folderPath":"folders/dialog/guide.yy",},
|
||||
|
@ -1020,6 +1022,7 @@
|
|||
{"id":{"name":"s_node_transform","path":"sprites/s_node_transform/s_node_transform.yy",},},
|
||||
{"id":{"name":"s_node_pb_draw_line","path":"sprites/s_node_pb_draw_line/s_node_pb_draw_line.yy",},},
|
||||
{"id":{"name":"node_canvas","path":"scripts/node_canvas/node_canvas.yy",},},
|
||||
{"id":{"name":"ac_disappear","path":"animcurves/ac_disappear/ac_disappear.yy",},},
|
||||
{"id":{"name":"s_node_path_array","path":"sprites/s_node_path_array/s_node_path_array.yy",},},
|
||||
{"id":{"name":"node_display_image","path":"scripts/node_display_image/node_display_image.yy",},},
|
||||
{"id":{"name":"node_rigid_global","path":"scripts/node_rigid_global/node_rigid_global.yy",},},
|
||||
|
@ -1785,6 +1788,7 @@
|
|||
{"id":{"name":"__vector","path":"scripts/__vector/__vector.yy",},},
|
||||
{"id":{"name":"s_node_pin","path":"sprites/s_node_pin/s_node_pin.yy",},},
|
||||
{"id":{"name":"s_node_9patch","path":"sprites/s_node_9patch/s_node_9patch.yy",},},
|
||||
{"id":{"name":"o_video_banner","path":"objects/o_video_banner/o_video_banner.yy",},},
|
||||
{"id":{"name":"node_local_analyze","path":"scripts/node_local_analyze/node_local_analyze.yy",},},
|
||||
{"id":{"name":"s_node_blur_contrast","path":"sprites/s_node_blur_contrast/s_node_blur_contrast.yy",},},
|
||||
{"id":{"name":"fd_y","path":"scripts/fd_y/fd_y.yy",},},
|
||||
|
@ -2165,6 +2169,7 @@
|
|||
{"id":{"name":"sh_flood_fill_replace","path":"shaders/sh_flood_fill_replace/sh_flood_fill_replace.yy",},},
|
||||
{"id":{"name":"sprite_loader","path":"scripts/sprite_loader/sprite_loader.yy",},},
|
||||
{"id":{"name":"fd_rectangle_get_material_surface","path":"scripts/fd_rectangle_get_material_surface/fd_rectangle_get_material_surface.yy",},},
|
||||
{"id":{"name":"s_dialog_bg_l","path":"sprites/s_dialog_bg_l/s_dialog_bg_l.yy",},},
|
||||
{"id":{"name":"fd_rectangle_clear","path":"scripts/fd_rectangle_clear/fd_rectangle_clear.yy",},},
|
||||
{"id":{"name":"sh_tile_random","path":"shaders/sh_tile_random/sh_tile_random.yy",},},
|
||||
{"id":{"name":"instance_create","path":"scripts/instance_create/instance_create.yy",},},
|
||||
|
|
16
animcurves/ac_disappear/ac_disappear.yy
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"resourceType": "GMAnimCurve",
|
||||
"resourceVersion": "1.2",
|
||||
"name": "ac_disappear",
|
||||
"channels": [
|
||||
{"resourceType":"GMAnimCurveChannel","resourceVersion":"1.0","name":"curve1","colour":4290799884,"points":[
|
||||
{"th0":-0.1,"th1":1.0,"tv0":0.0,"tv1":0.009826174,"x":0.0,"y":0.0,},
|
||||
{"th0":-0.0006187558,"th1":0.1,"tv0":0.0013324022,"tv1":0.0,"x":1.0,"y":1.0,},
|
||||
],"visible":true,},
|
||||
],
|
||||
"function": 2,
|
||||
"parent": {
|
||||
"name": "video banner",
|
||||
"path": "folders/dialog/_others/video banner.yy",
|
||||
},
|
||||
}
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
@ -23,7 +23,7 @@
|
|||
parent = noone;
|
||||
|
||||
alarm[0] = 1;
|
||||
ready = false;
|
||||
ready = false;
|
||||
|
||||
destroy_on_escape = true;
|
||||
destroy_on_click_out = false;
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
event_inherited();
|
||||
|
||||
#region keys
|
||||
name = "Key display";
|
||||
alpha = 0;
|
||||
name = "Key display";
|
||||
alpha = 0;
|
||||
disp_text = "";
|
||||
depth = -999;
|
||||
depth = -999;
|
||||
last_key = "";
|
||||
|
||||
show_doubleclick = false;
|
||||
show_graph = false;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
}
|
||||
|
||||
if(keyboard_check(vk_anykey)) {
|
||||
var pres = keyboard_lastkey;
|
||||
var pres = last_key;
|
||||
|
||||
if(pres >= 32 && pres <= 126) {
|
||||
pres = string_upper(ansi_char(pres));
|
||||
|
@ -80,24 +80,12 @@
|
|||
draw_sprite_ext(s_key_display_mouse, 0, mxs, mys, 1, 1, 0, c_white, 0.5);
|
||||
if(DOUBLE_CLICK)
|
||||
draw_sprite_ext(s_key_display_mouse, 1, mxs, mys, 1, 1, 0, COLORS._main_value_positive, 1);
|
||||
//else if(mouse_press(mb_left))
|
||||
// draw_sprite_ext(s_key_display_mouse, 1, mxs, mys, 1, 1, 0, COLORS._main_accent, 1);
|
||||
//else if(mouse_release(mb_left))
|
||||
// draw_sprite_ext(s_key_display_mouse, 1, mxs, mys, 1, 1, 0, COLORS._main_value_negative, 1);
|
||||
else if(mouse_click(mb_left))
|
||||
draw_sprite_ext(s_key_display_mouse, 1, mxs, mys, 1, 1, 0, COLORS._main_icon_light, 1);
|
||||
|
||||
//if(mouse_press(mb_right))
|
||||
// draw_sprite_ext(s_key_display_mouse, 2, mxs, mys, 1, 1, 0, COLORS._main_accent, 1);
|
||||
//else if(mouse_release(mb_right))
|
||||
// draw_sprite_ext(s_key_display_mouse, 2, mxs, mys, 1, 1, 0, COLORS._main_value_negative, 1);
|
||||
if(mouse_click(mb_right))
|
||||
draw_sprite_ext(s_key_display_mouse, 2, mxs, mys, 1, 1, 0, COLORS._main_icon_light, 1);
|
||||
|
||||
//if(mouse_press(mb_middle))
|
||||
// draw_sprite_ext(s_key_display_mouse, 3, mxs, mys, 1, 1, 0, COLORS._main_accent, 1);
|
||||
//else if(mouse_release(mb_middle))
|
||||
// draw_sprite_ext(s_key_display_mouse, 3, mxs, mys, 1, 1, 0, COLORS._main_value_negative, 1);
|
||||
if(mouse_click(mb_middle))
|
||||
draw_sprite_ext(s_key_display_mouse, 3, mxs, mys, 1, 1, 0, COLORS._main_icon_light, 1);
|
||||
|
||||
|
@ -113,13 +101,12 @@
|
|||
var ww = string_width(disp_text) + pd * 3;
|
||||
var hh = string_height(disp_text) + pd * 2;
|
||||
|
||||
var x1 = WIN_W - ui(40 + string_width(s_key_display_mouse));
|
||||
var x1 = WIN_W - ui(32 + sprite_get_width(s_key_display_mouse));
|
||||
var y1 = win_y - ui(8);
|
||||
var x0 = x1 - ww;
|
||||
var y0 = y1 - hh;
|
||||
|
||||
draw_sprite_stretched_ext(THEME.key_display, 0, x0, y0, ww, hh,
|
||||
pressing? COLORS._main_accent : COLORS._main_icon, alpha);
|
||||
draw_sprite_stretched_ext(THEME.key_display, 0, x0, y0, ww, hh, pressing? COLORS._main_accent : COLORS._main_icon, alpha);
|
||||
draw_set_alpha(alpha);
|
||||
draw_text(x1 - pd * 1.5, y1 - pd, disp_text);
|
||||
draw_set_alpha(1);
|
||||
|
|
3
objects/addon_key_displayer/Step_1.gml
Normal file
|
@ -0,0 +1,3 @@
|
|||
/// @description Insert description here
|
||||
// You can write your code in this editor
|
||||
last_key = keyboard_lastkey;
|
|
@ -5,6 +5,7 @@
|
|||
"eventList": [
|
||||
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":75,"eventType":8,"isDnD":false,},
|
||||
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
|
||||
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":1,"eventType":3,"isDnD":false,},
|
||||
],
|
||||
"managed": true,
|
||||
"overriddenProperties": [],
|
||||
|
|
|
@ -3,8 +3,7 @@ if !ready exit;
|
|||
|
||||
#region base UI
|
||||
DIALOG_DRAW_BG
|
||||
if(sFOCUS)
|
||||
DIALOG_DRAW_FOCUS
|
||||
if(sFOCUS) DIALOG_DRAW_FOCUS
|
||||
#endregion
|
||||
|
||||
#region content
|
||||
|
|
|
@ -306,8 +306,8 @@
|
|||
#endregion
|
||||
|
||||
#region debug
|
||||
//instance_create_depth(0, 0, 0, addon_key_displayer);
|
||||
|
||||
global.__debug_runner = 0;
|
||||
__debug_animator_counter = 0;
|
||||
|
||||
instance_create(0, 0, o_video_banner);
|
||||
#endregion
|
8
objects/o_video_banner/Create_0.gml
Normal file
|
@ -0,0 +1,8 @@
|
|||
/// @description Insert description here
|
||||
depth = -99999;
|
||||
anim = 1;
|
||||
prog = 1;
|
||||
|
||||
w = 620;
|
||||
h = 240;
|
||||
surface = surface_create(w, h);
|
27
objects/o_video_banner/Draw_75.gml
Normal file
|
@ -0,0 +1,27 @@
|
|||
/// @description Insert description here
|
||||
if(mouse_press(mb_middle)) anim = 0;
|
||||
|
||||
prog = lerp_linear(prog, anim, 0.05);
|
||||
if(prog == 0) instance_destroy();
|
||||
|
||||
surface = surface_verify(surface, w, h);
|
||||
surface_set_target(surface);
|
||||
DRAW_CLEAR
|
||||
|
||||
draw_sprite_stretched_ext(s_dialog_bg_l, 0, 0, 0, w, h, c_white, .99);
|
||||
draw_sprite(s_icon_64, 0, h / 2, h / 2);
|
||||
|
||||
draw_set_text(f_h2, fa_left, fa_bottom, c_white);
|
||||
draw_text(210, h / 2 + 12, "Pixel Composer");
|
||||
|
||||
draw_set_text(f_h3, fa_left, fa_top, c_white);
|
||||
draw_set_alpha(0.7);
|
||||
draw_text(210, h / 2 + 10, "Tutorial 20: 3D in 1.16");
|
||||
draw_set_alpha(1);
|
||||
|
||||
surface_reset_target();
|
||||
|
||||
x0 = WIN_W / 2 - w / 2;
|
||||
y0 = WIN_H / 2 - h / 2 - (1 - prog) * 128;
|
||||
|
||||
draw_surface_ext(surface, x0, y0, 1, 1, 0, c_white, animation_curve_eval(ac_disappear, prog));
|
34
objects/o_video_banner/o_video_banner.yy
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"resourceType": "GMObject",
|
||||
"resourceVersion": "1.0",
|
||||
"name": "o_video_banner",
|
||||
"eventList": [
|
||||
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
|
||||
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":75,"eventType":8,"isDnD":false,},
|
||||
],
|
||||
"managed": true,
|
||||
"overriddenProperties": [],
|
||||
"parent": {
|
||||
"name": "video banner",
|
||||
"path": "folders/dialog/_others/video banner.yy",
|
||||
},
|
||||
"parentObjectId": null,
|
||||
"persistent": false,
|
||||
"physicsAngularDamping": 0.1,
|
||||
"physicsDensity": 0.5,
|
||||
"physicsFriction": 0.2,
|
||||
"physicsGroup": 1,
|
||||
"physicsKinematic": false,
|
||||
"physicsLinearDamping": 0.1,
|
||||
"physicsObject": false,
|
||||
"physicsRestitution": 0.1,
|
||||
"physicsSensor": false,
|
||||
"physicsShape": 1,
|
||||
"physicsShapePoints": [],
|
||||
"physicsStartAwake": true,
|
||||
"properties": [],
|
||||
"solid": false,
|
||||
"spriteId": null,
|
||||
"spriteMaskId": null,
|
||||
"visible": true,
|
||||
}
|
|
@ -176,14 +176,15 @@ function array_merge() { #region
|
|||
return arr;
|
||||
} #endregion
|
||||
|
||||
function array_clone(arr) { #region
|
||||
function array_clone(arr, _depth = -1) { #region
|
||||
INLINE
|
||||
|
||||
if(_depth == 0) return arr;
|
||||
if(!is_array(arr)) return arr;
|
||||
|
||||
var _res = [];
|
||||
for( var i = 0, n = array_length(arr); i < n; i++ )
|
||||
_res[i] = array_clone(arr[i]);
|
||||
_res[i] = array_clone(arr[i], _depth--);
|
||||
return _res;
|
||||
} #endregion
|
||||
|
||||
|
|
|
@ -73,8 +73,10 @@ function Node_3D_Point_Affector(_x, _y, _group = noone) : Node_3D_Object(_x, _y,
|
|||
}
|
||||
|
||||
var _res = array_create(array_length(_iVal));
|
||||
var _dis = 0, _inR = 0, _ouR = 1;
|
||||
|
||||
var _dis = 0;
|
||||
var _inR = 0;
|
||||
var _ouR = 1;
|
||||
|
||||
if(_ftyp == 0) {
|
||||
_dis = point_distance_3d(_pos[0], _pos[1], _pos[2], _p[0], _p[1], _p[2]);
|
||||
_inR = (_maxs - _fald) / 2;
|
||||
|
@ -85,8 +87,8 @@ function Node_3D_Point_Affector(_x, _y, _group = noone) : Node_3D_Object(_x, _y,
|
|||
_ouR = _fald / 2;
|
||||
}
|
||||
|
||||
if(_dis >= _ouR) _res = _iVal;
|
||||
else if(_dis <= _inR) _res = _fVal;
|
||||
if(_dis >= _ouR) _res = array_clone(_iVal);
|
||||
else if(_dis <= _inR) _res = array_clone(_fVal);
|
||||
else {
|
||||
var _inf = (_dis - _inR) / (_fald);
|
||||
_inf = curve_falloff == noone? _inf : curve_falloff.get(_inf);
|
||||
|
|
|
@ -413,7 +413,7 @@ function __initNodes() {
|
|||
addNodeObject(strandSim, "Strand Collision", s_node_strandSim_collide, "Node_Strand_Collision", [1, Node_Strand_Collision],, "Create solid object for strands to collides to.").hideRecent().setVersion(1140);
|
||||
#endregion
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
|
||||
|
||||
var input = ds_list_create(); #region
|
||||
addNodeCatagory("IO", input);
|
||||
|
@ -861,7 +861,7 @@ function __initNodes() {
|
|||
}
|
||||
|
||||
ds_list_add(node, "Organize");
|
||||
addNodeObject(node, "Pin", s_node_pin, "Node_Pin", [1, Node_Pin],, "Craete pin to organize your connection. Can be create by double clicking on a connection line.");
|
||||
addNodeObject(node, "Pin", s_node_pin, "Node_Pin", [1, Node_Pin],, "Create pin to organize your connection. Can be create by double clicking on a connection line.");
|
||||
addNodeObject(node, "Frame", s_node_frame, "Node_Frame", [1, Node_Frame],, "Create frame surrounding nodes.");
|
||||
addNodeObject(node, "Tunnel In", s_node_tunnel_in, "Node_Tunnel_In", [1, Node_Tunnel_In],, "Create tunnel for sending value based on key matching.");
|
||||
addNodeObject(node, "Tunnel Out", s_node_tunnel_out, "Node_Tunnel_Out", [1, Node_Tunnel_Out],, "Receive value from tunnel in of the same key.");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function Panel_Animation_Scaler() : Panel_Linear_Setting() constructor {
|
||||
title = __txtx("anim_scale_title", "Animation scaler");
|
||||
title = __txtx("anim_scale_title", "Animation Scaler");
|
||||
|
||||
w = ui(380);
|
||||
scale_to = TOTAL_FRAMES;
|
||||
|
|
|
@ -1364,7 +1364,7 @@ function Panel_Graph(project = PROJECT) : PanelContent() constructor {
|
|||
}
|
||||
}
|
||||
|
||||
nodes_selecting_jun = array_clone(nodes_selecting);
|
||||
nodes_selecting_jun = array_clone(nodes_selecting, 1);
|
||||
|
||||
#region draw junction name
|
||||
var gr_x = graph_x * graph_s;
|
||||
|
|
|
@ -129,12 +129,12 @@ function Panel_Menu() : PanelContent() constructor {
|
|||
]),
|
||||
]],
|
||||
[ __txt("Animation"), [
|
||||
menuItem(__txtx("panel_menu_animation_setting", "Animation setting..."), function() {
|
||||
menuItem(__txtx("panel_menu_animation_setting", "Animation Settings..."), function() {
|
||||
var dia = dialogPanelCall(new Panel_Animation_Setting());
|
||||
dia.anchor = ANCHOR.none;
|
||||
}, THEME.animation_setting),
|
||||
-1,
|
||||
menuItem(__txtx("panel_menu_animation_scaler", "Animation scaler..."), function() {
|
||||
menuItem(__txtx("panel_menu_animation_scaler", "Animation Scaler..."), function() {
|
||||
dialogPanelCall(new Panel_Animation_Scaler());
|
||||
}, THEME.animation_timing),
|
||||
]],
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
#endregion
|
||||
|
||||
#region save load
|
||||
function PREF_SAVE() {
|
||||
function PREF_SAVE() { #region
|
||||
var map = {};
|
||||
|
||||
var save_l = [];
|
||||
|
@ -180,9 +180,9 @@
|
|||
json_save_struct(DIRECTORY + "Nodes/fav.json", global.FAV_NODES);
|
||||
json_save_struct(DIRECTORY + "Nodes/recent.json", global.RECENT_NODES);
|
||||
json_save_struct(DIRECTORY + "key_nodes.json", HOTKEYS_CUSTOM);
|
||||
}
|
||||
} #endregion
|
||||
|
||||
function PREF_LOAD() {
|
||||
function PREF_LOAD() { #region
|
||||
var path = DIRECTORY + "keys.json";
|
||||
if(!file_exists_empty(path)) return;
|
||||
|
||||
|
@ -214,14 +214,17 @@
|
|||
directory_verify(filepath_resolve(PREFERENCES.temp_path));
|
||||
|
||||
if(PREFERENCES.move_directory) directory_set_current_working(DIRECTORY);
|
||||
}
|
||||
} #endregion
|
||||
|
||||
function PREF_APPLY() {
|
||||
function PREF_APPLY() { #region
|
||||
if(PREFERENCES.double_click_delay > 1)
|
||||
PREFERENCES.double_click_delay /= 60;
|
||||
|
||||
TESTING = struct_try_get(PREFERENCES, "test_mode", false);
|
||||
if(TESTING) log_message("PREFERENCE", "Test mode enabled");
|
||||
if(TESTING) {
|
||||
log_message("PREFERENCE", "Test mode enabled");
|
||||
instance_create_depth(0, 0, 0, addon_key_displayer);
|
||||
}
|
||||
|
||||
if(PREFERENCES.use_legacy_exception) resetException();
|
||||
else setException();
|
||||
|
@ -245,14 +248,14 @@
|
|||
|
||||
var grav = struct_try_get(PREFERENCES, "physics_gravity", [ 0, 10 ]);
|
||||
physics_world_gravity(array_safe_get(grav, 0, 0), array_safe_get(grav, 1, 10));
|
||||
}
|
||||
} #endregion
|
||||
|
||||
function find_hotkey(_context, _name) {
|
||||
function find_hotkey(_context, _name) { #region
|
||||
if(!ds_map_exists(HOTKEYS, _context)) return noone;
|
||||
|
||||
for(var j = 0; j < ds_list_size(HOTKEYS[? _context]); j++) {
|
||||
if(HOTKEYS[? _context][| j].name == _name)
|
||||
return HOTKEYS[? _context][| j];
|
||||
}
|
||||
}
|
||||
} #endregion
|
||||
#endregion
|
|
@ -1,35 +1,35 @@
|
|||
function isEqual(val1, val2, struct_expand = false) {
|
||||
function isEqual(val1, val2, struct_expand = false, _depth = 0) { #region
|
||||
INLINE
|
||||
|
||||
if(is_array(val1) && is_array(val2)) return array_member_equal(val1, val2);
|
||||
if(struct_expand && is_struct(val1) && is_struct(val2)) return struct_equal(val1, val2);
|
||||
if(_depth > 8) return false;
|
||||
|
||||
if(is_array(val1) && is_array(val2)) return array_member_equal(val1, val2, _depth);
|
||||
if(struct_expand && is_struct(val1) && is_struct(val2)) return struct_equal(val1, val2, _depth);
|
||||
|
||||
return val1 == val2;
|
||||
}
|
||||
} #endregion
|
||||
|
||||
function array_member_equal(arr1, arr2) {
|
||||
function array_member_equal(arr1, arr2, _depth = 0) { #region
|
||||
INLINE
|
||||
|
||||
if(array_length(arr1) != array_length(arr2)) return false;
|
||||
|
||||
for( var i = 0, n = array_length(arr1); i < n; i++ )
|
||||
if(!isEqual(arr1[i], arr2[i])) return false;
|
||||
if(!isEqual(arr1[i], arr2[i],, _depth + 1)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
} #endregion
|
||||
|
||||
function struct_equal(str1, str2) {
|
||||
function struct_equal(str1, str2, _depth = 0) { #region
|
||||
INLINE
|
||||
|
||||
//return json_stringify(str1) == json_stringify(str2);
|
||||
|
||||
var key1 = variable_struct_get_names(str1);
|
||||
var key2 = variable_struct_get_names(str2);
|
||||
|
||||
if(!array_equals(key1, key2)) return false;
|
||||
|
||||
for( var i = 0, n = array_length(key1); i < n; i++ )
|
||||
if(!isEqual(str1[$ key1[i]], str2[$ key1[i]])) return false;
|
||||
if(!isEqual(str1[$ key1[i]], str2[$ key1[i]],, _depth + 1)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
} #endregion
|
BIN
sprites/s_dialog_bg_l/6c449033-0ee3-447b-8b8b-218f50c8327d.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
97
sprites/s_dialog_bg_l/s_dialog_bg_l.yy
Normal file
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
"resourceType": "GMSprite",
|
||||
"resourceVersion": "1.0",
|
||||
"name": "s_dialog_bg_l",
|
||||
"bbox_bottom": 63,
|
||||
"bbox_left": 0,
|
||||
"bbox_right": 63,
|
||||
"bbox_top": 0,
|
||||
"bboxMode": 0,
|
||||
"collisionKind": 1,
|
||||
"collisionTolerance": 0,
|
||||
"DynamicTexturePage": false,
|
||||
"edgeFiltering": false,
|
||||
"For3D": false,
|
||||
"frames": [
|
||||
{"resourceType":"GMSpriteFrame","resourceVersion":"1.1","name":"6c449033-0ee3-447b-8b8b-218f50c8327d",},
|
||||
],
|
||||
"gridX": 0,
|
||||
"gridY": 0,
|
||||
"height": 64,
|
||||
"HTile": false,
|
||||
"layers": [
|
||||
{"resourceType":"GMImageLayer","resourceVersion":"1.0","name":"931c2528-f9b7-4038-a994-c6608a7be0dc","blendMode":0,"displayName":"default","isLocked":false,"opacity":100.0,"visible":true,},
|
||||
],
|
||||
"nineSlice": {
|
||||
"resourceType": "GMNineSliceData",
|
||||
"resourceVersion": "1.0",
|
||||
"bottom": 31,
|
||||
"enabled": true,
|
||||
"guideColour": [
|
||||
4294902015,
|
||||
4294902015,
|
||||
4294902015,
|
||||
4294902015,
|
||||
],
|
||||
"highlightColour": 1728023040,
|
||||
"highlightStyle": 0,
|
||||
"left": 31,
|
||||
"right": 31,
|
||||
"tileMode": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
],
|
||||
"top": 31,
|
||||
},
|
||||
"origin": 4,
|
||||
"parent": {
|
||||
"name": "video banner",
|
||||
"path": "folders/dialog/_others/video banner.yy",
|
||||
},
|
||||
"preMultiplyAlpha": false,
|
||||
"sequence": {
|
||||
"resourceType": "GMSequence",
|
||||
"resourceVersion": "1.4",
|
||||
"name": "s_dialog_bg_l",
|
||||
"autoRecord": true,
|
||||
"backdropHeight": 768,
|
||||
"backdropImageOpacity": 0.5,
|
||||
"backdropImagePath": "",
|
||||
"backdropWidth": 1366,
|
||||
"backdropXOffset": 0.0,
|
||||
"backdropYOffset": 0.0,
|
||||
"events": {"resourceType":"KeyframeStore<MessageEventKeyframe>","resourceVersion":"1.0","Keyframes":[],},
|
||||
"eventStubScript": null,
|
||||
"eventToFunction": {},
|
||||
"length": 1.0,
|
||||
"lockOrigin": false,
|
||||
"moments": {"resourceType":"KeyframeStore<MomentsEventKeyframe>","resourceVersion":"1.0","Keyframes":[],},
|
||||
"playback": 1,
|
||||
"playbackSpeed": 30.0,
|
||||
"playbackSpeedType": 0,
|
||||
"showBackdrop": true,
|
||||
"showBackdropImage": false,
|
||||
"timeUnits": 1,
|
||||
"tracks": [
|
||||
{"resourceType":"GMSpriteFramesTrack","resourceVersion":"1.0","name":"frames","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"resourceType":"KeyframeStore<SpriteFrameKeyframe>","resourceVersion":"1.0","Keyframes":[
|
||||
{"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"1.0","Channels":{"0":{"resourceType":"SpriteFrameKeyframe","resourceVersion":"1.0","Id":{"name":"6c449033-0ee3-447b-8b8b-218f50c8327d","path":"sprites/s_dialog_bg_l/s_dialog_bg_l.yy",},},},"Disabled":false,"id":"fe80e8f1-57f1-4a7a-be4d-443e860078a7","IsCreationKey":false,"Key":0.0,"Length":1.0,"Stretch":false,},
|
||||
],},"modifiers":[],"spriteId":null,"trackColour":0,"tracks":[],"traits":0,},
|
||||
],
|
||||
"visibleRange": null,
|
||||
"volume": 1.0,
|
||||
"xorigin": 32,
|
||||
"yorigin": 32,
|
||||
},
|
||||
"swatchColours": null,
|
||||
"swfPrecision": 2.525,
|
||||
"textureGroupId": {
|
||||
"name": "Default",
|
||||
"path": "texturegroups/Default",
|
||||
},
|
||||
"type": 0,
|
||||
"VTile": false,
|
||||
"width": 64,
|
||||
}
|
BIN
sprites/s_node_vfx/7db36e9f-21a2-4294-a885-5a7115b42a2f.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.6 KiB |
|
@ -2,10 +2,10 @@
|
|||
"resourceType": "GMSprite",
|
||||
"resourceVersion": "1.0",
|
||||
"name": "s_node_vfx",
|
||||
"bbox_bottom": 62,
|
||||
"bbox_left": 1,
|
||||
"bbox_right": 62,
|
||||
"bbox_top": 1,
|
||||
"bbox_bottom": 63,
|
||||
"bbox_left": 0,
|
||||
"bbox_right": 63,
|
||||
"bbox_top": 0,
|
||||
"bboxMode": 0,
|
||||
"collisionKind": 1,
|
||||
"collisionTolerance": 0,
|
||||
|
@ -13,14 +13,14 @@
|
|||
"edgeFiltering": false,
|
||||
"For3D": false,
|
||||
"frames": [
|
||||
{"resourceType":"GMSpriteFrame","resourceVersion":"1.1","name":"e4859eac-f331-4c65-be2f-261f6d02ac9c",},
|
||||
{"resourceType":"GMSpriteFrame","resourceVersion":"1.1","name":"7db36e9f-21a2-4294-a885-5a7115b42a2f",},
|
||||
],
|
||||
"gridX": 0,
|
||||
"gridY": 0,
|
||||
"height": 64,
|
||||
"HTile": false,
|
||||
"layers": [
|
||||
{"resourceType":"GMImageLayer","resourceVersion":"1.0","name":"bc1bf205-9d43-4b46-91a8-4dad29968c85","blendMode":0,"displayName":"default","isLocked":false,"opacity":100.0,"visible":true,},
|
||||
{"resourceType":"GMImageLayer","resourceVersion":"1.0","name":"253db449-eeff-4be0-aff9-24470467e77f","blendMode":0,"displayName":"default","isLocked":false,"opacity":100.0,"visible":true,},
|
||||
],
|
||||
"nineSlice": null,
|
||||
"origin": 4,
|
||||
|
@ -54,7 +54,7 @@
|
|||
"timeUnits": 1,
|
||||
"tracks": [
|
||||
{"resourceType":"GMSpriteFramesTrack","resourceVersion":"1.0","name":"frames","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"resourceType":"KeyframeStore<SpriteFrameKeyframe>","resourceVersion":"1.0","Keyframes":[
|
||||
{"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"1.0","Channels":{"0":{"resourceType":"SpriteFrameKeyframe","resourceVersion":"1.0","Id":{"name":"e4859eac-f331-4c65-be2f-261f6d02ac9c","path":"sprites/s_node_vfx/s_node_vfx.yy",},},},"Disabled":false,"id":"1ce5decd-3286-48c7-87c0-47bf99d0038d","IsCreationKey":false,"Key":0.0,"Length":1.0,"Stretch":false,},
|
||||
{"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"1.0","Channels":{"0":{"resourceType":"SpriteFrameKeyframe","resourceVersion":"1.0","Id":{"name":"7db36e9f-21a2-4294-a885-5a7115b42a2f","path":"sprites/s_node_vfx/s_node_vfx.yy",},},},"Disabled":false,"id":"d48a04cb-4d44-4ea0-92e4-25022c9e5e3e","IsCreationKey":false,"Key":0.0,"Length":1.0,"Stretch":false,},
|
||||
],},"modifiers":[],"spriteId":null,"trackColour":0,"tracks":[],"traits":0,},
|
||||
],
|
||||
"visibleRange": null,
|
||||
|
|