You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add EditorStringNames singleton
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "openxr_action_set_editor.h"
|
||||
|
||||
#include "editor/editor_string_names.h"
|
||||
#include "openxr_action_editor.h"
|
||||
|
||||
void OpenXRActionSetEditor::_bind_methods() {
|
||||
@@ -45,16 +46,16 @@ void OpenXRActionSetEditor::_bind_methods() {
|
||||
|
||||
void OpenXRActionSetEditor::_set_fold_icon() {
|
||||
if (is_expanded) {
|
||||
fold_btn->set_icon(get_theme_icon(SNAME("GuiTreeArrowDown"), SNAME("EditorIcons")));
|
||||
fold_btn->set_icon(get_theme_icon(SNAME("GuiTreeArrowDown"), EditorStringName(EditorIcons)));
|
||||
} else {
|
||||
fold_btn->set_icon(get_theme_icon(SNAME("GuiTreeArrowRight"), SNAME("EditorIcons")));
|
||||
fold_btn->set_icon(get_theme_icon(SNAME("GuiTreeArrowRight"), EditorStringName(EditorIcons)));
|
||||
}
|
||||
}
|
||||
|
||||
void OpenXRActionSetEditor::_theme_changed() {
|
||||
_set_fold_icon();
|
||||
add_action->set_icon(get_theme_icon(SNAME("Add"), SNAME("EditorIcons")));
|
||||
rem_action_set->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
|
||||
add_action->set_icon(get_theme_icon(SNAME("Add"), EditorStringName(EditorIcons)));
|
||||
rem_action_set->set_icon(get_theme_icon(SNAME("Remove"), EditorStringName(EditorIcons)));
|
||||
}
|
||||
|
||||
void OpenXRActionSetEditor::_notification(int p_what) {
|
||||
|
||||
Reference in New Issue
Block a user