mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 21:05:07 +00:00
Animated Texture Support for Custom GUI, Custom Effects, Script Items, Abilities
This commit is contained in:
1 parent
ae98d12faf
commit
e504fc4b4a
3 files changed
+85
No files matched your search
@@ -81,4 +81,35 @@ public interface ITexturedRect extends ICustomGuiComponent {
|
||||
* @return this textured rectangle instance.
|
||||
*/
|
||||
ITexturedRect setTextureOffset(int textureX, int textureY);
|
||||
|
||||
/**
|
||||
* Returns whether this textured rect has animation enabled.
|
||||
*
|
||||
* @return true if animated.
|
||||
*/
|
||||
boolean isAnimated();
|
||||
|
||||
/**
|
||||
* Returns the number of animation frames.
|
||||
*
|
||||
* @return the frame count.
|
||||
*/
|
||||
int getFrameCount();
|
||||
|
||||
/**
|
||||
* Returns the ticks per animation frame.
|
||||
*
|
||||
* @return the frame time in ticks.
|
||||
*/
|
||||
int getFrameTime();
|
||||
|
||||
/**
|
||||
* Enables animation on this textured rect using a vertical sprite strip.
|
||||
* The texture PNG should contain frames stacked vertically.
|
||||
*
|
||||
* @param frameCount number of frames in the strip.
|
||||
* @param frametime ticks per frame (1 tick = 50ms).
|
||||
* @return this textured rectangle instance.
|
||||
*/
|
||||
ITexturedRect setAnimation(int frameCount, int frametime);
|
||||
}
|
||||
Reference in new issue
Block a user