diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-06 19:26:28 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-06 19:26:28 +1000 |
commit | fe4cc1961888db364bbc70cfe0e7a15ec27a5c5b (patch) | |
tree | db5357973b2e2ef368b6c1f81a701b8ea75b9a9b /source/frontend/StarInventory.cpp | |
parent | f75d1f0b5a78bfce56bde4fe57b8d1193a340e74 (diff) |
Change pure string format calls to use fmt::to_string
Diffstat (limited to 'source/frontend/StarInventory.cpp')
-rw-r--r-- | source/frontend/StarInventory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<LabelWidget>("healthtext"); - healthLabel->setText(strf("{}", m_player->maxHealth())); + healthLabel->setText(toString(m_player->maxHealth())); auto energyLabel = fetchChild<LabelWidget>("energytext"); - energyLabel->setText(strf("{}", m_player->maxEnergy())); + energyLabel->setText(toString(m_player->maxEnergy())); auto weaponLabel = fetchChild<LabelWidget>("weapontext"); weaponLabel->setText(strf("{}%", ceil(m_player->powerMultiplier() * 100))); auto defenseLabel = fetchChild<LabelWidget>("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<LabelWidget>("lblMoney"); - moneyLabel->setText(strf("{}", m_player->currency("money"))); + moneyLabel->setText(toString(m_player->currency("money"))); if (m_player->currency("essence") > 0) { fetchChild<ImageWidget>("imgEssenceIcon")->show(); auto essenceLabel = fetchChild<LabelWidget>("lblEssence"); essenceLabel->show(); - essenceLabel->setText(strf("{}", m_player->currency("essence"))); + essenceLabel->setText(toString(m_player->currency("essence"))); } else { fetchChild<ImageWidget>("imgEssenceIcon")->hide(); fetchChild<LabelWidget>("lblEssence")->hide(); |