mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-24 14:06:23 +01:00
Computer migration. Bug fixes.
This commit is contained in:
parent
6173fda1a1
commit
480e38ae01
17 changed files with 30 additions and 26 deletions
|
@ -744,7 +744,7 @@
|
|||
"isEcma": false,
|
||||
"LibraryEmitters": [],
|
||||
"MetaData": {
|
||||
"IDEVersion": "2023.8.0.98",
|
||||
"IDEVersion": "2023.8.1.102",
|
||||
},
|
||||
"resources": [
|
||||
{"id":{"name":"s_node_corner","path":"sprites/s_node_corner/s_node_corner.yy",},},
|
||||
|
|
|
@ -30,9 +30,8 @@
|
|||
var txt = __txtx("new_collection_create", "Create collection");
|
||||
var icon = THEME.accept;
|
||||
var clr = COLORS._main_value_positive;
|
||||
if(updating != noone) {
|
||||
if(updating != noone)
|
||||
txt = __txtx("new_collection_update", "Update collection");
|
||||
}
|
||||
|
||||
if(ugc == 1) {
|
||||
txt = __txtx("panel_inspector_workshop_upload", "Upload to Steam Workshop");
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// feather ignore all
|
||||
|
||||
/// @func BBMOD_DualQuaternion([_x, _y, _z, _w, _dx, _dy, _dz, _dw])
|
||||
///
|
||||
/// @desc A dual quaternion.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// feather ignore all
|
||||
|
||||
/// @func BBMOD_Quaternion([_x, _y, _z, _w])
|
||||
///
|
||||
/// @desc A quaternion.
|
||||
|
@ -410,10 +412,11 @@ function BBMOD_Quaternion(_x=0.0, _y=0.0, _z=0.0, _w=1.0) constructor
|
|||
static Normalize = function () {
|
||||
gml_pragma("forceinline");
|
||||
var _lengthSqr = LengthSqr();
|
||||
if(_lengthSqr == 0)
|
||||
return new BBMOD_Quaternion();
|
||||
|
||||
if (_lengthSqr >= math_get_epsilon())
|
||||
{
|
||||
return Scale(1.0 / sqrt(_lengthSqr));
|
||||
}
|
||||
return Clone();
|
||||
};
|
||||
|
||||
|
|
|
@ -1007,7 +1007,7 @@ end",
|
|||
with(_addon_custom) if(self.ID == ID) _addon = self;
|
||||
if(_addon == noone) return noone;
|
||||
|
||||
var wd = new button(onModify).setText(txt);
|
||||
var wd = button(onModify).setText(txt);
|
||||
wd.setLua(_addon.thread, onModify, function() {
|
||||
return lua_call(lua_thread, lua_thread_key);
|
||||
});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function buttonPalette(_onApply, dialog = noone) : widget() constructor {
|
||||
onApply = _onApply;
|
||||
parentDialog = dialog;
|
||||
current_palette = noone;
|
||||
current_palette = [];
|
||||
|
||||
function apply(value) {
|
||||
if(!interactable) return;
|
||||
|
@ -42,7 +42,7 @@ function buttonPalette(_onApply, dialog = noone) : widget() constructor {
|
|||
h = _h;
|
||||
}
|
||||
|
||||
if(!is_array(current_palette) || is_array(current_palette[0]))
|
||||
if(!is_array(current_palette) || array_empty(current_palette) || is_array(current_palette[0]))
|
||||
return 0;
|
||||
|
||||
var hoverRect = point_in_rectangle(_m[0], _m[1], _x, _y, _x + _w, _y + h);
|
||||
|
|
|
@ -29,9 +29,6 @@ function refreshCollections() {
|
|||
}
|
||||
|
||||
function searchCollection(_list, _search_str, _clear_list = true) {
|
||||
//if(_clear_list)
|
||||
// ds_list_clear(_list);
|
||||
|
||||
if(_search_str == "") return;
|
||||
var search_lower = string_lower(_search_str);
|
||||
|
||||
|
|
|
@ -1055,7 +1055,7 @@ function gif_std_enum_getIndex() {
|
|||
static readUInt16 = method(undefined, haxe_io_Input_readUInt16);
|
||||
static readBytes = method(undefined, haxe_io_Input_readBytes);
|
||||
static readString = method(undefined, haxe_io_Input_readString);
|
||||
if (_sourcePos == undefined) _sourcePos = 0;
|
||||
_sourcePos ??= 0;
|
||||
if (false) throw argument[2];
|
||||
method(self, haxe_io_Input_new)();
|
||||
if (_sourceLen == undefined) _sourceLen = array_length(_sourceBytes.b) - _sourcePos;
|
||||
|
|
|
@ -105,10 +105,10 @@
|
|||
|
||||
globalvar VERSION, SAVE_VERSION, VERSION_STRING, BUILD_NUMBER;
|
||||
|
||||
VERSION = 11530;
|
||||
VERSION = 11531;
|
||||
SAVE_VERSION = 11530;
|
||||
VERSION_STRING = "1.15.3.0";
|
||||
BUILD_NUMBER = 11530;
|
||||
VERSION_STRING = "1.15.3.1";
|
||||
BUILD_NUMBER = 11531;
|
||||
|
||||
globalvar APPEND_MAP;
|
||||
APPEND_MAP = ds_map_create();
|
||||
|
|
|
@ -106,5 +106,4 @@ function Node_VFX_Spawner(_x, _y, _group = noone) : Node_VFX_Spawner_Base(_x, _y
|
|||
draw_surface_align(spr, cx, cy, ss, fa_center, fa_center);
|
||||
} #endregion
|
||||
|
||||
|
||||
}
|
|
@ -49,6 +49,8 @@ function Node(_x, _y, _group = PANEL_GRAPH.getCurrentContext()) : __Node_Base(_x
|
|||
name = "";
|
||||
display_name = "";
|
||||
internalName = "";
|
||||
onSetDisplayName = noone;
|
||||
renamed = false;
|
||||
|
||||
tooltip = "";
|
||||
x = _x;
|
||||
|
@ -251,8 +253,8 @@ function Node(_x, _y, _group = PANEL_GRAPH.getCurrentContext()) : __Node_Base(_x
|
|||
h = max(min_h, (preview_surface && previewable)? 128 : 0, _hi, _ho);
|
||||
} #endregion
|
||||
|
||||
onSetDisplayName = noone;
|
||||
static setDisplayName = function(_name) { #region
|
||||
renamed = true;
|
||||
display_name = _name;
|
||||
internalName = string_replace_all(display_name, " ", "_");
|
||||
refreshNodeMap();
|
||||
|
@ -1376,6 +1378,7 @@ function Node(_x, _y, _group = PANEL_GRAPH.getCurrentContext()) : __Node_Base(_x
|
|||
array_push(_trigger, inspectInput2.serialize(scale, preset));
|
||||
array_push(_trigger, updatedTrigger.serialize(scale, preset));
|
||||
_map.inspectInputs = _trigger;
|
||||
_map.renamed = renamed;
|
||||
|
||||
doSerialize(_map);
|
||||
processSerialize(_map);
|
||||
|
@ -1432,6 +1435,8 @@ function Node(_x, _y, _group = PANEL_GRAPH.getCurrentContext()) : __Node_Base(_x
|
|||
|
||||
triggerRender();
|
||||
}
|
||||
|
||||
renamed = struct_try_get(load_map, "renamed", false);
|
||||
} #endregion
|
||||
|
||||
static inputBalance = function() { #region //Cross version compatibility for dynamic input nodes
|
||||
|
|
|
@ -109,7 +109,6 @@ function Node_Image_gif(_x, _y, _group = noone) : Node(_x, _y, _group) construct
|
|||
spr = spr_builder._spr;
|
||||
triggerRender();
|
||||
loading = 0;
|
||||
delete spr_builder;
|
||||
|
||||
gc_collect();
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ function Node_Pin(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|||
if(hov != noone) jun = hov.connect_type == JUNCTION_CONNECT.input? outputs[| 0] : inputs[| 0];
|
||||
else jun = inputs[| 0].value_from == noone? inputs[| 0] : outputs[| 0];
|
||||
|
||||
if(jun.drawJunction(_s, _mx, _my,))
|
||||
if(jun.drawJunction(_s, _mx, _my))
|
||||
hover = jun;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ function Node_Pin(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|||
active_draw_index = -1;
|
||||
}
|
||||
|
||||
if(display_name != "") {
|
||||
if(renamed && display_name != "" && display_name != "Pin") {
|
||||
draw_set_text(f_p0, fa_center, fa_bottom, COLORS._main_text);
|
||||
draw_text_transformed(xx, yy - 12, display_name, _s, _s, 0);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ function Node_Rigid_Object(_x, _y, _group = noone) : Node(_x, _y, _group) constr
|
|||
name = "Object";
|
||||
color = COLORS.node_blend_simulation;
|
||||
icon = THEME.rigidSim;
|
||||
//update_on_frame = true;
|
||||
|
||||
w = 96;
|
||||
min_h = 96;
|
||||
|
@ -29,8 +28,7 @@ function Node_Rigid_Object(_x, _y, _group = noone) : Node(_x, _y, _group) constr
|
|||
.setDisplay(VALUE_DISPLAY.enum_scroll, [ "Box", "Circle", "Custom" ])
|
||||
.rejectArray();
|
||||
|
||||
inputs[| 6] = nodeValue("Texture", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, noone)
|
||||
.rejectArray();
|
||||
inputs[| 6] = nodeValue("Texture", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, noone);
|
||||
|
||||
inputs[| 7] = nodeValue("Start shape", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 16, 16, 4, 4, AREA_SHAPE.rectangle ])
|
||||
.setDisplay(VALUE_DISPLAY.area);
|
||||
|
|
|
@ -1884,9 +1884,11 @@ function Panel_Animation() : PanelContent() constructor {
|
|||
for( var i = 0, n = array_length(keyframe_selecting); i < n; i++ ) {
|
||||
var cl = keyframe_selecting[i].cloneAnimator(,, false);
|
||||
if(cl == noone) continue;
|
||||
array_append(clones, cl);
|
||||
array_push(clones, cl);
|
||||
}
|
||||
|
||||
if(array_empty(clones)) return;
|
||||
|
||||
keyframe_selecting = clones;
|
||||
keyframe_dragging = keyframe_selecting[0];
|
||||
keyframe_drag_type = KEYFRAME_DRAG_TYPE.move;
|
||||
|
|
|
@ -219,7 +219,7 @@ function Panel_Collection() : PanelContent() constructor {
|
|||
draw_sprite_ui_uniform(THEME.group, 0, _boxx + grid_size / 2, yy + grid_size / 2, 1, c_white);
|
||||
|
||||
if(meta != noone && mode == 0) {
|
||||
if(meta.steam) {
|
||||
if(struct_try_get(meta, "steam")) {
|
||||
draw_sprite_ui_uniform(THEME.steam, 0, _boxx + ui(12), yy + ui(12), 1, COLORS._main_icon_dark, 1);
|
||||
if(meta.author_steam_id == STEAM_USER_ID) {
|
||||
draw_sprite_ui_uniform(THEME.steam_creator, 0, _boxx + grid_size - ui(8), yy + ui(12), 1, COLORS._main_icon_dark, 1);
|
||||
|
|
|
@ -173,7 +173,7 @@ function SAVE_COLLECTION(_node, _path, save_surface = true, metadata = noone, co
|
|||
if(save_surface) {
|
||||
var preview_surface = PANEL_PREVIEW.getNodePreviewSurface();
|
||||
if(is_surface(preview_surface)) {
|
||||
var icon_path = string_copy(_path, 1, string_length(_path) - 5) + ".png";
|
||||
var icon_path = string_replace(_path, filename_ext(_path), "") + ".png";
|
||||
surface_save_safe(preview_surface, icon_path);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue