Skip to content

Commit

Permalink
eh
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Jan 17, 2025
1 parent b430ee2 commit d32b1cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Binary file modified Dependencies/GWCA/bin/gwca.dll
Binary file not shown.
16 changes: 10 additions & 6 deletions Dependencies/GWCA/include/GWCA/Managers/UIMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -1057,12 +1057,16 @@ namespace GW {
GWCA_API Frame* GetRootFrame();

GWCA_API Frame* GetChildFrame(Frame* parent, uint32_t child_offset);
template<typename... Offsets>
requires (std::is_integral_v<Offsets> && ...)
Frame* GetChildFrame(Frame* parent, Offsets... offsets) {
Frame* result = parent;
((result = result ? GetChildFrame(result, offsets) : nullptr), ...);
return result;
template<typename First, typename... Rest>
requires (std::integral<First> && (std::integral<Rest> && ...))
Frame* GetChildFrame(Frame* parent, First first, Rest... rest) {
Frame* intermediate = GetChildFrame(parent, static_cast<uint32_t>(first));
if constexpr (sizeof...(rest) > 0) {
return GetChildFrame(intermediate, rest...);
}
else {
return intermediate;
}
}

GWCA_API Frame* GetParentFrame(Frame* frame);
Expand Down

0 comments on commit d32b1cc

Please sign in to comment.