| 85 | } |
| 86 | |
| 87 | void GDREGuiIcons::init_for_scale(float scale) { |
| 88 | MutexLock lock(init_lock); |
| 89 | |
| 90 | // Check if this scale is already initialized |
| 91 | if (icons.has(scale)) { |
| 92 | return; |
| 93 | } |
| 94 | |
| 95 | // Initialize all icons for this scale |
| 96 | for (int i = 0; i < gdre_icons_count; i++) { |
| 97 | icons[scale][gdre_icons_names[i]] = generate_icon(i, scale); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | void GDREGuiIcons::add_icons_to_theme(Control *p_theme) { |
| 102 | auto scale = p_theme->get_theme_default_base_scale(); |
nothing calls this directly
no test coverage detected