F4MP/tiltedcode/Code/client/Services/Debug/Views/CalendarDebugView.cpp
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

33 lines
989 B
C++

#include <Services/DebugService.h>
#include <imgui.h>
#include <inttypes.h>
#include <TimeManager.h>
void DebugService::DrawCalendarView()
{
ImGui::Begin("Calendar");
auto* pGameTime = TimeData::Get();
auto year = pGameTime->GameYear->f;
ImGui::InputFloat("Year", &year, 0, 0, "%.3f", ImGuiInputTextFlags_ReadOnly);
auto month = pGameTime->GameMonth->f;
ImGui::InputFloat("Month", &month, 0, 0, "%.3f", ImGuiInputTextFlags_ReadOnly);
auto day = pGameTime->GameDay->f;
ImGui::InputFloat("Day", &day, 0, 0, "%.3f", ImGuiInputTextFlags_ReadOnly);
auto hour = pGameTime->GameHour->f;
ImGui::InputFloat("Hour", &hour, 0, 0, "%.3f", ImGuiInputTextFlags_ReadOnly);
auto passed = pGameTime->GameDaysPassed->f;
ImGui::InputFloat("Passed", &passed, 0, 0, "%.3f", ImGuiInputTextFlags_ReadOnly);
auto scale = pGameTime->TimeScale->f;
ImGui::InputFloat("Scale", &scale, 0, 0, "%.3f", ImGuiInputTextFlags_ReadOnly);
ImGui::End();
}