bind the new file picker
here be lions until further notice.
This commit is contained in:
parent
4ec66a4684
commit
d81d8ff6aa
6 changed files with 64 additions and 138 deletions
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
// this is the code to a new file picker using Dear ImGui.
|
||||
// this will eventually replace ImGuiFileDialog as the built-in file picker.
|
||||
// this replaces ImGuiFileDialog as the built-in file picker.
|
||||
|
||||
#include "newFilePicker.h"
|
||||
#include "IconsFontAwesome4.h"
|
||||
|
|
@ -1120,6 +1120,10 @@ bool FurnaceFilePicker::draw() {
|
|||
// change directory
|
||||
readDirectory(newDir);
|
||||
}
|
||||
return (curStatus!=FP_STATUS_WAITING);
|
||||
}
|
||||
|
||||
bool FurnaceFilePicker::isOpened() {
|
||||
return isOpen;
|
||||
}
|
||||
|
||||
|
|
@ -1151,6 +1155,10 @@ bool FurnaceFilePicker::open(String name, String pa, int flags, const std::vecto
|
|||
return true;
|
||||
}
|
||||
|
||||
void FurnaceFilePicker::close() {
|
||||
isOpen=false;
|
||||
}
|
||||
|
||||
void FurnaceFilePicker::setMobile(bool val) {
|
||||
isMobile=val;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue