Quantcast
Download
(8 Kb)
Download
Updated: 07-22-16 01:56 AM
Compatibility:
Legion (7.0.3)
Updated:07-22-16 01:56 AM
Created:03-21-16 06:00 AM
Downloads:506
Favorites:1
MD5:

LibUtilities-1.0

Version: 7.0-release2
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:
[email protected]@
Libs\LibUtilities-1.0\lib.xml
[email protected]@
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)


Archived Files (7)
File Name
Version
Size
Author
Date
7.0-release1
8kB
myrroddin
07-19-16 10:49 PM
6.2-release3
8kB
myrroddin
06-18-16 02:41 PM
6.2-release2
7kB
myrroddin
06-12-16 12:49 AM
6.2-release1
7kB
myrroddin
05-01-16 03:29 PM
6.2-beta3
7kB
myrroddin
04-03-16 08:34 PM
6.2-beta2
7kB
myrroddin
03-27-16 06:29 AM
6.2-beta1
7kB
myrroddin
03-21-16 06:00 AM


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



Category Jump: