feat(ui): implement CSimpleFrame_GetAttribute script method

This commit is contained in:
VDm 2025-08-11 00:56:29 +04:00
parent 88f2cb7e5f
commit 19feaf57d3
3 changed files with 75 additions and 17 deletions

View file

@ -19,7 +19,7 @@ struct lua_State;
class FRAMEATTR : public TSHashObject<FRAMEATTR, HASHKEY_STRI> {
public:
int32_t luaRef;
int32_t luaRef = -1;
};
class CSimpleFrame : public CScriptRegion {
@ -165,6 +165,7 @@ class CSimpleFrame : public CScriptRegion {
void Show();
int32_t TestHitRect(const C2Vector& pt);
void UnregisterForEvents(int32_t a2);
bool GetAttribute(const char* name, int32_t& luaRef);
};
#endif