- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
5,105 Maps
-
Popular Downloads
- Top World of Warcraft Addons
- Top Minecraft Server Mods
- Top Rift Addons
- Top Skyrim Mods
- Top World of Tanks WoT Mods
- Top Starcraft II Maps
- Top Terraria Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Videos
- Forums
LibFlash
- 0 Likes
- World of Warcraft
- 21 Monthly Downloads
- Supports: 4.2
- 1,820 Total Downloads
- Updated 7/8/2011 12:03:05 AM
- Created 5/20/2010 9:02:19 AM
- 3 Favorites
- Project Site
- Comments
- Release Type: Beta
- License: GNU General Public License version 3 (GPLv3)
- Newest File: v1.10b
About LibFlash
LibFlash implements frame fading and flashing. This library's methods are replacements for WoW's UIFlash and UIFade functions. The reason for this library is that those functions cause taint.
All durations are in seconds format, so 0.3 is equal to 300 milliseconds.
Usage:
local LibFlash = LibStub("LIbFlash")
local frame = CreateFrame("Frame")
-- do things to the frame so it'll display
local background = LibFlash:New(frame)
background:FadeIn(.3, 0, 1)
Methods:
LibFlash:New(frame)
@argument frame The frame that will have its alpha manipulated.
@return A new LibFlash object.
Description: Create a new LibFlash object.
LibFlash:Del()
@return None
Description: Recycles a LibFlash object.
LibFlash:FadeIn(dur, start, finish, callback, data)
@argument dur Number - The fade's duration.
@argument start Number - The starting alpha value.
@argument end Number - The ending alpha value.
@argument callback Function - You can specify a function to be called when the fade in is finished.
@argument data Unknown - This will be passed to the callback function when it's called.
@return None
Description: Fade this object's target frame starting with 'start' alpha and ending with 'finish' alpha.
LibFlash:FadeOut(dur, start, finish, callback, data)
@argument dur Number - The fade's duration.
@argument start Number - The starting alpha value.
@argument end Number - The ending alpha value.
@argument callback Function - You can specify a function to be called when the fade in is finished.
@argument data Unknown - This will be passed to the callback function when it's called.
@return None
Description: Fade this object's target frame starting with 'start' alpha and ending with 'finish' alpha.
LibFlash:Flash(fadeInTime, fadeOutTime, flashDuration, showWhenDone, flashInHoldTime, flashOutHoldTime, shouldBlink, blinkRate, callback, data )
@argument fadeInTime Number - duration of the fade in effect.
@argument fadeOutTime Number - duration of the fade out effect.
@argument flashDuration Number - number of seconds to keep repeating the fade in / out cycle.
@argument showWhenDone Boolean - should the frame be visible at the end?
@argument flashInHoldTime Number - number of seconds to hold the fully hidden state.
@argument flashOutHoldTime Number - number of seconds to hold the fully visible state.
@argument shouldBlink Boolean - Should this alarm blink
@argument blinkRate Number - Rate at which the alarm will blink.
@argument callback Function - Will be called when the flash finishes.
@argument data Unknown - Data to be passed to the callback.
@return None
Description: Flash a frame in and then out.
------------------------------------------------------------------------
r47 | starlon | 2011-07-08 05:03:01 +0000 (Fri, 08 Jul 2011) | 1 line
Changed paths:
A /tags/v1.10b (from /trunk:46)
Tagging as v1.10b
------------------------------------------------------------------------
r46 | starlon | 2011-07-08 05:02:07 +0000 (Fri, 08 Jul 2011) | 2 lines
Changed paths:
M /trunk/LibFlash.lua
M /trunk/LibFlash.toc
Update toc.
------------------------------------------------------------------------
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| v1.10b | Beta | 4.2 | 544 | 7/8/2011 12:03:05 AM |
| 1.9b | Beta | 4.0.6 | 260 | 3/3/2011 6:46:16 PM |
| 1.8b | Beta | 3.3.5 | 403 | 7/27/2010 6:41:50 PM |
| 1.7b | Beta | 3.3.5 | 108 | 7/9/2010 10:08:39 PM |
| 1.6b | Beta | 3.3.5 | 109 | 7/8/2010 6:50:37 AM |
| 1.5b | Beta | 3.3.5 | 9 | 7/6/2010 3:57:46 AM |
| 1.4b | Beta | 3.3.5 | 5 | 7/5/2010 5:59:25 AM |
| 1.3b | Beta | 3.3.5 | 4 | 7/5/2010 5:52:45 AM |
| 1.2b | Beta | 3.3.5 | 12 | 7/3/2010 9:57:00 PM |
| 1.1b | Beta | 3.3.5 | 4 | 7/1/2010 2:22:09 AM |
| 0.2.4b | Beta | 3.3.5 | 10 | 5/27/2010 11:35:56 AM |
| 0.2.3b | Beta | 3.3.5 | 5 | 5/24/2010 6:27:37 AM |
| 0.2.2b | Beta | 3.3.5 | 4 | 5/24/2010 4:14:49 AM |
| 0.2.1b | Beta | 3.3.5 | 4 | 5/23/2010 4:40:26 PM |
| 0.2b | Beta | 3.3.5 | - | 5/23/2010 3:46:54 PM |
| 0.1.4b | Beta | 3.3.5 | - | 5/23/2010 2:53:04 PM |
| 0.1.3b | Beta | 3.3.5 | - | 5/21/2010 9:13:50 PM |
| 0.1.2b | Beta | 3.3.5 | 1 | 5/20/2010 9:43:30 PM |
| 0.1.1b | Beta | 3.3.5 | - | 5/20/2010 6:51:30 PM |
| 0.1b | Beta | 3.3.5 | 2 | 5/20/2010 9:37:21 AM |
Top Downloads
-
- Bagnon
- Bags & Inventory
- 380,324 Monthly Downloads
-
- Deadly Boss Mods
- Combat and Boss Encounters
- 302,560 Monthly Downloads
-
- Recount
- Combat
- 301,016 Monthly Downloads
-
- SpellFlash
- PvP, Buffs & Debuffs, Quests & Leveling, Action Bars, and Combat
- 282,737 Monthly Downloads
-
- GatherMate2_Data
- Achievements
- 210,508 Monthly Downloads
Comments