mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
-Added a ColorFrame control, kind of like Texture but for color.
-Added dropping nodes to text editor for them to become a path -Fixed issues with font not properly being set in code editor
This commit is contained in:
parent
1bf684cea2
commit
95eb7466df
10 changed files with 220 additions and 4 deletions
|
|
@ -1128,8 +1128,10 @@ void CodeTextEditor::_update_font() {
|
|||
font_overridden = true;
|
||||
}
|
||||
}
|
||||
if(!font_overridden)
|
||||
if(!font_overridden) {
|
||||
|
||||
text_editor->add_font_override("font",get_font("source","EditorFonts"));
|
||||
}
|
||||
}
|
||||
|
||||
void CodeTextEditor::_on_settings_change() {
|
||||
|
|
@ -1168,7 +1170,7 @@ void CodeTextEditor::_notification(int p_what) {
|
|||
_load_theme_settings();
|
||||
emit_signal("load_theme_settings");
|
||||
}
|
||||
if (p_what==NOTIFICATION_ENTER_TREE) {
|
||||
if (p_what==NOTIFICATION_THEME_CHANGED) {
|
||||
_update_font();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue