-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
8 additions
and
45 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
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 |
---|---|---|
@@ -1,41 +1,19 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
#pragma pack(push, 1) | ||
namespace jc | ||
{ | ||
class CUIBase | ||
{ | ||
public: | ||
char _pad[0x140]; | ||
uint8_t m_state; | ||
char _pad2[0x7]; | ||
std::string m_name; | ||
uint32_t m_nameHash; | ||
}; | ||
|
||
class CUIManager | ||
{ | ||
public: | ||
static CUIManager& instance() | ||
{ | ||
return **(CUIManager**)0x142A630F8; | ||
} | ||
|
||
CUIBase* GetUI(uint32_t name_hash) | ||
{ | ||
auto it = std::find_if(m_uis.begin(), m_uis.end(), | ||
[name_hash](const CUIBase* ui) { return ui->m_nameHash == name_hash; }); | ||
return (it != m_uis.end()) ? (*it) : nullptr; | ||
return **(CUIManager**)0x142E2B700; | ||
} | ||
|
||
public: | ||
char _pad[0x29A]; | ||
bool m_enabled; | ||
bool m_debugTextEnabled; | ||
char _pad2[0xCC]; | ||
std::vector<CUIBase*> m_uis; | ||
char _pad[0x213]; | ||
bool m_active; | ||
}; | ||
}; // namespace jc | ||
#pragma pack(pop) |
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