2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 03:47:50 +00:00

Add Player Transform tools

This commit is contained in:
2021-07-11 17:58:16 -07:00
parent 96680d2660
commit e331c5d5c6
6 changed files with 94 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
#include "Runtime/ImGuiEntitySupport.hpp"
#include "Runtime/World/CActor.hpp"
#include "Runtime/World/CAi.hpp"
#include "Runtime/World/CAmbientAI.hpp"
@@ -178,7 +180,9 @@
} \
}
static bool ImGuiVector3fInput(const char* label, zeus::CVector3f& vec) {
namespace metaforce {
bool ImGuiVector3fInput(const char* label, zeus::CVector3f& vec) {
std::array<float, 3> arr{vec.x(), vec.y(), vec.z()};
if (ImGui::DragFloat3(label, arr.data(), 0.1f)) {
vec.assign(arr[0], arr[1], arr[2]);
@@ -221,7 +225,6 @@ void ImGuiAnimRes(const char* label, metaforce::CAnimRes& res) {
// TODO: More
}
namespace metaforce {
void CDamageVulnerability::ImGuiEditWindow(const char* title, bool& open) {
if (!open) {
return;