You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Set range and change EDITOR_DEF to EDITOR_GET
Fix indentation Fix Indentation! Remove 14
This commit is contained in:
@@ -228,7 +228,7 @@ void editor_register_fonts(Ref<Theme> p_theme) {
|
|||||||
p_theme->set_font("doc", "EditorFonts", df_doc);
|
p_theme->set_font("doc", "EditorFonts", df_doc);
|
||||||
p_theme->set_font("doc_title", "EditorFonts", df_doc_title);
|
p_theme->set_font("doc_title", "EditorFonts", df_doc_title);
|
||||||
|
|
||||||
MAKE_SOURCE_FONT(df_doc_code, int(EDITOR_DEF("text_editor/help/help_source_font_size", 14)) * EDSCALE);
|
MAKE_SOURCE_FONT(df_doc_code, int(EDITOR_GET("text_editor/help/help_source_font_size")) * EDSCALE);
|
||||||
p_theme->set_font("doc_source", "EditorFonts", df_doc_code);
|
p_theme->set_font("doc_source", "EditorFonts", df_doc_code);
|
||||||
|
|
||||||
// Ruler font
|
// Ruler font
|
||||||
|
|||||||
@@ -467,6 +467,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
|
|
||||||
// Help
|
// Help
|
||||||
_initial_set("text_editor/help/show_help_index", true);
|
_initial_set("text_editor/help/show_help_index", true);
|
||||||
|
_initial_set("text_editor/help_source_font_size", 14);
|
||||||
|
hints["text_editor/help/help_source_font_size"] = PropertyInfo(Variant::REAL, "text_editor/help/help_source_font_size", PROPERTY_HINT_RANGE, "10, 50, 1");
|
||||||
|
|
||||||
/* Editors */
|
/* Editors */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user