mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(ui): implement CSimpleFrame_GetAttribute script method
This commit is contained in:
parent
88f2cb7e5f
commit
19feaf57d3
3 changed files with 75 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue