* 'master' of https://bitbucket.org/omigamedev/new_engine:
  add text input popup
This commit is contained in:
2019-09-12 15:18:22 +02:00
12 changed files with 186 additions and 12 deletions

View File

@@ -33,6 +33,7 @@
#endif
#include "node_panel_grid.h"
#include "node_panel_quick.h"
#include "node_input_box.h"
struct VRController
{
@@ -159,7 +160,11 @@ public:
bool clipboard_set_text(const std::string& s);
void pick_image(std::function<void(std::string path)> callback);
void pick_file(std::vector<std::string> types, std::function<void(std::string path)> callback);
#if __IOS__
void pick_file_save(const std::string& type, std::function<void(std::string path)> writer);
#else
void pick_file_save(std::vector<std::string> types, std::function<void(std::string path)> callback);
#endif
void pick_dir(std::function<void(std::string path)> callback);
void display_file(std::string path);
void share_file(std::string path);
@@ -206,7 +211,6 @@ public:
bool key_char(char key);
void toggle_ui();
void set_stylus();
std::shared_ptr<NodeMessageBox> message_box(const std::string& title, const std::string& text, bool cancel_button = false);
void rec_clear();
void rec_loop();
@@ -241,11 +245,17 @@ public:
void cloud_upload();
void cloud_upload_all();
void cloud_browse();
void upload(std::string filename, std::string name = "", std::function<void(float)> progress = nullptr);
void download(std::string url, std::string dest_filepath, std::function<void(float)> progress = nullptr);
void upload(std::string filename, std::string name = "",
std::function<void(float)> progress = nullptr);
void download(std::string url, std::string dest_filepath,
std::function<void(float)> progress = nullptr);
bool check_license();
std::shared_ptr<NodeProgressBar> show_progress(const std::string& title, int total = 0);
std::shared_ptr<NodeMessageBox> message_box(const std::string& title,
const std::string& text, bool cancel_button = false);
std::shared_ptr<NodeInputBox> input_box(const std::string& title,
const std::string& field_name, const std::string& ok_caption = "Ok");
void brush_update(bool update_color, bool update_brush);
void title_update();