rodecomp/Source/UI/Window/UIViewCameraInfoWnd.cpp
ragnarok-clanker 0029665586 Maintenance: Stage 0 resubmit (identical to #10090; that and #10084 failed only on Source/Client/Session.cpp with an empty log, consi
Batch #10096 by ragnarok-clanker: forced by an admin (72 lower score(s), 364 changed function(s)); checked with 394 compiled unit(s), including every includer of Source/UI/Window/UIWindow.h.
2026-11-02 16:03:53 +00:00

52 lines
1.6 KiB
C++

#include "UI/Window/UIViewCameraInfoWnd.h"
#include "Client/Mode/CGameMode.h"
#include "Client/Mode/ModeMgr.h"
#include "Contents/Camera/Camera.h"
#include "Contents/World/World.h"
#include "UI/Buttons/UIButton.h"
#include "Utility/Text/FormatString.h"
#include <string>
// OFFSET: 0x00A78B00
// FUNCTION: fn_16892
UIViewCameraInfoWnd::UIViewCameraInfoWnd(UIWindowContext& windows, UIFrameContext& frames) : UIFrameWnd(windows, frames, 0) {
}
// OFFSET: 0x00A78C20
// FUNCTION: fn_16894
bool UIViewCameraInfoWnd::Slot08() {
return true;
}
// OFFSET: 0x00A78C30
// FUNCTION: fn_16895
void UIViewCameraInfoWnd::Slot15(int, int) {
}
// OFFSET: 0x00A78C40
// FUNCTION: fn_16896
void UIViewCameraInfoWnd::Paint() {
this->ClearSurface(0xFFFF00FF);
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
if (!mode || !mode->scene || !mode->scene->player) {
return;
}
auto& controls = *this->m_controls;
this->DrawTextAt(10, 10,
FormatOwnedString("range : %4.3f", mode->camera->camera.distance).c_str(), 0, 0, 12, 0xFF, 1, 0);
this->DrawTextAt(10, 25,
FormatOwnedString("rotation : %4.3f", mode->camera->camera.yaw).c_str(), 0, 0, 12, 0xFF, 1, 0);
this->DrawTextAt(10, 40,
FormatOwnedString("latitude : %4.3f", mode->camera->camera.pitch).c_str(), 0, 0, 12, 0xFF, 1, 0);
}
// OFFSET: 0x00A78DE0
// FUNCTION: fn_16897
int UIViewCameraInfoWnd::SendMsg(
UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4
) {
return UIWindow::SendMsg(sender, message, argument1, argument2, argument3, argument4);
}