mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 23:37:10 +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);
|
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) {
|
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();
|
key_release();
|
||||||
if(path != "") {
|
if(path != "") {
|
||||||
var paths = paths_to_array(path);
|
var paths = paths_to_array(path);
|
||||||
|
|
|
@ -12,3 +12,8 @@ function filepath_resolve(path) {
|
||||||
|
|
||||||
return _path;
|
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) {
|
function Node_create_Image_Animated(_x, _y, _group = noone) {
|
||||||
var path = "";
|
var path = "";
|
||||||
if(!LOADING && !APPENDING && !CLONING) {
|
if(!LOADING && !APPENDING && !CLONING) {
|
||||||
path = get_open_filenames(".png", "");
|
path = get_open_filenames_compat(".png", "");
|
||||||
key_release();
|
key_release();
|
||||||
if(path == "") return noone;
|
if(path == "") return noone;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
function Node_create_Image_Sequence(_x, _y, _group = noone) {
|
function Node_create_Image_Sequence(_x, _y, _group = noone) {
|
||||||
var path = "";
|
var path = "";
|
||||||
if(!LOADING && !APPENDING && !CLONING) {
|
if(!LOADING && !APPENDING && !CLONING) {
|
||||||
path = get_open_filenames(".png", "");
|
path = get_open_filenames_compat(".png", "");
|
||||||
key_release();
|
key_release();
|
||||||
if(path == "") return noone;
|
if(path == "") return noone;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ function pathArrayBox(_target, _data, _onClick) : widget() constructor {
|
||||||
onClick = _onClick;
|
onClick = _onClick;
|
||||||
|
|
||||||
openPath = button(function() {
|
openPath = button(function() {
|
||||||
var path = get_open_filenames(data[0], data[1]);
|
var path = get_open_filenames_compat(data[0], data[1]);
|
||||||
key_release();
|
key_release();
|
||||||
if(path == "") return noone;
|
if(path == "") return noone;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue