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
+6
View File
@@ -84,6 +84,11 @@ public:
lua_pushnumber(L, p->GetNumFrames());
return 1;
}
static int Reload(T* p, lua_State* L)
{
p->Reload();
return 0;
}
LunaRageTexture()
{
@@ -92,6 +97,7 @@ public:
ADD_METHOD( rate );
ADD_METHOD( GetTextureCoordRect );
ADD_METHOD( GetNumFrames );
ADD_METHOD( Reload );
}
};