- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
5,104 Addons
-
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
Library: Zasurus' Useful Functions (LibZasUsefulFuncs)
- 0 Likes
- World of Warcraft
- 38 Monthly Downloads
- Supports: 4.2
- 1,584 Total Downloads
- Updated 12/2/2011 4:04:00 PM
- Created 12/14/2010 5:50:25 PM
- 0 Favorites
- Project Site
- Release Type: Beta
- License: All Rights Reserved
- Newest File: V0.1-9 BETA
About Library: Zasurus' Useful Functions (LibZasUsefulFuncs)
This library is a few useful functions that most AddOns could use at one point or another. I use them in lots of my AddOns and to keep the newest version in all my AddOns I decided to make this library and if it exists it may as well get published for others to use! ;)
So far the functions that exist are:
function TableCount(tableToCount) -- Counts table members function TableMax(tableToGetMax) -- Pulls back the maximun number (index) for the table specified (Like TableCount() but works when all the table entrys are not in sequencial or contain none Numbers function TblLowCheck(TestTable, TestValue) -- Checks a table to see if the key is the "TestValue" in any case function CopyTable(src) -- Copys a table (instead of just pointing to it) function StrFirstUpper(str) -- Returns the string with the first letter in upper case and the rest in lower case function ReturnChatFrame(ChatFrameNumber) -- Given a number this returns the ChatFrame for that number. e.g. if 1 is given it will return ChatFrame1 function Round(Number, DecimalPlaces, Type) -- Round to # dicimal places and convert to number function GetAddonVersion(AddonName) -- Takes an addon's Name as a string (the toc file name) and returns the version and weather it's an ALPHA, BETA or RELEASE. It assumes the toc field "## Version: " is filled in and it's in the form "V1.0.1 BETA" or something like that. function SetRotation(Texture, Angle, bMirror, bInvertRotation) -- Rotates the given texture to the angle given. NOTE: Not BY the angel given but TO the angle given. Positive numbers move it Counter Clock Wise. So 90 will move a picture of a vertical line going from the center of the image to the top of the image point from the center to the left (3 o'clock)
Also when loaded "/rl" from the console reloads the UI...
I will update these function to make them more efficient and add functionality as and when I can. If you have surgestions then feel free to discuse it in the forum and then post a ticket.
2011-12-02 Zasurus <Zasurus>
[dce9427358d4] [V0.1-9 BETA]
* History.txt LibZasUsefulFuncs.lua
- Corrected version (hadn't released V0.1-9 yet so can use that!)
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| V0.1-9 BETA-nolib | Beta | 4.2 | 116 | 12/2/2011 4:04:00 PM |
| V0.1-9 BETA | Beta | 4.2 | 318 | 12/2/2011 4:04:00 PM |
| V0.1-8 BETA | Beta | 4.2 | 223 | 10/2/2011 2:29:41 PM |
| V0.1-8 BETA-nolib | Beta | 4.2 | 75 | 10/2/2011 2:29:40 PM |
| V0.1-7 BETA | Beta | 4.2 | 90 | 9/18/2011 4:39:00 PM |
| V0.1-7 BETA-nolib | Beta | 4.2 | 13 | 9/18/2011 4:38:59 PM |
| V0.1-6 BETA | Beta | 4.2 | 69 | 9/10/2011 6:22:06 PM |
| V0.1-6 BETA-nolib | Beta | 4.2 | - | 9/10/2011 6:22:05 PM |
| V0.1-5 BETA | Beta | 4.2 | 32 | 9/9/2011 1:50:49 PM |
| V0.1-5 BETA-nolib | Beta | 4.2 | - | 9/9/2011 1:50:48 PM |
| V0.1-4 BETA | Beta | 4.2 | 55 | 9/5/2011 4:48:17 PM |
| V0.1-4 BETA-nolib | Beta | 4.2 | - | 9/5/2011 4:48:16 PM |
| V0.1-3 BETA-nolib | Beta | 4.2 | - | 9/3/2011 5:02:59 AM |
| V0.1-3 BETA | Beta | 4.2 | - | 9/3/2011 5:02:59 AM |
| V0.1-2 BETA | Beta | 4.2 | 21 | 8/28/2011 6:18:18 PM |
| V0.1-2 BETA-nolib | Beta | 4.2 | - | 8/28/2011 6:18:17 PM |
| V0.1-1 Beta | Beta | 4.0.3a | 6 | 12/19/2010 8:42:12 PM |
| V0.1-1 Beta-nolib | Beta | 4.0.3a | 3 | 12/19/2010 8:42:11 PM |
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