Added __screen__ special texture name. Added AMV:GetTexture, RageTexture:Reload, and Screen:SetNextScreenName lua functions.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user