Prevent the surface upgrade tool from running during export

Also add an explicit way to trigger the tool manually
at user's will.
This commit is contained in:
Yuri Sizov
2023-11-20 14:44:38 +01:00
parent 80de898d72
commit fdaee9ee89
6 changed files with 88 additions and 18 deletions

View File

@ -31,7 +31,7 @@
#ifndef SURFACE_UPGRADE_TOOL_H
#define SURFACE_UPGRADE_TOOL_H
#include "scene/main/node.h"
#include "scene/gui/dialogs.h"
class EditorFileSystemDirectory;
@ -57,6 +57,7 @@ public:
bool is_show_requested() const { return show_requested; };
void show_popup() { _show_popup(); }
void prepare_upgrade();
void begin_upgrade();
void finish_upgrade();
@ -64,4 +65,14 @@ public:
~SurfaceUpgradeTool();
};
class SurfaceUpgradeDialog : public ConfirmationDialog {
GDCLASS(SurfaceUpgradeDialog, ConfirmationDialog);
protected:
void _notification(int p_what);
public:
SurfaceUpgradeDialog();
};
#endif // SURFACE_UPGRADE_TOOL_H