feat(ui): implement CSimpleFrame_SetAttribute

This commit is contained in:
VDm 2025-08-11 01:32:21 +04:00
parent 19feaf57d3
commit 28e931928a
3 changed files with 56 additions and 1 deletions

View file

@ -153,6 +153,7 @@ class CSimpleFrame : public CScriptRegion {
void RunOnShowScript();
void RunOnSizeChangedScript(float width, float height);
void RunOnUpdateScript(float elapsedSec);
void RunOnAttributeChangedScript(const char* name, int32_t luaRef);
void SetBackdrop(CBackdropGenerator* backdrop);
void SetBeingScrolled(int32_t a2, int32_t a3);
void SetFrameAlpha(uint8_t alpha);
@ -166,6 +167,8 @@ class CSimpleFrame : public CScriptRegion {
int32_t TestHitRect(const C2Vector& pt);
void UnregisterForEvents(int32_t a2);
bool GetAttribute(const char* name, int32_t& luaRef);
void SetAttribute(const char* name, int32_t luaRef);
bool AttributeChangesAllowed() const;
};
#endif