mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-12 09:19:50 +00:00
Fix wrongly adding shield song when loading a savegame. Also add obj_getTexture() function.
This commit is contained in:
parent
37654f4c8c
commit
84c49e5ce0
3 changed files with 11 additions and 1 deletions
|
@ -988,6 +988,14 @@ luaFunc(obj_setTexture)
|
|||
luaReturnNil();
|
||||
}
|
||||
|
||||
luaFunc(obj_getTexture)
|
||||
{
|
||||
RenderObject *r = robj(L);
|
||||
if (r && r->texture)
|
||||
luaReturnStr(r->texture->name.c_str());
|
||||
luaReturnStr("");
|
||||
}
|
||||
|
||||
luaFunc(obj_delete)
|
||||
{
|
||||
RenderObject *r = robj(L);
|
||||
|
@ -1490,6 +1498,7 @@ luaFunc(quad_setHeight)
|
|||
RO_FUNC(getter, prefix, internalOffset ) \
|
||||
RO_FUNC(getter, prefix, getInternalOffset) \
|
||||
RO_FUNC(getter, prefix, getPosition ) \
|
||||
RO_FUNC(getter, prefix, getTexture ) \
|
||||
RO_FUNC(getter, prefix, x ) \
|
||||
RO_FUNC(getter, prefix, y ) \
|
||||
RO_FUNC(getter, prefix, setBlendType ) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue