You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add EditorStringNames singleton
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "editor/input_event_configuration_dialog.h"
|
||||
#include "core/input/input_map.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_string_names.h"
|
||||
#include "editor/event_listener_line_edit.h"
|
||||
#include "scene/gui/check_box.h"
|
||||
#include "scene/gui/line_edit.h"
|
||||
@@ -554,18 +555,18 @@ void InputEventConfigurationDialog::_notification(int p_what) {
|
||||
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
input_list_search->set_right_icon(input_list_search->get_theme_icon(SNAME("Search"), SNAME("EditorIcons")));
|
||||
input_list_search->set_right_icon(input_list_search->get_editor_theme_icon(SNAME("Search")));
|
||||
|
||||
key_mode->set_item_icon(KEYMODE_KEYCODE, get_theme_icon(SNAME("Keyboard"), SNAME("EditorIcons")));
|
||||
key_mode->set_item_icon(KEYMODE_PHY_KEYCODE, get_theme_icon(SNAME("KeyboardPhysical"), SNAME("EditorIcons")));
|
||||
key_mode->set_item_icon(KEYMODE_UNICODE, get_theme_icon(SNAME("KeyboardLabel"), SNAME("EditorIcons")));
|
||||
key_mode->set_item_icon(KEYMODE_KEYCODE, get_editor_theme_icon(SNAME("Keyboard")));
|
||||
key_mode->set_item_icon(KEYMODE_PHY_KEYCODE, get_editor_theme_icon(SNAME("KeyboardPhysical")));
|
||||
key_mode->set_item_icon(KEYMODE_UNICODE, get_editor_theme_icon(SNAME("KeyboardLabel")));
|
||||
|
||||
icon_cache.keyboard = get_theme_icon(SNAME("Keyboard"), SNAME("EditorIcons"));
|
||||
icon_cache.mouse = get_theme_icon(SNAME("Mouse"), SNAME("EditorIcons"));
|
||||
icon_cache.joypad_button = get_theme_icon(SNAME("JoyButton"), SNAME("EditorIcons"));
|
||||
icon_cache.joypad_axis = get_theme_icon(SNAME("JoyAxis"), SNAME("EditorIcons"));
|
||||
icon_cache.keyboard = get_editor_theme_icon(SNAME("Keyboard"));
|
||||
icon_cache.mouse = get_editor_theme_icon(SNAME("Mouse"));
|
||||
icon_cache.joypad_button = get_editor_theme_icon(SNAME("JoyButton"));
|
||||
icon_cache.joypad_axis = get_editor_theme_icon(SNAME("JoyAxis"));
|
||||
|
||||
event_as_text->add_theme_font_override("font", get_theme_font(SNAME("bold"), SNAME("EditorFonts")));
|
||||
event_as_text->add_theme_font_override("font", get_theme_font(SNAME("bold"), EditorStringName(EditorFonts)));
|
||||
|
||||
_update_input_list();
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user