mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
EditorNode: Add function to load file as scene or resource
This commit is contained in:
parent
c2ba0a8646
commit
d2d02d0ea8
16 changed files with 57 additions and 142 deletions
|
|
@ -139,12 +139,6 @@ public:
|
|||
class DependencyErrorDialog : public ConfirmationDialog {
|
||||
GDCLASS(DependencyErrorDialog, ConfirmationDialog);
|
||||
|
||||
public:
|
||||
enum Mode {
|
||||
MODE_SCENE,
|
||||
MODE_RESOURCE,
|
||||
};
|
||||
|
||||
private:
|
||||
String for_file;
|
||||
Mode mode;
|
||||
|
|
@ -155,7 +149,7 @@ private:
|
|||
void custom_action(const String &) override;
|
||||
|
||||
public:
|
||||
void show(Mode p_mode, const String &p_for_file, const Vector<String> &report);
|
||||
void show(const String &p_for_file, const Vector<String> &report);
|
||||
DependencyErrorDialog();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue