• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibEffects-1.0

 
Project Updated:
Files Updated: Mon, Jan 5 2009
Supports Game Version: 3.0.3
Category: Libraries
Tags:

[Edit Tags]

Project Manager: xocide
Additional Authors: No additional authors
Current Version: beta1
License: Public Domain
Development Site: CurseForge
Avg Daily DL (last 30 days): 0
Downloads Total: 655
Favorites: 0
Comments: 0
  • About LibEffects-1.0
  •  

LibEffects

LibEffects is a library that can add effects to your addon.

Features

  1. Screen Shake
  2. Screen Flash
  3. Play Sounds

Implementing

Use the following code to implement LibEffects-1.0:

local Effects = LibStub("LibEffects-1.0")

or you could also use it as a mix in by doing:

MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon", "LibEffects-1.0")

Flash()

To make the screen border flash use the following code:

Effects:Flash()

Shake()

To make the screen shake use the following code:

Effects:Shake()

AddSound(unique name, location)

AddSound() adds a sound to the sounds array, making it easy to play sounds later on. To add a sound, use the following code:

Effects:AddSound("DoorOpen",[[Sound\Doodad\PVP_Lordaeron_Door_Open.wav]])

Remember, the name must be unique.

PlaySound(unique name)

PlaySound() plays the sound with the name specified, to do so use this code:

Effects:PlaySound("DoorOpen")

UpdateSound(unique name, location)

UpdateSound() updates the sound file location, like so:

Effects:UpdateSound("DoorOpen",[[Sound\Doodad\PortcullisActive_Closed.wav]])
  • Downloads (1)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  LibEffects-1.0 beta1 Beta 3.0.3 655 1/5/2009
  • 1 page(s)
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Addon Packs Containing LibEffects-1.0

Most Downloads / Day

LibEffects-1.0 has not been added to any Addon Packs yet.

  • Similar Addons
  •  

Average downloads per day

  1. 487 Ace3 Libraries
  2. 437 Addon Control Panel Libraries, Development Tools...
  3. 268 Ace2 Libraries
  4. 240 LibBabble-Boss-3.0 Libraries
  5. 207 LibRock-1.0 Libraries