diff options
Diffstat (limited to 'scene/gui/control.cpp')
| -rw-r--r-- | scene/gui/control.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 2d425490d1..b95df86e50 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2577,8 +2577,8 @@ Ref<Texture2D> Control::get_theme_icon(const StringName &p_name, const StringNam return data.theme_icon_cache[p_theme_type][p_name]; } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); Ref<Texture2D> icon = data.theme_owner->get_theme_item_in_types(Theme::DATA_TYPE_ICON, p_name, theme_types); data.theme_icon_cache[p_theme_type][p_name] = icon; return icon; @@ -2601,8 +2601,8 @@ Ref<StyleBox> Control::get_theme_stylebox(const StringName &p_name, const String return data.theme_style_cache[p_theme_type][p_name]; } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); Ref<StyleBox> style = data.theme_owner->get_theme_item_in_types(Theme::DATA_TYPE_STYLEBOX, p_name, theme_types); data.theme_style_cache[p_theme_type][p_name] = style; return style; @@ -2625,8 +2625,8 @@ Ref<Font> Control::get_theme_font(const StringName &p_name, const StringName &p_ return data.theme_font_cache[p_theme_type][p_name]; } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); Ref<Font> font = data.theme_owner->get_theme_item_in_types(Theme::DATA_TYPE_FONT, p_name, theme_types); data.theme_font_cache[p_theme_type][p_name] = font; return font; @@ -2649,8 +2649,8 @@ int Control::get_theme_font_size(const StringName &p_name, const StringName &p_t return data.theme_font_size_cache[p_theme_type][p_name]; } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); int font_size = data.theme_owner->get_theme_item_in_types(Theme::DATA_TYPE_FONT_SIZE, p_name, theme_types); data.theme_font_size_cache[p_theme_type][p_name] = font_size; return font_size; @@ -2673,8 +2673,8 @@ Color Control::get_theme_color(const StringName &p_name, const StringName &p_the return data.theme_color_cache[p_theme_type][p_name]; } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); Color color = data.theme_owner->get_theme_item_in_types(Theme::DATA_TYPE_COLOR, p_name, theme_types); data.theme_color_cache[p_theme_type][p_name] = color; return color; @@ -2697,8 +2697,8 @@ int Control::get_theme_constant(const StringName &p_name, const StringName &p_th return data.theme_constant_cache[p_theme_type][p_name]; } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); int constant = data.theme_owner->get_theme_item_in_types(Theme::DATA_TYPE_CONSTANT, p_name, theme_types); data.theme_constant_cache[p_theme_type][p_name] = constant; return constant; @@ -2743,8 +2743,8 @@ bool Control::has_theme_icon(const StringName &p_name, const StringName &p_theme } } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); return data.theme_owner->has_theme_item_in_types(Theme::DATA_TYPE_ICON, p_name, theme_types); } @@ -2760,8 +2760,8 @@ bool Control::has_theme_stylebox(const StringName &p_name, const StringName &p_t } } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); return data.theme_owner->has_theme_item_in_types(Theme::DATA_TYPE_STYLEBOX, p_name, theme_types); } @@ -2777,8 +2777,8 @@ bool Control::has_theme_font(const StringName &p_name, const StringName &p_theme } } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); return data.theme_owner->has_theme_item_in_types(Theme::DATA_TYPE_FONT, p_name, theme_types); } @@ -2794,8 +2794,8 @@ bool Control::has_theme_font_size(const StringName &p_name, const StringName &p_ } } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); return data.theme_owner->has_theme_item_in_types(Theme::DATA_TYPE_FONT_SIZE, p_name, theme_types); } @@ -2811,8 +2811,8 @@ bool Control::has_theme_color(const StringName &p_name, const StringName &p_them } } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); return data.theme_owner->has_theme_item_in_types(Theme::DATA_TYPE_COLOR, p_name, theme_types); } @@ -2828,8 +2828,8 @@ bool Control::has_theme_constant(const StringName &p_name, const StringName &p_t } } - List<StringName> theme_types; - data.theme_owner->get_theme_type_dependencies(this, p_theme_type, &theme_types); + Vector<StringName> theme_types; + data.theme_owner->get_theme_type_dependencies(this, p_theme_type, theme_types); return data.theme_owner->has_theme_item_in_types(Theme::DATA_TYPE_CONSTANT, p_name, theme_types); } |
