Moved GetTexturePath lua function from Sprite to RageTexture and renamed it to GetPath. Updated changelog.
This commit is contained in:
@@ -4,6 +4,26 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes
|
||||
from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt.
|
||||
________________________________________________________________________________
|
||||
|
||||
2015/03/24
|
||||
----------
|
||||
* [Sprite/RageTexture] GetTexturePath moved to RageTexture and renamed to
|
||||
GetPath. [kyzentun]
|
||||
|
||||
2015/03/22
|
||||
----------
|
||||
* [Dev] Primary build method of all platforms changed to CMake. People
|
||||
building from source must install CMake (min 2.8.12) and read
|
||||
Build/README.md for building instructions. [wolfman2000]
|
||||
|
||||
2015/03/18
|
||||
----------
|
||||
* [OSX] Empty Stepmania directory created on desktop removed. [dguzek]
|
||||
|
||||
2015/03/17
|
||||
----------
|
||||
* [ActorFrameTexture] Example added to Themerdocs/Examples/Example_Actors/.
|
||||
Crash fixes for AFTs. [sigatrev]
|
||||
|
||||
2015/03/15
|
||||
----------
|
||||
* [Sprite] GetTexturePath added. [kyzentun]
|
||||
|
||||
+1
-1
@@ -1399,6 +1399,7 @@
|
||||
<Function name='GetTextureHeight'/>
|
||||
<Function name='GetImageWidth'/>
|
||||
<Function name='GetImageHeight'/>
|
||||
<Function name='GetPath'/>
|
||||
<Function name='GetTextureCoordRect'/>
|
||||
<Function name='loop'/>
|
||||
<Function name='position'/>
|
||||
@@ -1654,7 +1655,6 @@
|
||||
<Function name='GetNumStates'/>
|
||||
<Function name='GetState'/>
|
||||
<Function name='GetTexture'/>
|
||||
<Function name='GetTexturePath'/>
|
||||
<Function name='LinearFrames'/>
|
||||
<Function name='Load'/>
|
||||
<Function name='LoadBackground'/>
|
||||
|
||||
@@ -4097,6 +4097,9 @@ save yourself some time, copy this for undocumented things:
|
||||
<Function name='GetNumFrames' return='int' arguments=''>
|
||||
Returns the number of frames in this texture.
|
||||
</Function>
|
||||
<Function name='GetPath' return='string' arguments=''>
|
||||
Returns the path to the texture's file.
|
||||
</Function>
|
||||
<Function name='GetTextureCoordRect' return='{float}' arguments=''>
|
||||
Return the texture coordinate rectangle as <code>{left, top, right, bottom}</code>.
|
||||
</Function>
|
||||
@@ -4780,9 +4783,6 @@ save yourself some time, copy this for undocumented things:
|
||||
<Function name='GetTexture' return='RageTexture' arguments=''>
|
||||
Returns the Sprite's texture.
|
||||
</Function>
|
||||
<Function name='GetTexturePath' return='string' arguments=''>
|
||||
Returns the path to the Sprite's texture.
|
||||
</Function>
|
||||
<Function name='LinearFrames' theme='_fallback' return='table' arguments='int iNumFrames, float fSeconds'>
|
||||
[02 Sprite.lua] Returns a <code>Frames</code> table consisting of <code>iNumFrames</code> frames lasting for a total of <code>fSeconds</code> seconds. This function is not a member function and should be used as <code>Frames = Sprite.LinearFrames( 5, 2.6 )</code>.
|
||||
</Function>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user