You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Add EditorStringNames singleton
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_string_names.h"
|
||||
#include "scene/gui/link_button.h"
|
||||
|
||||
void FBXImporterManager::_notification(int p_what) {
|
||||
@@ -88,11 +89,11 @@ void FBXImporterManager::_validate_path(const String &p_path) {
|
||||
|
||||
if (success) {
|
||||
path_status->set_text(TTR("FBX2glTF executable is valid."));
|
||||
path_status->add_theme_color_override("font_color", path_status->get_theme_color(SNAME("success_color"), SNAME("Editor")));
|
||||
path_status->add_theme_color_override("font_color", path_status->get_theme_color(SNAME("success_color"), EditorStringName(Editor)));
|
||||
get_ok_button()->set_disabled(false);
|
||||
} else {
|
||||
path_status->set_text(error);
|
||||
path_status->add_theme_color_override("font_color", path_status->get_theme_color(SNAME("error_color"), SNAME("Editor")));
|
||||
path_status->add_theme_color_override("font_color", path_status->get_theme_color(SNAME("error_color"), EditorStringName(Editor)));
|
||||
get_ok_button()->set_disabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user