#include "client/render/gui/LifeProgress.h"

#include "client/render/gui/imgui/imgui.h"

namespace td {
namespace gui {

void RenderLifeProgress(float progress) {
	ImGui::PushStyleColor(ImGuiCol_PlotHistogram, { 1 - progress, progress, 0, 1 });
	ImGui::ProgressBar(progress, { 100, 25 }, "");
	ImGui::PopStyleColor();
}

} // namespace gui
} // namespace td
