FancyMenu

FancyMenu

103M Downloads

"Animated Texture Started Playing", "Animated Texture Finished Playing" listeners

Keksuccino opened this issue ยท 0 comments

commented
  • "Started Playing" triggers when an animated texture (GIF, APNG or FMA (FancyMenu Animation Format)) starts playing, which is also the case when it restarts because of looping

  • "Finished Playing" triggers when an animated texture finishes a cycle (reached the total end when not looping or right before restarting when looping)

  • Both listeners provide the following custom variables:

    • texture_source = This is the source of the texture (local path, web URL or MC resource location)
    • texture_source_type = LOCAL, WEB, RESOURCE_LOCATION
    • texture_will_restart = If the texture is looping and will restart after this cycle, this returns true, otherwise false

FancyMenu uses its own resource system and makes it easy to get the source and source type of resources, including textures.