Added __screen__ special texture name. Added AMV:GetTexture, RageTexture:Reload, and Screen:SetNextScreenName lua functions.

This commit is contained in:
Kyzentun
2014-09-02 05:18:29 -06:00
parent aac32f81ad
commit 4f2b92a25a
10 changed files with 74 additions and 3 deletions
+14
View File
@@ -645,6 +645,19 @@ public:
p->SetTexture( Texture );
return 0;
}
static int GetTexture(T* p, lua_State *L)
{
RageTexture *texture = p->GetTexture();
if(texture != NULL)
{
texture->PushSelf(L);
}
else
{
lua_pushnil(L);
}
return 1;
}
LunaActorMultiVertex()
{
@@ -668,6 +681,7 @@ public:
// Copy from RageTexture
ADD_METHOD( SetTexture );
ADD_METHOD( GetTexture );
// Load from file path
ADD_METHOD( LoadTexture );
}