From b7cd4e0d6c34c080169d2a80791f37f4ed92f9a2 Mon Sep 17 00:00:00 2001 From: 0KepOnline <78259495+0KepOnline@users.noreply.github.com> Date: Tue, 11 Aug 2026 13:08:02 +0300 Subject: [PATCH] Add `UI::ScrollFrameVertical::Update` static method --- Spore ModAPI/SourceCode/DLL/AddressesUI.cpp | 1 + Spore ModAPI/SourceCode/UI/ScrollFrame.cpp | 4 ++++ Spore ModAPI/Spore/UI/ScrollFrameVertical.h | 3 +++ 3 files changed, 8 insertions(+) diff --git a/Spore ModAPI/SourceCode/DLL/AddressesUI.cpp b/Spore ModAPI/SourceCode/DLL/AddressesUI.cpp index c8611114..79689206 100644 --- a/Spore ModAPI/SourceCode/DLL/AddressesUI.cpp +++ b/Spore ModAPI/SourceCode/DLL/AddressesUI.cpp @@ -39,6 +39,7 @@ namespace UI namespace Addresses(ScrollFrameVertical) { DefineAddress(Create, SelectAddress(0x807C40, 0x8076F0)); + DefineAddress(Update, SelectAddress(0x7E04D0, 0x807780)); } namespace Addresses(cSPUITextZoom) diff --git a/Spore ModAPI/SourceCode/UI/ScrollFrame.cpp b/Spore ModAPI/SourceCode/UI/ScrollFrame.cpp index e02def17..086cfa62 100644 --- a/Spore ModAPI/SourceCode/UI/ScrollFrame.cpp +++ b/Spore ModAPI/SourceCode/UI/ScrollFrame.cpp @@ -6,5 +6,9 @@ namespace UI auto_STATIC_METHOD(ScrollFrameVertical, UTFWin::IWindow*, Create, Args(const char16_t* pLayoutName, IWindowPtr& dstContent, bool arg_8), Args(pLayoutName, dstContent, arg_8)); + + auto_STATIC_METHOD(ScrollFrameVertical, bool, Update, + Args(UTFWin::IWindow* pScrollFrameVertical, bool arg_4), + Args(pScrollFrameVertical, arg_4)); } #endif diff --git a/Spore ModAPI/Spore/UI/ScrollFrameVertical.h b/Spore ModAPI/Spore/UI/ScrollFrameVertical.h index abd53177..935b8211 100644 --- a/Spore ModAPI/Spore/UI/ScrollFrameVertical.h +++ b/Spore ModAPI/Spore/UI/ScrollFrameVertical.h @@ -15,10 +15,13 @@ namespace UI #endif static UTFWin::IWindow* Create(const char16_t* pLayoutName, IWindowPtr& dstContent, bool = true); + static bool Update(UTFWin::IWindow* pScrollFrameVertical, bool = false); + }; namespace Addresses(ScrollFrameVertical) { DeclareAddress(Create); + DeclareAddress(Update); } } \ No newline at end of file