summaryrefslogtreecommitdiffstats
path: root/editor/export/project_export.h
diff options
context:
space:
mode:
authorMikael Hermansson <mikael@hermansson.io>2024-09-17 12:48:10 +0200
committerMikael Hermansson <mikael@hermansson.io>2024-09-25 17:07:28 +0200
commitd3be030ea6f3e295603ccf6cc9080a1d32051332 (patch)
treeea184077a368d8c447527dd8cb72f7eab1c27200 /editor/export/project_export.h
parent4254946de93bab0cc1fb36a7b9039c9ec43be924 (diff)
downloadredot-engine-d3be030ea6f3e295603ccf6cc9080a1d32051332.tar.gz
Add ability to export patch packs
Co-authored-by: Poq Xert <poqxert@poqxert.ru>
Diffstat (limited to 'editor/export/project_export.h')
-rw-r--r--editor/export/project_export.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/editor/export/project_export.h b/editor/export/project_export.h
index c3499177f3..e360596be6 100644
--- a/editor/export/project_export.h
+++ b/editor/export/project_export.h
@@ -105,6 +105,13 @@ class ProjectExportDialog : public ConfirmationDialog {
AcceptDialog *export_all_dialog = nullptr;
RBSet<String> feature_set;
+
+ Tree *patches = nullptr;
+ int patch_index = -1;
+ EditorFileDialog *patch_dialog = nullptr;
+ ConfirmationDialog *patch_erase = nullptr;
+ Button *patch_add_btn = nullptr;
+
LineEdit *custom_features = nullptr;
RichTextLabel *custom_feature_display = nullptr;
@@ -148,6 +155,12 @@ class ProjectExportDialog : public ConfirmationDialog {
void _tree_popup_edited(bool p_arrow_clicked);
void _set_file_export_mode(int p_id);
+ void _patch_tree_button_clicked(Object *p_item, int p_column, int p_id, int p_mouse_button_index);
+ void _patch_tree_item_edited();
+ void _patch_file_selected(const String &p_path);
+ void _patch_delete_confirmed();
+ void _patch_add_pack_pressed();
+
Variant get_drag_data_fw(const Point2 &p_point, Control *p_from);
bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const;
void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from);