- Update localization file.

This commit is contained in:
Tanasart 2024-04-08 19:52:24 +07:00
parent f74971f7fb
commit be1ab0ba66
13 changed files with 39786 additions and 34196 deletions

Binary file not shown.

View file

@ -404,5 +404,26 @@
"pref_ui_font": "Overwrite UI font",
"panel_menu_node_credit": "Node credit dialog",
"panel_collection_update_thumbnail": "Update thumbnail",
"panel_collection_workshop_upload": "Upload to Steam Workshop",
"panel_graph_toggle_parameter" : "Toggle node parameters",
"panel_graph_group_require_shift" : "Hold Shift to enter group",
"pref_add_node_remember" : "Remember add node position",
"pref_preview_show_real_fps" : "Show real fps",
"pref_widget_textbox_shake" : "Textbox shake",
"pref_widget_textbox_particles" : "Textbox particles",
"panel_menu_test_error" : "Display Error",
"pref_node_param_show" : "Show paramater on new node",
"panel_menu_test_warning" : "Display Warning",
"pref_node_param_width" : "Default param width",
"panel_menu_test_gen_theme" : "Generate theme object",
"collapse_toggle" : "Collapse Toggle",
"panel_animation_name_only" : "Node name",
"toggle_nodes" : "Toggle nodes",
"panel_animation_name_type" : "Node type",
"toggle_parameters" : "Toggle parameters",
"panel_driver" : "Driver...",
"panel_preview_lock_preview" : "Lock previewing node",
"" : ""
}

File diff suppressed because it is too large Load diff

View file

@ -347,5 +347,14 @@
"mk_effects": "MK Effects",
"flip_fluid": "FLIP Fluid",
"projects": "Projects",
"project": "Project",
"portable_project_(.zip)": "Portable project (.zip)",
"brightness": "Brightness",
"alpha": "Alpha",
"material": "Material",
"packing": "Packing",
"resume" : "Resume",
"" : ""
}

Binary file not shown.

View file

@ -404,5 +404,26 @@
"pref_ui_font": "Overwrite UI font",
"panel_menu_node_credit": "Node credit dialog",
"panel_collection_update_thumbnail": "Update thumbnail",
"panel_collection_workshop_upload": "Upload to Steam Workshop",
"panel_graph_toggle_parameter" : "Toggle node parameters",
"panel_graph_group_require_shift" : "Hold Shift to enter group",
"pref_add_node_remember" : "Remember add node position",
"pref_preview_show_real_fps" : "Show real fps",
"pref_widget_textbox_shake" : "Textbox shake",
"pref_widget_textbox_particles" : "Textbox particles",
"panel_menu_test_error" : "Display Error",
"pref_node_param_show" : "Show paramater on new node",
"panel_menu_test_warning" : "Display Warning",
"pref_node_param_width" : "Default param width",
"panel_menu_test_gen_theme" : "Generate theme object",
"collapse_toggle" : "Collapse Toggle",
"panel_animation_name_only" : "Node name",
"toggle_nodes" : "Toggle nodes",
"panel_animation_name_type" : "Node type",
"toggle_parameters" : "Toggle parameters",
"panel_driver" : "Driver...",
"panel_preview_lock_preview" : "Lock previewing node",
"" : ""
}

File diff suppressed because it is too large Load diff

View file

@ -347,5 +347,14 @@
"mk_effects": "MK Effects",
"flip_fluid": "FLIP Fluid",
"projects": "Projects",
"project": "Project",
"portable_project_(.zip)": "Portable project (.zip)",
"brightness": "Brightness",
"alpha": "Alpha",
"material": "Material",
"packing": "Packing",
"resume" : "Resume",
"" : ""
}

View file

@ -202,6 +202,7 @@ function Node_3D_Object(_x, _y, _group = noone) : Node_3D(_x, _y, _group) constr
var mAdj, nor, prj;
var ray = _camera.viewPointToWorldRay(drag_mx, drag_my);
var val = [ drag_val[0], drag_val[1], drag_val[2] ];
if(drag_axis < 3) {
switch(drag_axis) {
@ -223,9 +224,9 @@ function Node_3D_Object(_x, _y, _group = noone) : Node_3D(_x, _y, _group) constr
var _dist = _diff.dot(prj);
for( var i = 0; i < 3; i++ )
drag_val[i] += prj.getIndex(i) * _dist;
val[i] += prj.getIndex(i) * _dist;
if(inputs[| index].setValue(value_snap(drag_val, _snx)))
if(inputs[| index].setValue(value_snap(val, _snx)))
UNDO_HOLDING = true;
}
} else {
@ -245,13 +246,14 @@ function Node_3D_Object(_x, _y, _group = noone) : Node_3D(_x, _y, _group) constr
var _diff = mAdj.subtract(drag_prev);
for( var i = 0; i < 3; i++ )
drag_val[i] += _diff.getIndex(i);
val[i] += _diff.getIndex(i);
if(inputs[| index].setValue(value_snap(drag_val, _snx)))
if(inputs[| index].setValue(value_snap(val, _snx)))
UNDO_HOLDING = true;
}
}
drag_val = [ val[0], val[1], val[2] ];
drag_prev = mAdj;
}

View file

@ -4,6 +4,8 @@
fontDir: "",
config: { per_character_line_break: false },
};
global.missing_locale = {}
TEST_LOCALE = false;
LOCALE_DEF = true;
@ -45,8 +47,9 @@
if(LOCALE_DEF && !TEST_LOCALE) return def;
if(TEST_LOCALE) {
if(!struct_has(LOCALE.word, key) && !struct_has(LOCALE.ui, key)) {
show_debug_message($"LOCALE: \"{key}\": \"{def}\",");
if(key != "" && !struct_has(LOCALE.word, key) && !struct_has(LOCALE.ui, key)) {
global.missing_locale[$ key] = def;
show_debug_message($"LOCALE: {global.missing_locale}");
return def;
}
return "";
@ -67,8 +70,9 @@
key = string_replace_all(key, " ", "_");
if(TEST_LOCALE) {
if(!struct_has(LOCALE.word, key) && !struct_has(LOCALE.ui, key)) {
show_debug_message($"LOCALE: \"{key}\": \"{txt}\",");
if(key != "" && !struct_has(LOCALE.word, key) && !struct_has(LOCALE.ui, key)) {
global.missing_locale[$ key] = txt;
show_debug_message($"LOCALE: {global.missing_locale}");
return txt;
}
return "";
@ -80,7 +84,7 @@
function __txta(txt) { #region
var _txt = __txt(txt);
for(var i = 1; i < argument_count; i++)
_txt = string_replace_all(_txt, "{" + string(i) + "}", string(argument[i]));
_txt = string_replace_all(_txt, $"\{{i}\}", string(argument[i]));
return _txt;
} #endregion
@ -91,7 +95,7 @@
if(LOCALE_DEF && !TEST_LOCALE) return def;
if(TEST_LOCALE) {
if(!struct_has(LOCALE.node, node)) {
if(node != "Node_Custom" && !struct_has(LOCALE.node, node)) {
show_debug_message($"LOCALE [NODE]: \"{node}\": \"{def}\",");
return def;
}
@ -110,7 +114,7 @@
if(LOCALE_DEF && !TEST_LOCALE) return def;
if(TEST_LOCALE) {
if(!struct_has(LOCALE.node, node)) {
if(node != "Node_Custom" && !struct_has(LOCALE.node, node)) {
show_debug_message($"LOCALE [TIP]: \"{node}\": \"{def}\",");
return def;
}

View file

@ -627,6 +627,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
process_array = true;
dynamic_array = false;
validateValue = true;
runInUI = false;
fullUpdate = false;
@ -1981,6 +1982,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
updated |= animators[i].setValue(val[i], _inp && record, time);
} else
updated = animators[index].setValue(val, _inp && record, time);
} else {
if(index != noone) {
_val = animator.getValue(time);
@ -1990,7 +1992,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
}
updated = animator.setValue(_val, _inp && record, time);
//print($"{updated}: {index} - {_val}");
}
if(type == VALUE_TYPE.gradient) updated = true;

View file

@ -17,7 +17,7 @@ function Panel_Collection() : PanelContent() constructor {
min_h = ui(40);
roots = [ ["Collections", COLLECTIONS] , ["Assets", global.ASSETS] ];
if(STEAM_ENABLED) array_push(roots, ["Project", STEAM_PROJECTS]);
if(STEAM_ENABLED) array_push(roots, ["Projects", STEAM_PROJECTS]);
mode = 0;
root = roots[mode][1];

View file

@ -4,7 +4,7 @@ function check_version(path) {
return true;
}
//if(TESTING) return true;
if(TESTING) return true;
var res = json_load_struct(path);
json_save_struct(path, { version: BUILD_NUMBER });