mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
feat: autoresize (extend/shrink) canvas element
This commit is contained in:
parent
b644a76904
commit
0d4838facf
7 changed files with 52 additions and 17 deletions
|
|
@ -380,7 +380,7 @@ static int p_get_region(UINode* node, lua::State* L) {
|
|||
|
||||
static int p_get_data(UINode* node, lua::State* L) {
|
||||
if (auto canvas = dynamic_cast<Canvas*>(node)) {
|
||||
return lua::newuserdata<lua::LuaCanvas>(L, canvas->texture(), canvas->data());
|
||||
return lua::newuserdata<lua::LuaCanvas>(L, canvas->getTexture(), canvas->getData());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue