From fe4cc1961888db364bbc70cfe0e7a15ec27a5c5b Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 6 Jul 2023 19:26:28 +1000 Subject: Change pure string format calls to use fmt::to_string --- source/frontend/StarInventory.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/frontend/StarInventory.cpp') diff --git a/source/frontend/StarInventory.cpp b/source/frontend/StarInventory.cpp index a5a17e1..850eedf 100644 --- a/source/frontend/StarInventory.cpp +++ b/source/frontend/StarInventory.cpp @@ -317,25 +317,25 @@ void InventoryPane::update() { techOverlay->setVisibility(m_player->techOverridden()); auto healthLabel = fetchChild("healthtext"); - healthLabel->setText(strf("{}", m_player->maxHealth())); + healthLabel->setText(toString(m_player->maxHealth())); auto energyLabel = fetchChild("energytext"); - energyLabel->setText(strf("{}", m_player->maxEnergy())); + energyLabel->setText(toString(m_player->maxEnergy())); auto weaponLabel = fetchChild("weapontext"); weaponLabel->setText(strf("{}%", ceil(m_player->powerMultiplier() * 100))); auto defenseLabel = fetchChild("defensetext"); if (m_player->protection() == 0) defenseLabel->setText("--"); else - defenseLabel->setText(strf("{}", ceil(m_player->protection()))); + defenseLabel->setText(toString(ceil(m_player->protection()))); auto moneyLabel = fetchChild("lblMoney"); - moneyLabel->setText(strf("{}", m_player->currency("money"))); + moneyLabel->setText(toString(m_player->currency("money"))); if (m_player->currency("essence") > 0) { fetchChild("imgEssenceIcon")->show(); auto essenceLabel = fetchChild("lblEssence"); essenceLabel->show(); - essenceLabel->setText(strf("{}", m_player->currency("essence"))); + essenceLabel->setText(toString(m_player->currency("essence"))); } else { fetchChild("imgEssenceIcon")->hide(); fetchChild("lblEssence")->hide(); -- cgit v1.2.3