Fix autocompletion for Control's Theme properties
This commit is contained in:
parent
87e8e71190
commit
980cf73bbc
@ -2688,15 +2688,15 @@ void Control::get_argument_options(const StringName &p_function, int p_idx, List
|
|||||||
if (p_idx == 0) {
|
if (p_idx == 0) {
|
||||||
List<StringName> sn;
|
List<StringName> sn;
|
||||||
String pf = p_function;
|
String pf = p_function;
|
||||||
if (pf == "add_color_override" || pf == "has_color" || pf == "has_color_override" || pf == "get_color") {
|
if (pf == "add_theme_color_override" || pf == "has_theme_color" || pf == "has_theme_color_override" || pf == "get_theme_color") {
|
||||||
Theme::get_default()->get_color_list(get_class(), &sn);
|
Theme::get_default()->get_color_list(get_class(), &sn);
|
||||||
} else if (pf == "add_style_override" || pf == "has_style" || pf == "has_style_override" || pf == "get_style") {
|
} else if (pf == "add_theme_style_override" || pf == "has_theme_style" || pf == "has_theme_style_override" || pf == "get_theme_style") {
|
||||||
Theme::get_default()->get_stylebox_list(get_class(), &sn);
|
Theme::get_default()->get_stylebox_list(get_class(), &sn);
|
||||||
} else if (pf == "add_font_override" || pf == "has_font" || pf == "has_font_override" || pf == "get_font") {
|
} else if (pf == "add_theme_font_override" || pf == "has_theme_font" || pf == "has_theme_font_override" || pf == "get_theme_font") {
|
||||||
Theme::get_default()->get_font_list(get_class(), &sn);
|
Theme::get_default()->get_font_list(get_class(), &sn);
|
||||||
} else if (pf == "add_font_size_override" || pf == "has_font_size" || pf == "has_font_size_override" || pf == "get_font_size") {
|
} else if (pf == "add_theme_font_size_override" || pf == "has_theme_font_size" || pf == "has_theme_font_size_override" || pf == "get_theme_font_size") {
|
||||||
Theme::get_default()->get_font_size_list(get_class(), &sn);
|
Theme::get_default()->get_font_size_list(get_class(), &sn);
|
||||||
} else if (pf == "add_constant_override" || pf == "has_constant" || pf == "has_constant_override" || pf == "get_constant") {
|
} else if (pf == "add_theme_constant_override" || pf == "has_theme_constant" || pf == "has_theme_constant_override" || pf == "get_theme_constant") {
|
||||||
Theme::get_default()->get_constant_list(get_class(), &sn);
|
Theme::get_default()->get_constant_list(get_class(), &sn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user