mirror of https://github.com/AxioDL/metaforce.git
CHudBossEnergyInterface: Make use of structured bindings in constructor
Same behavior, minus a verbose type name.
This commit is contained in:
parent
4e6150acc4
commit
67786721ff
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue