From 560bbe278ac77c44ac2fd2be4d6114988fffbaaa Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 14 Feb 2007 03:10:37 +0000 Subject: [PATCH] bind SetCustomImageRect --- stepmania/src/Sprite.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index a43e4cbcfe..ce0785325e 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -992,6 +992,7 @@ public: /* Commands that go in the tweening queue: * Commands that take effect immediately (ignoring the tweening queue): */ static int customtexturerect( T* p, lua_State *L ) { p->SetCustomTextureRect( RectF(FArg(1),FArg(2),FArg(3),FArg(4)) ); return 0; } + static int SetCustomImageRect( T* p, lua_State *L ) { p->SetCustomImageRect( RectF(FArg(1),FArg(2),FArg(3),FArg(4)) ); return 0; } static int texcoordvelocity( T* p, lua_State *L ) { p->SetTexCoordVelocity( FArg(1),FArg(2) ); return 0; } static int scaletoclipped( T* p, lua_State *L ) { p->ScaleToClipped( FArg(1),FArg(2) ); return 0; } static int stretchtexcoords( T* p, lua_State *L ) { p->StretchTexCoords( FArg(1),FArg(2) ); return 0; } @@ -1021,6 +1022,7 @@ public: ADD_METHOD( LoadBanner ); ADD_METHOD( LoadBackground ); ADD_METHOD( customtexturerect ); + ADD_METHOD( SetCustomImageRect ); ADD_METHOD( texcoordvelocity ); ADD_METHOD( scaletoclipped ); ADD_METHOD( stretchtexcoords );