-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from psiberx/master
Decoded DeferredDataBuffer and widget classes
- Loading branch information
Showing
15 changed files
with
316 additions
and
19 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
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
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,31 @@ | ||
#pragma once | ||
|
||
#include <RED4ext/Common.hpp> | ||
#include <RED4ext/JobQueue.hpp> | ||
#include <RED4ext/Scripting/Natives/Generated/ink/FullScreenLayer.hpp> | ||
|
||
namespace RED4ext::ink | ||
{ | ||
struct HudWidgetSpawnEntry; | ||
struct HudEntriesResource; | ||
struct HUDLayerDefinition; | ||
|
||
struct __declspec(align(0x10)) HUDLayer : ink::FullScreenLayer | ||
{ | ||
static constexpr const char* NAME = "inkHUDLayer"; | ||
static constexpr const char* ALIAS = NAME; | ||
|
||
DynArray<HudWidgetSpawnEntry> entries; // 150 | ||
uint64_t sceneTier; // 160 | ||
uint32_t gameContext; // 168 | ||
Ref<HudEntriesResource> resource; // 170 | ||
HUDLayerDefinition* definition; // 188 | ||
JobHandle spawningJob; // 190 | ||
SharedMutex spawningLock; // 198 | ||
uint8_t unk199[0x200 - 0x199]; // 199 | ||
}; | ||
RED4EXT_ASSERT_SIZE(HUDLayer, 0x200); | ||
RED4EXT_ASSERT_OFFSET(HUDLayer, entries, 0x150); | ||
RED4EXT_ASSERT_OFFSET(HUDLayer, definition, 0x188); | ||
RED4EXT_ASSERT_OFFSET(HUDLayer, spawnLock, 0x198); | ||
} // namespace RED4ext::ink |
70 changes: 70 additions & 0 deletions
70
include/RED4ext/Scripting/Natives/inkHudWidgetSpawnEntry.hpp
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,70 @@ | ||
#pragma once | ||
|
||
#include <RED4ext/CName.hpp> | ||
#include <RED4ext/Common.hpp> | ||
#include <RED4ext/NativeTypes.hpp> | ||
#include <RED4ext/Scripting/Natives/Generated/Vector2.hpp> | ||
#include <RED4ext/Scripting/Natives/Generated/game/ui/Context.hpp> | ||
#include <RED4ext/Scripting/Natives/Generated/ink/EAnchor.hpp> | ||
#include <RED4ext/Scripting/Natives/Generated/ink/Margin.hpp> | ||
#include <RED4ext/Scripting/Natives/Generated/ink/SpawnMode.hpp> | ||
#include <RED4ext/Scripting/Natives/Generated/ink/WidgetSlotAttachmentParams.hpp> | ||
#include <RED4ext/Scripting/Natives/Generated/world/ui/ContextVisibility.hpp> | ||
|
||
namespace RED4ext | ||
{ | ||
struct DynamicTexture; | ||
|
||
namespace ink | ||
{ | ||
struct ImageWidget; | ||
struct IWidgetController; | ||
struct Widget; | ||
struct WidgetLibraryResource; | ||
|
||
struct HudWidgetSpawnEntry | ||
{ | ||
static constexpr const char* NAME = "inkHudWidgetSpawnEntry"; | ||
static constexpr const char* ALIAS = NAME; | ||
|
||
CName hudEntryName; // 00 | ||
bool enabled; // 08 | ||
uint8_t unk09[0x10 - 0x9]; // 09 | ||
world::ui::ContextVisibility contextVisibility; // 10 | ||
game::ui::Context gameContextVisibility; // 18 | ||
uint8_t unk1C[0x20 - 0x1C]; // 1C | ||
ink::SpawnMode spawnMode; // 20 | ||
uint8_t unk24[0x28 - 0x24]; // 24 | ||
Ref<ink::WidgetLibraryResource> widgetResource; // 28 | ||
ink::EAnchor anchorPlace; // 40 | ||
uint8_t unk41[0x44 - 0x41]; // 41 | ||
Vector2 anchorPoint; // 44 | ||
ink::Margin margins; // 4C | ||
bool attachToSlot; // 5C | ||
uint8_t unk5D[0x60 - 0x5D]; // 5D | ||
ink::WidgetSlotAttachmentParams slotParams; // 60 | ||
bool useSeparateWindow; // A0 | ||
bool ignoreHudSafezones; // A1 | ||
bool ignoreHudScaleOverride; // A2 | ||
uint8_t unkA3[0xA4 - 0xA3]; // A3 | ||
float hudScalingInterpolationValue; // A4 | ||
ink::Margin hudScalingMarginCorrection; // A8 | ||
Handle<DynamicTexture> slotTexture; // B8 | ||
Handle<VirtualWindow> window; // C8 | ||
Handle<ImageWidget> slotWidget; // D8 | ||
uint8_t unkE8[0xF8 - 0xE8]; // E8 | ||
Handle<Widget> rootWidget; // F8 | ||
Handle<IWidgetController> gameController; // 108 | ||
uint8_t unk110[0x127 - 0x118]; // 118 | ||
bool affectedByGlitchEffect; // 127 | ||
bool affectedByBlackwallEffect; // 128 | ||
bool spawnBeforeSlots; // 129 | ||
uint8_t unk12A[0x130 - 0x12A]; // 12A | ||
}; | ||
RED4EXT_ASSERT_SIZE(HudWidgetSpawnEntry, 0x130); | ||
RED4EXT_ASSERT_OFFSET(HudWidgetSpawnEntry, window, 0xC8); | ||
RED4EXT_ASSERT_OFFSET(HudWidgetSpawnEntry, rootWidget, 0xF8); | ||
RED4EXT_ASSERT_OFFSET(HudWidgetSpawnEntry, gameController, 0x108); | ||
RED4EXT_ASSERT_OFFSET(HudWidgetSpawnEntry, affectedByGlitchEffect, 0x127); | ||
} // namespace ink | ||
} // namespace RED4ext |
Oops, something went wrong.