bright-gpu-74537
11/08/2021, 9:23 AMearly-truck-71225
11/08/2021, 9:24 AMbright-gpu-74537
11/08/2021, 9:25 AMbright-gpu-74537
11/08/2021, 9:25 AMearly-truck-71225
11/08/2021, 9:25 AMbright-gpu-74537
11/08/2021, 9:26 AMbright-gpu-74537
11/08/2021, 9:26 AMnutritious-father-64388
11/08/2021, 1:57 PMbright-gpu-74537
11/08/2021, 3:22 PMbright-gpu-74537
11/08/2021, 3:24 PMnutritious-father-64388
11/08/2021, 3:48 PMnutritious-father-64388
11/08/2021, 3:48 PMnutritious-father-64388
11/08/2021, 3:49 PMnutritious-father-64388
11/08/2021, 3:50 PMpowerful-morning-89
11/08/2021, 3:58 PMnutritious-father-64388
11/08/2021, 4:06 PMnutritious-father-64388
11/08/2021, 4:07 PMnutritious-father-64388
11/08/2021, 4:08 PMnutritious-father-64388
11/08/2021, 4:08 PMnutritious-father-64388
11/08/2021, 4:14 PMbright-gpu-74537
11/08/2021, 4:15 PMbright-gpu-74537
11/08/2021, 4:36 PMnutritious-father-64388
11/08/2021, 4:38 PMnutritious-father-64388
11/08/2021, 4:38 PMpublic static function open(handler:(path:String)->Void):Void {
#if openfl
var window = new FileDialog();
window.onSelect.add(handler);
window.browse(FileDialogType.OPEN);
#end
#if hxWidgets
var dialog:FileDialog = new FileDialog(null, "Open a Haxe file", null, null, "All(*.*)|*.*|Haxe files (*.hx)|*.hx|Haxe build files (*.hxml)|*.hxml");
var r = dialog.showModal();
var path = dialog.directory + dialog.filename;
handler(path);
#end
}nutritious-father-64388
11/08/2021, 4:39 PMlime.ui.FileDialog and lime.ui.FileDialogType on lime targets, and just hx.widgets.FileDialog on hxWidgetsnutritious-father-64388
11/08/2021, 4:40 PMnutritious-father-64388
11/08/2021, 4:41 PMhaxe.io.Path instead of passing a string as wellnutritious-father-64388
11/08/2021, 4:41 PMbright-gpu-74537
11/08/2021, 4:51 PMbright-gpu-74537
11/08/2021, 4:52 PM