This commit is contained in:
Tanasart 2024-11-02 14:24:03 +07:00
parent a1d7a867bb
commit 761f9d5cf1
3 changed files with 21 additions and 14 deletions

View File

@ -42,7 +42,7 @@
LATEST_VERSION = 1_18_00_0;
VERSION = 1_18_01_0;
SAVE_VERSION = 1_18_02_0;
VERSION_STRING = MAC? "1.18.003m" : "1.18.3.011";
VERSION_STRING = MAC? "1.18.003m" : "1.18.3";
BUILD_NUMBER = 1_18_03_0;
HOTKEYS = ds_map_create();

View File

@ -601,7 +601,6 @@ function nodeValueUnit(_nodeValue) constructor {
_val[i] = is_real(value[i])? value[i] * base[i % 2] : value[i];
_val[4] = array_safe_get(value, 4);
return _val;
}

View File

@ -1,4 +1,4 @@
function preview_overlay_area_padding(interact, active, _x, _y, _s, _mx, _my, _snx, _sny, _flag, display_data) { #region
function preview_overlay_area_padding(interact, active, _x, _y, _s, _mx, _my, _snx, _sny, _flag, display_data) {
var _val = array_clone(getValue());
var hover = -1;
@ -128,9 +128,9 @@ function preview_overlay_area_padding(interact, active, _x, _y, _s, _mx, _my, _s
//draw_text_add((x0 + x1) / 2, (y0 + y1) / 2, name);
return hover;
} #endregion
}
function preview_overlay_area_two_point(interact, active, _x, _y, _s, _mx, _my, _snx, _sny, _flag) { #region
function preview_overlay_area_two_point(interact, active, _x, _y, _s, _mx, _my, _snx, _sny, _flag) {
var _val = array_clone(getValue());
var hover = -1;
@ -276,11 +276,12 @@ function preview_overlay_area_two_point(interact, active, _x, _y, _s, _mx, _my,
//draw_text_add((x0 + x1) / 2, (y0 + y1) / 2 - 4, name);
return hover;
} #endregion
}
function preview_overlay_area_span(interact, active, _x, _y, _s, _mx, _my, _snx, _sny, _flag) { #region
function preview_overlay_area_span(interact, active, _x, _y, _s, _mx, _my, _snx, _sny, _flag) {
var _val = array_clone(getValue());
var hover = -1;
var _ref = unit.mode == VALUE_UNIT.reference? unit.reference() : [ 1, 1 ];
var __ax = array_safe_get_fast(_val, 0);
var __ay = array_safe_get_fast(_val, 1);
@ -333,6 +334,11 @@ function preview_overlay_area_span(interact, active, _x, _y, _s, _mx, _my, _snx,
_val[1] = _yy;
}
_val[0] /= _ref[0];
_val[1] /= _ref[1];
_val[2] /= _ref[0];
_val[3] /= _ref[1];
if(setValueInspector(_val))
UNDO_HOLDING = true;
@ -357,6 +363,11 @@ function preview_overlay_area_span(interact, active, _x, _y, _s, _mx, _my, _snx,
_val[3] = max(_dx, _dy);
}
_val[0] /= _ref[0];
_val[1] /= _ref[1];
_val[2] /= _ref[0];
_val[3] /= _ref[1];
if(setValueInspector(_val))
UNDO_HOLDING = true;
@ -386,11 +397,8 @@ function preview_overlay_area_span(interact, active, _x, _y, _s, _mx, _my, _snx,
}
}
//draw_set_text(_f_p2b, fa_center, fa_bottom, COLORS._main_accent);
//draw_text_add(round(_ax), round(_ay - 4), name);
return hover;
} #endregion
}
function preview_overlay_area(interact, active, _x, _y, _s, _mx, _my, _snx, _sny, _flag, display_data) {
var _val = array_clone(getValue());