feat: updated engine
This commit is contained in:
parent
cbe99774ff
commit
f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include "core/os/time.h"
|
||||
#include "core/version.h"
|
||||
#include "editor/gui/editor_toaster.h"
|
||||
#include "servers/display/display_server.h"
|
||||
|
||||
String _get_version_string(EditorVersionButton::VersionFormat p_format) {
|
||||
String main;
|
||||
|
|
@ -79,6 +81,10 @@ void EditorVersionButton::_notification(int p_what) {
|
|||
|
||||
void EditorVersionButton::pressed() {
|
||||
DisplayServer::get_singleton()->clipboard_set(_get_version_string(FORMAT_WITH_BUILD));
|
||||
EditorToaster *toaster = EditorToaster::get_singleton();
|
||||
if (toaster) {
|
||||
toaster->popup_str(TTR("Copied Godot editor version."));
|
||||
}
|
||||
}
|
||||
|
||||
EditorVersionButton::EditorVersionButton(VersionFormat p_format) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue