mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
23 lines
659 B
C++
23 lines
659 B
C++
#include <Services/DebugService.h>
|
|
|
|
#include <Forms/ActorValueInfo.h>
|
|
|
|
#include <imgui.h>
|
|
|
|
void DebugService::DrawActorValuesView()
|
|
{
|
|
Actor* pActor = Cast<Actor>(TESForm::GetById(m_formId));
|
|
if (!pActor)
|
|
return;
|
|
|
|
ImGui::Begin("Actor values");
|
|
|
|
// for (int i = 0; i < ActorValueInfo::kActorValueCount; i++)
|
|
{
|
|
ActorValueOwner& actorValueOwner = pActor->actorValueOwner;
|
|
float health[3]{actorValueOwner.GetValue(24), actorValueOwner.GetBaseValue(24), actorValueOwner.GetPermanentValue(24)};
|
|
ImGui::InputFloat3("Health (val/base/perm)", health, "%.3f", ImGuiInputTextFlags_ReadOnly);
|
|
}
|
|
|
|
ImGui::End();
|
|
}
|