Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
7.3-release3 release | 8.00 KB | Apr 16, 2018 | 7.3.5 | 322 | Download |
7.3-release2 release | 7.46 KB | Apr 16, 2018 | 7.2.5 | 15 | Download |
7.3-release1 release | 7.46 KB | Apr 16, 2018 | 7.2.5 | 9 | Download |
7.2-release1 release | 7.61 KB | Jun 4, 2017 | 7.2.0 | 279 | Download |
7.1-release1 release | 7.92 KB | Oct 26, 2016 | 7.1.0 | 350 | Download |
7.0-release2 release | 8.05 KB | Jul 22, 2016 | 7.0.3 | 248 | Download |
7.0-release1 release | 8.04 KB | Jul 19, 2016 | 7.0.3 | 119 | Download |
6.2-release3 release | 7.68 KB | Jun 18, 2016 | 6.2.4 | 139 | Download |
6.2-release2 release | 7.44 KB | Jun 12, 2016 | 6.2.4 | 84 | Download |
6.2-release1 release | 7.06 KB | May 1, 2016 | 6.2.4 | 124 | Download |
6.2-beta3 beta | 7.42 KB | Apr 4, 2016 | 6.2.4 | 86 | Download |
6.2-beta2 beta | 7.32 KB | Mar 27, 2016 | 6.2.4 | 44 | Download |
6.2-beta1 beta | 7.30 KB | Mar 21, 2016 | 6.2.3 | 61 | Download |
r22-alpha alpha | 7.33 KB | Jun 4, 2017 | 7.2.0 | 27 | Download |
r20 alpha | 7.83 KB | Oct 25, 2016 | 7.1.0 | 23 | Download |
r18 alpha | 7.97 KB | Jul 21, 2016 | 7.0.3 | 20 | Download |
r16 alpha | 8.03 KB | Jul 11, 2016 | 7.0.3 | 21 | Download |
r15 alpha | 8.00 KB | Jul 11, 2016 | 6.2.4 | 18 | Download |
r13 alpha | 7.60 KB | Jun 18, 2016 | 6.2.4 | 14 | Download |
r11 alpha | 7.37 KB | Jun 12, 2016 | 6.2.4 | 11 | Download |
r9 alpha | 7.36 KB | Apr 4, 2016 | 6.2.4 | 23 | Download |
r6 alpha | 7.27 KB | Mar 27, 2016 | 6.2.4 | 8 | Download |
r4 alpha | 7.24 KB | Mar 21, 2016 | 6.2.3 | 8 | Download |
r3 alpha | 7.43 KB | Mar 20, 2016 | 6.2.3 | 11 | Download |
r2 alpha | 7.22 KB | Mar 18, 2016 | 6.2.3 | 16 | Download |
Description
LibUtilities-1.0
A collection of useful methods to help with pixel perfection, parsing item links, and converting decimal numbers into hexidecimal.
Legion breaking changes
The API DecodeItemString has been replaced/renamed to DecodeItemLink, and supports quest, spell, item, talent, and enchant links. The return values of this API have been altered from prior versions.
List of methods
- PixelPerfect
- VisualData
- NumberToHex
- DecodeItemLink
- Round
- TitleCase
How to use
LibUtilities-1.0 is an embedded library, and thus gives its functions to any AddOn for direct control.
.pkgmeta
https://repos.wowace.com/wow/libutilities-1-0/trunk
.toc
#@no-lib-strip@ Libs\LibUtilities-1.0\lib.xml #@end-no-lib-strip@
Core AddOn
local MyAddOn = LibStub("AceAddon-3.0"):NewAddon("MyAddOn", "LibUtilities-1.0") -- OR local MyAddOn, privateTable = ... LibStub("LibUtilities-1.0"):Embed(privateTable) function MyAddOn:Enable() -- probably not the best place for this call, but this is an example -- notice it is not utilities:VisualData() local uiScale, resolutionX, resolutionY = MyAddOn:VisualData() end
API
The API page
Ticket Tracker
Found a bug or want to make a suggestion? This is the link you want.
Localization
There is only one phrase needing localization for the Table of Contents (.toc) file. Go here to translate please.
Tips
Getting the corrected scale for the UI
- SetCVar("uiScale", tostring(self:PixelPerfect(1)))
- SetCVar("useUiScale", "1") Note, yes, 1, or it won't work
- If the third return of VisualData() resolutionY is >=1200 you should also scale UIParent, as Warcraft's UI scale will not go lower than .64.
Add a comment