From 66e0a0373fd144bca901096fabe96dcc1e30d0d7 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Fri, 12 Nov 2021 19:57:04 +0100 Subject: [PATCH] refactor: add identation --- src/render/gui/MobTooltip.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/render/gui/MobTooltip.cpp b/src/render/gui/MobTooltip.cpp index 31e83c2..f594011 100644 --- a/src/render/gui/MobTooltip.cpp +++ b/src/render/gui/MobTooltip.cpp @@ -15,26 +15,26 @@ MobTooltip::MobTooltip(client::Client* client) : GuiWidget(client) { } void MobTooltip::render() { - if(m_Mob == nullptr) return; + if (m_Mob == nullptr) return; const game::Player& sender = getClient()->getGame().getPlayerById(m_Mob->getSender()); ImGui::BeginTooltip(); - ImGui::Text("Sender :"); - ImGui::SameLine(); - ImGui::PushStyleColor(ImGuiCol_Text, render::WorldRenderer::getImGuiTeamColor(sender.getTeamColor())); - ImGui::Text("%s", sender.getName().c_str()); - ImGui::PopStyleColor(); - ImGui::Text("Mob HP : %.1f/%i", m_Mob->getHealth(), m_Mob->getStats()->getMaxLife()); - ImGui::Text("Mob Type : %s", game::MobFactory::getMobName(m_Mob->getType()).c_str()); - ImGui::Text("Mob Level : %i", m_Mob->getLevel()); - ImGui::NewLine(); - ImGui::Text("Mob Stats :"); - ImGui::Text("\tMax health : %i", m_Mob->getStats()->getMaxLife()); - ImGui::Text("\tSpeed : %.1f", m_Mob->getStats()->getMovementSpeed()); - ImGui::Text("\tDamage : %.1f", m_Mob->getStats()->getDamage()); - ImGui::Text("\tMoney cost : %i", m_Mob->getStats()->getMoneyCost()); - ImGui::Text("\tEXP cost : %i", m_Mob->getStats()->getExpCost()); - ImGui::Text("\tEXP reward : %i", m_Mob->getStats()->getExpReward()); + ImGui::Text("Sender :"); + ImGui::SameLine(); + ImGui::PushStyleColor(ImGuiCol_Text, render::WorldRenderer::getImGuiTeamColor(sender.getTeamColor())); + ImGui::Text("%s", sender.getName().c_str()); + ImGui::PopStyleColor(); + ImGui::Text("Mob HP : %.1f/%i", m_Mob->getHealth(), m_Mob->getStats()->getMaxLife()); + ImGui::Text("Mob Type : %s", game::MobFactory::getMobName(m_Mob->getType()).c_str()); + ImGui::Text("Mob Level : %i", m_Mob->getLevel()); + ImGui::NewLine(); + ImGui::Text("Mob Stats :"); + ImGui::Text("\tMax health : %i", m_Mob->getStats()->getMaxLife()); + ImGui::Text("\tSpeed : %.1f", m_Mob->getStats()->getMovementSpeed()); + ImGui::Text("\tDamage : %.1f", m_Mob->getStats()->getDamage()); + ImGui::Text("\tMoney cost : %i", m_Mob->getStats()->getMoneyCost()); + ImGui::Text("\tEXP cost : %i", m_Mob->getStats()->getExpCost()); + ImGui::Text("\tEXP reward : %i", m_Mob->getStats()->getExpReward()); ImGui::EndTooltip(); }