Download
(8Kb)
Download
Updated: 04-15-18 10:00 PM
Compatibility:
Tomb of Sargeras (7.2.0)
Updated:04-15-18 10:00 PM
Created:03-21-16 06:00 AM
Downloads:2,252
Favorites:1
MD5:
Categories:Libraries, Graphic UI Mods, Utility Mods

LibUtilities-1.0

Version: 7.3-release3
by: myrroddin [More]

LibUtilities-1.0

A collection of useful methods to help with pixel perfection, parsing item strings, 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

Code:
svn://svn.wowace.com/wow/libutilities-1-0/mainline/trunk
.toc

Code:
#@no-lib-strip@
Libs\LibUtilities-1.0\lib.xml
#@end-no-lib-strip@
Core AddOn

Lua Code:
  1. local MyAddOn = LibStub("AceAddon-3.0"):NewAddon("MyAddOn", "LibUtilities-1.0")
  2. -- OR
  3. local MyAddOn, privateTable = ...
  4. LibStub("LibUtilities-1.0").Embed(privateTable)
  5.  
  6. function MyAddOn:Enable()
  7.     -- probably not the best place for this call, but this is an example
  8.     -- notice it is not utilities:VisualData()
  9.     local uiScale, resolutionX, resolutionY = MyAddOn:VisualData()
  10. 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
  1. SetCVar("uiScale", tostring(self:PixelPerfect(1)))
  2. SetCVar("useUiScale", "1") Note, yes, 1, or it won't work
  3. If the third return of VisualData() resolutionY is >=1200 you should also scale UIParent, as Warcraft's UI scale will not go lower than 0.64

r18 | myrroddin | 2016-07-21 17:22:19 +0000 (Thu, 21 Jul 2016) | 1 line
Changed paths:
M /trunk/LibUtilities-1.0/LibUtilities-1.0.lua
M /trunk/LibUtilities-1.0.toc

- better pattern matching for DecodeItemLink
------------------------------------------------------------------------

r17 | myrroddin | 2016-07-19 17:44:21 +0000 (Tue, 19 Jul 2016) | 1 line
Changed paths:
A /tags/7.0-release1 (from /trunk:16)

Tagging as 7.0-release1
------------------------------------------------------------------------
r16 | myrroddin | 2016-07-11 02:49:09 +0000 (Mon, 11 Jul 2016) | 1 line
Changed paths:
M /trunk/LibUtilities-1.0.toc

- ToC bump for Legion
------------------------------------------------------------------------
r15 | myrroddin | 2016-07-11 02:40:36 +0000 (Mon, 11 Jul 2016) | 3 lines
Changed paths:
M /trunk/.pkgmeta
M /trunk/LibUtilities-1.0/LibUtilities-1.0.lua

- Load LibStub properly
- Test fixes for DecodeItemLink API
- Breaking changes to said API

-- 6.2-release3
- hopefully better SVN keyword stuff

-- 6.2-release2
- Added Round and Title Case functions

-- 6.2-beta2
- Fix Notes line in ToC for enUS

-- 6.2-beta3
- Bring in latest localizations

-- 6.2-release1
- .docmeta is working for API page
Optional Files (0)


There have been no comments posted to this file.
Be the first to add one.



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.