diff --git a/Source/UI/Layout/SnapObject.cpp b/Source/UI/Layout/SnapObject.cpp index 4d176458..d1616f40 100644 --- a/Source/UI/Layout/SnapObject.cpp +++ b/Source/UI/Layout/SnapObject.cpp @@ -107,6 +107,12 @@ bool SnapObject::Connected(SnapObject* target) { return false; } +// OFFSET: 0x007E2B00 +// FUNCTION: fn_09707 +int SnapObject::GetHeight() const { + return this->window->geometry.height; +} + // OFFSET: 0x007E2B10 // FUNCTION: fn_09708 void SnapObject::AccumulateHeight(int& height, int side) const { diff --git a/Source/UI/Layout/SnapObject.h b/Source/UI/Layout/SnapObject.h index 96a9164b..7cbbbf19 100644 --- a/Source/UI/Layout/SnapObject.h +++ b/Source/UI/Layout/SnapObject.h @@ -13,6 +13,7 @@ public: void Remove(SnapObject* object); bool Contains(SnapObject* target); bool Connected(SnapObject* target); + int GetHeight() const; void AccumulateHeight(int& height, int side) const; /* 0004 */ UIWindow* window;