mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-31 07:17:31 +01:00
[Shape] Fix loading older project set Positioning Mode to full image instead of area.
This commit is contained in:
parent
37662838db
commit
c135e67f5a
4 changed files with 7 additions and 4 deletions
Binary file not shown.
Binary file not shown.
|
@ -39,7 +39,7 @@ if !ready exit;
|
|||
var y0 = dialog_y + ui(128);
|
||||
var y1 = dialog_y + dialog_h - ui(16);
|
||||
|
||||
draw_set_text(f_p0, fa_left, fa_bottom, COLORS._main_text_sub);
|
||||
draw_set_text(f_p2, fa_left, fa_bottom, COLORS._main_text_sub);
|
||||
draw_text(x0, y0 - ui(4), __txt("Recent files"));
|
||||
|
||||
sp_recent.setFocusHover(sFOCUS, sHOVER);
|
||||
|
@ -51,7 +51,7 @@ if !ready exit;
|
|||
var bx = x1 - ui(28);
|
||||
var by = y0 - ui(28 + 4);
|
||||
var txt = __txtx("splash_clear_recent", "Clear recent files");
|
||||
if(buttonInstant(THEME.button_hide_fill, bx, by, ui(28), ui(28), mouse_ui, sHOVER, sFOCUS, txt, THEME.icon_delete,, COLORS._main_value_negative) == 2) {
|
||||
if(buttonInstant(THEME.button_hide_fill, bx, by, ui(28), ui(28), mouse_ui, sHOVER, sFOCUS, txt, THEME.icon_delete, 0, COLORS._main_value_negative) == 2) {
|
||||
ds_list_clear(RECENT_FILES);
|
||||
RECENT_SAVE();
|
||||
}
|
||||
|
@ -62,9 +62,9 @@ if !ready exit;
|
|||
// recent_thumbnail = !recent_thumbnail;
|
||||
// }
|
||||
|
||||
bx -= ui(28 + 4);
|
||||
bx -= ui(28 + 1);
|
||||
txt = __txtx("splash_open_autosave", "Open autosave folder");
|
||||
if(buttonInstant(THEME.button_hide_fill, bx, by, ui(28), ui(28), mouse_ui, sHOVER, sFOCUS, txt, THEME.save_auto, 0) == 2) {
|
||||
if(buttonInstant(THEME.button_hide_fill, bx, by, ui(28), ui(28), mouse_ui, sHOVER, sFOCUS, txt, THEME.save_auto, 0, COLORS._main_icon, 1, .75) == 2) {
|
||||
shellOpenExplorer(DIRECTORY + "autosave");
|
||||
}
|
||||
|
||||
|
|
|
@ -578,6 +578,9 @@ function Node_Shape(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con
|
|||
static postDeserialize = function() {
|
||||
if(CLONING) return;
|
||||
|
||||
if(array_length(load_map.inputs) <= 15)
|
||||
load_map.inputs[15] = { raw_value : { d : 0 } };
|
||||
|
||||
if(LOADING_VERSION < 1_18_01_0) {
|
||||
if(array_length(load_map.inputs) >= 23) {
|
||||
var _dat = load_map.inputs[23].raw_value;
|
||||
|
|
Loading…
Reference in a new issue