Add _get_unsaved_status() method to EditorPlugin
This commit is contained in:
parent
79a9e79561
commit
6dc5dc3479
5 changed files with 52 additions and 1 deletions
|
|
@ -341,7 +341,12 @@ void EditorPlugin::clear() {
|
|||
GDVIRTUAL_CALL(_clear);
|
||||
}
|
||||
|
||||
// if editor references external resources/scenes, save them
|
||||
String EditorPlugin::get_unsaved_status() const {
|
||||
String ret;
|
||||
GDVIRTUAL_CALL(_get_unsaved_status, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void EditorPlugin::save_external_data() {
|
||||
GDVIRTUAL_CALL(_save_external_data);
|
||||
}
|
||||
|
|
@ -594,6 +599,7 @@ void EditorPlugin::_bind_methods() {
|
|||
GDVIRTUAL_BIND(_get_state);
|
||||
GDVIRTUAL_BIND(_set_state, "state");
|
||||
GDVIRTUAL_BIND(_clear);
|
||||
GDVIRTUAL_BIND(_get_unsaved_status);
|
||||
GDVIRTUAL_BIND(_save_external_data);
|
||||
GDVIRTUAL_BIND(_apply_changes);
|
||||
GDVIRTUAL_BIND(_get_breakpoints);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue