Add a lifecycle method for manual theme item caching to Control
This commit is contained in:
@ -38,7 +38,20 @@ class ProgressBar : public Range {
|
||||
|
||||
bool percent_visible = true;
|
||||
|
||||
struct ThemeCache {
|
||||
Ref<StyleBox> bg_style;
|
||||
Ref<StyleBox> fg_style;
|
||||
|
||||
Ref<Font> font;
|
||||
int font_size = 0;
|
||||
Color font_color;
|
||||
int font_outline_size = 0;
|
||||
Color font_outline_color;
|
||||
} theme_cache;
|
||||
|
||||
protected:
|
||||
virtual void _update_theme_item_cache() override;
|
||||
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user