mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-24 22:16:17 +01:00
mac remove libdlmod dependency
This commit is contained in:
parent
663150fb00
commit
f2af871678
5 changed files with 9 additions and 4 deletions
|
@ -29,7 +29,7 @@ if !target exit;
|
|||
var by = dialog_y + ui(18);
|
||||
|
||||
if(buttonInstant(THEME.button_hide, bx, by, bw, bh, mouse_ui, sFOCUS, sHOVER, __txt("Add") + "...", THEME.add,, COLORS._main_value_positive) == 2) {
|
||||
var path = get_open_filenames(".png", "");
|
||||
var path = get_open_filenames_compat(".png", "");
|
||||
key_release();
|
||||
if(path != "") {
|
||||
var paths = paths_to_array(path);
|
||||
|
|
|
@ -11,4 +11,9 @@ function filepath_resolve(path) {
|
|||
_path = string_replace_all(_path, "%APP%/", working_directory);
|
||||
|
||||
return _path;
|
||||
}
|
||||
|
||||
function get_open_filenames_compat(ext, sel) {
|
||||
if(OS == os_windows) return get_open_filenames(ext, sel);
|
||||
return get_open_filename(ext, sel);
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
function Node_create_Image_Animated(_x, _y, _group = noone) {
|
||||
var path = "";
|
||||
if(!LOADING && !APPENDING && !CLONING) {
|
||||
path = get_open_filenames(".png", "");
|
||||
path = get_open_filenames_compat(".png", "");
|
||||
key_release();
|
||||
if(path == "") return noone;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_create_Image_Sequence(_x, _y, _group = noone) {
|
||||
var path = "";
|
||||
if(!LOADING && !APPENDING && !CLONING) {
|
||||
path = get_open_filenames(".png", "");
|
||||
path = get_open_filenames_compat(".png", "");
|
||||
key_release();
|
||||
if(path == "") return noone;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ function pathArrayBox(_target, _data, _onClick) : widget() constructor {
|
|||
onClick = _onClick;
|
||||
|
||||
openPath = button(function() {
|
||||
var path = get_open_filenames(data[0], data[1]);
|
||||
var path = get_open_filenames_compat(data[0], data[1]);
|
||||
key_release();
|
||||
if(path == "") return noone;
|
||||
|
||||
|
|
Loading…
Reference in a new issue