| 1180 | |
| 1181 | const auto music_status{_ctx.get_config(Enums::Config::MUSIC)}; |
| 1182 | const auto sound_status{_ctx.get_config(Enums::Config::SOUND)}; |
| 1183 | const auto cga_status{!_render->get_monochrome()}; |
| 1184 | const auto music_icon{music_status ? ICON_MUSIC_ON : ICON_MUSIC_OFF}; |
| 1185 | const auto sound_icon{sound_status ? ICON_SOUND_ON : ICON_SOUND_OFF}; |
| 1186 | const auto cga_icon{cga_status ? ICON_CGA_ON : ICON_CGA_OFF}; |
| 1187 | |
| 1188 | const auto tint{_ctx.controller->get_monochrome() |
| 1189 | ? ImVec4{1.0f, 1.0f, 1.0f, _ctx.animation->fade} |
| 1190 | : ImVec4{1.0f, 0.0f, 1.0f, _ctx.animation->fade}}; |
| 1191 | |
| 1192 | const auto scale{_ctx.display->get_display_metrics().scale}; |
| 1193 | auto pos{ImVec2{4 * scale, 4 * scale}}; |
| 1194 | auto size{ImVec2{32 * scale, 32 * scale}}; |
| 1195 | |
| 1196 | with_Window(WINDOW_LAYER_TEXTS, nullptr, |
| 1197 | ImGuiWindowFlags_NoDecoration) { |
| 1198 | |
| 1199 | _draw_fg_image_with_idx(WINDOW_LAYER_TEXTS, ICONS_TEXTURE, |
| 1200 | music_icon, pos, size, tint); |
| 1201 | pos.x += 32 * scale; |
| 1202 | _draw_fg_image_with_idx(WINDOW_LAYER_TEXTS, ICONS_TEXTURE, |
| 1203 | sound_icon, pos, size, tint); |
| 1204 | |
| 1205 | pos.x += 32 * scale; |
| 1206 | _draw_fg_image_with_idx(WINDOW_LAYER_TEXTS, ICONS_TEXTURE, cga_icon, |
| 1207 | pos, size, tint); |
| 1208 | } |
| 1209 | }; |
| 1210 | }; |
| 1211 |
nothing calls this directly
no test coverage detected