bind UnloadTexture
This commit is contained in:
@@ -963,8 +963,15 @@ class LunaSprite: public Luna<Sprite>
|
|||||||
public:
|
public:
|
||||||
static int Load( T* p, lua_State *L )
|
static int Load( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
RageTextureID ID( SArg(1) );
|
if( lua_isnil(L, 1) )
|
||||||
p->Load( ID );
|
{
|
||||||
|
p->UnloadTexture();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
RageTextureID ID( SArg(1) );
|
||||||
|
p->Load( ID );
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
static int LoadBackground( T* p, lua_State *L )
|
static int LoadBackground( T* p, lua_State *L )
|
||||||
|
|||||||
Reference in New Issue
Block a user