Mercurial > wow > hotcorners
comparison Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua @ 11:371e14cd2feb
- major fixes with icons not showing correctly.
| author | Tercio |
|---|---|
| date | Thu, 08 Dec 2016 13:01:40 -0200 |
| parents | fc346da3afd9 |
| children | 9ad7f3c634f1 |
comparison
equal
deleted
inserted
replaced
| 10:6572ed4edaae | 11:371e14cd2feb |
|---|---|
| 1 --[[ | 1 --[[ |
| 2 Name: DBIcon-1.0 | 2 Name: DBIcon-1.0 |
| 3 Revision: $Rev: 34 $ | 3 Revision: $Rev: 56 $ |
| 4 Author(s): Rabbit (rabbit.magtheridon@gmail.com) | 4 Author(s): Rabbit (rabbit.magtheridon@gmail.com) |
| 5 Description: Allows addons to register to recieve a lightweight minimap icon as an alternative to more heavy LDB displays. | 5 Description: Allows addons to register to recieve a lightweight minimap icon as an alternative to more heavy LDB displays. |
| 6 Dependencies: LibStub | 6 Dependencies: LibStub |
| 7 License: GPL v2 or later. | 7 License: GPL v2 or later. |
| 8 ]] | 8 ]] |
| 31 -- Disclaimer: Most of this code was ripped from Barrel but fixed, streamlined | 31 -- Disclaimer: Most of this code was ripped from Barrel but fixed, streamlined |
| 32 -- and cleaned up a lot so that it no longer sucks. | 32 -- and cleaned up a lot so that it no longer sucks. |
| 33 -- | 33 -- |
| 34 | 34 |
| 35 local DBICON10 = "LibDBIcon-1.0" | 35 local DBICON10 = "LibDBIcon-1.0" |
| 36 local DBICON10_MINOR = tonumber(("$Rev: 34 $"):match("(%d+)")) | 36 local DBICON10_MINOR = tonumber(("$Rev: 56 $"):match("(%d+)")) |
| 37 if not LibStub then error(DBICON10 .. " requires LibStub.") end | 37 if not LibStub then error(DBICON10 .. " requires LibStub.") end |
| 38 local ldb = LibStub("LibDataBroker-1.1", true) | 38 local ldb = LibStub("LibDataBroker-1.1", true) |
| 39 if not ldb then error(DBICON10 .. " requires LibDataBroker-1.1.") end | 39 if not ldb then error(DBICON10 .. " requires LibDataBroker-1.1.") end |
| 40 local lib = LibStub:NewLibrary(DBICON10, DBICON10_MINOR) | 40 local lib = LibStub:NewLibrary(DBICON10, DBICON10_MINOR) |
| 41 if not lib then return end | 41 if not lib then return end |
