-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Selectable entity for component view debug, hudmenuutils.
- Loading branch information
Showing
15 changed files
with
126 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
#include <Games/Skyrim/Interface/Menus/HUDMenuUtils.h> | ||
#include <Games/Skyrim/NetImmerse/NiCamera.h> | ||
|
||
namespace HUDMenuUtils | ||
{ | ||
static float (*CameraWorldToCam)[4][4] = nullptr; | ||
static const NiRect<float>* CameraPort = nullptr; | ||
|
||
bool WorldPtToScreenPt3(const NiPoint3& arWorldPt, NiPoint3& arScreenPt) | ||
{ | ||
return NiCamera::WorldPtToScreenPt3(reinterpret_cast<float*>(CameraWorldToCam), CameraPort, &arWorldPt, | ||
&arScreenPt.x, &arScreenPt.y, &arScreenPt.z, 1e-5f); | ||
} | ||
} // namespace HUDMenuUtils | ||
|
||
static TiltedPhoques::Initializer s_Init([]() { | ||
POINTER_FALLOUT4(float[4][4], s_matrix, 0x145A66AA0 - 0x140000000); | ||
POINTER_FALLOUT4(NiRect<float>, s_port, 0x145A66B30 - 0x140000000); | ||
|
||
POINTER_SKYRIMSE(float[4][4], s_matrix, 0x142FE75F0 - 0x140000000); | ||
POINTER_SKYRIMSE(NiRect<float>, s_port, 0x142FE8B98 - 0x140000000); | ||
|
||
HUDMenuUtils::CameraWorldToCam = s_matrix.Get(); | ||
HUDMenuUtils::CameraPort = s_port.Get(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
|
||
namespace HUDMenuUtils | ||
{ | ||
bool WorldPtToScreenPt3(const NiPoint3& arWorldPt, NiPoint3& arScreenPt); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.