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