2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-11 08:05:52 +00:00

CHudBossEnergyInterface: Make use of structured bindings in constructor

Same behavior, minus a verbose type name.
This commit is contained in:
Lioncash 2020-04-13 14:59:44 -04:00
parent 4e6150acc4
commit 67786721ff

View File

@ -15,10 +15,11 @@ CHudBossEnergyInterface::CHudBossEnergyInterface(CGuiFrame& selHud) {
x18_energybart01_bossbar->SetCoordFunc(BossEnergyCoordFunc);
x18_energybart01_bossbar->SetTesselation(0.2f);
ITweakGuiColors::VisorEnergyBarColors barColors = g_tweakGuiColors->GetVisorEnergyBarColors(0);
x18_energybart01_bossbar->SetFilledColor(barColors.filled);
x18_energybart01_bossbar->SetShadowColor(barColors.shadow);
x18_energybart01_bossbar->SetEmptyColor(barColors.empty);
const auto& [filled, empty, shadow] = g_tweakGuiColors->GetVisorEnergyBarColors(0);
x18_energybart01_bossbar->SetFilledColor(filled);
x18_energybart01_bossbar->SetShadowColor(shadow);
x18_energybart01_bossbar->SetEmptyColor(empty);
}
void CHudBossEnergyInterface::Update(float dt) {