WoW LibUtilities-1.0 addon Dragonflight/Wrath of the Lich King Classic 2024
logo
wow addon LibUtilities-1.0

LibUtilities-1.0

Game Version: 7.3.5
Total Downloads: 2,080
Updated: Apr 16, 2018
Created: Mar 18, 2016
download LibUtilities-1.0Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
7.3-release3 release 8.00 KB Apr 16, 2018 7.3.5 322 download LibUtilities-1.0 7.3-release3 releaseDownload
7.3-release2 release 7.46 KB Apr 16, 2018 7.2.5 15 download LibUtilities-1.0 7.3-release2 releaseDownload
7.3-release1 release 7.46 KB Apr 16, 2018 7.2.5 9 download LibUtilities-1.0 7.3-release1 releaseDownload
7.2-release1 release 7.61 KB Jun 4, 2017 7.2.0 279 download LibUtilities-1.0 7.2-release1 releaseDownload
7.1-release1 release 7.92 KB Oct 26, 2016 7.1.0 350 download LibUtilities-1.0 7.1-release1 releaseDownload
7.0-release2 release 8.05 KB Jul 22, 2016 7.0.3 248 download LibUtilities-1.0 7.0-release2 releaseDownload
7.0-release1 release 8.04 KB Jul 19, 2016 7.0.3 119 download LibUtilities-1.0 7.0-release1 releaseDownload
6.2-release3 release 7.68 KB Jun 18, 2016 6.2.4 139 download LibUtilities-1.0 6.2-release3 releaseDownload
6.2-release2 release 7.44 KB Jun 12, 2016 6.2.4 84 download LibUtilities-1.0 6.2-release2 releaseDownload
6.2-release1 release 7.06 KB May 1, 2016 6.2.4 124 download LibUtilities-1.0 6.2-release1 releaseDownload
6.2-beta3 beta 7.42 KB Apr 4, 2016 6.2.4 86 download LibUtilities-1.0 6.2-beta3 betaDownload
6.2-beta2 beta 7.32 KB Mar 27, 2016 6.2.4 44 download LibUtilities-1.0 6.2-beta2 betaDownload
6.2-beta1 beta 7.30 KB Mar 21, 2016 6.2.3 61 download LibUtilities-1.0 6.2-beta1 betaDownload
r22-alpha alpha 7.33 KB Jun 4, 2017 7.2.0 27 download LibUtilities-1.0 r22-alpha alphaDownload
r20 alpha 7.83 KB Oct 25, 2016 7.1.0 23 download LibUtilities-1.0 r20 alphaDownload
r18 alpha 7.97 KB Jul 21, 2016 7.0.3 20 download LibUtilities-1.0 r18 alphaDownload
r16 alpha 8.03 KB Jul 11, 2016 7.0.3 21 download LibUtilities-1.0 r16 alphaDownload
r15 alpha 8.00 KB Jul 11, 2016 6.2.4 18 download LibUtilities-1.0 r15 alphaDownload
r13 alpha 7.60 KB Jun 18, 2016 6.2.4 14 download LibUtilities-1.0 r13 alphaDownload
r11 alpha 7.37 KB Jun 12, 2016 6.2.4 11 download LibUtilities-1.0 r11 alphaDownload
r9 alpha 7.36 KB Apr 4, 2016 6.2.4 23 download LibUtilities-1.0 r9 alphaDownload
r6 alpha 7.27 KB Mar 27, 2016 6.2.4 8 download LibUtilities-1.0 r6 alphaDownload
r4 alpha 7.24 KB Mar 21, 2016 6.2.3 8 download LibUtilities-1.0 r4 alphaDownload
r3 alpha 7.43 KB Mar 20, 2016 6.2.3 11 download LibUtilities-1.0 r3 alphaDownload
r2 alpha 7.22 KB Mar 18, 2016 6.2.3 16 download LibUtilities-1.0 r2 alphaDownload

Description

Share this:

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

  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 .64.

Comments

Add a comment