Moved GetTexturePath lua function from Sprite to RageTexture and renamed it to GetPath. Updated changelog.

This commit is contained in:
Kyzentun
2015-03-24 14:23:30 -06:00
parent b9551cc392
commit f4da2988d9
5 changed files with 26 additions and 6 deletions
+2
View File
@@ -114,6 +114,7 @@ public:
DEFINE_METHOD(GetTextureHeight, GetTextureHeight());
DEFINE_METHOD(GetImageWidth, GetImageWidth());
DEFINE_METHOD(GetImageHeight, GetImageHeight());
DEFINE_METHOD(GetPath, GetID().filename);
LunaRageTexture()
{
@@ -129,6 +130,7 @@ public:
ADD_METHOD(GetTextureHeight);
ADD_METHOD(GetImageWidth);
ADD_METHOD(GetImageHeight);
ADD_METHOD(GetPath);
}
};
-2
View File
@@ -1078,7 +1078,6 @@ public:
TEXTUREMAN->EnableOddDimensionWarning();
return 1;
}
DEFINE_METHOD(GetTexturePath, GetTexturePath());
/* Commands that go in the tweening queue:
* Commands that take effect immediately (ignoring the tweening queue): */
@@ -1225,7 +1224,6 @@ public:
ADD_METHOD( Load );
ADD_METHOD( LoadBanner );
ADD_METHOD( LoadBackground );
ADD_METHOD(GetTexturePath);
ADD_METHOD( customtexturerect );
ADD_METHOD( SetCustomImageRect );
ADD_METHOD( SetCustomPosCoords );