Rev 99 → Rev 100
TipTop/libs/LibSharedMedia-3.0/LibSharedMedia-3.0.lua
1,6 → 1,6
--[[ |
Name: LibSharedMedia-3.0 |
Revision: $Revision: 89 $ |
Revision: $Revision: 91 $ |
Author: Elkano (elkano@gmx.de) |
Inspired By: SurfaceLib by Haste/Otravi (troeks@gmail.com) |
Website: http://www.wowace.com/projects/libsharedmedia-3-0/ |
9,7 → 9,7
License: LGPL v2.1 |
]] |
|
local MAJOR, MINOR = "LibSharedMedia-3.0", 6000201 -- 6.0.2 v1 / increase manually on changes |
local MAJOR, MINOR = "LibSharedMedia-3.0", 6010002 -- 6.1.0 v2 / increase manually on changes |
local lib = LibStub:NewLibrary(MAJOR, MINOR) |
|
if not lib then return end |
223,6 → 223,13
end |
mediatype = mediatype:lower() |
if mediatype == lib.MediaType.FONT and ((langmask and band(langmask, LOCALE_MASK) == 0) or not (langmask or locale_is_western)) then return false end |
if mediatype == lib.MediaType.SOUND and type(data) == "string" then |
local path = data:lower() |
-- Only ogg and mp3 are valid sounds. |
if not path:find(".ogg", nil, true) and not path:find(".mp3", nil, true) then |
return false |
end |
end |
if not mediaTable[mediatype] then mediaTable[mediatype] = {} end |
local mtable = mediaTable[mediatype] |
if mtable[key] then return false end |
TipTop/TipTopOptions.lua
8,6 → 8,7
"RIGHT", "LEFT", "CENTER"} |
local formats = {"100/100", "100%", "100/100 (100%)", "1.2k/1.2k", "1.2k/1.2k (100%)"} |
local fontFlags = {"None", "Outline", "Monochrome Outline"} --, "Monochrome"} |
local classIconStyles = {"Default UI", "Bright Class Color", "Dark Grey", "Dark", "Light Grey", "Medium Grey", "Muted Class Color", "WoW Website"} |
|
|
local defaults = { |
23,6 → 24,7
diffColor = true, |
classColor = true, |
classIcon = false, |
classIconStyle = "Default UI", |
guildRank = false, |
itemColor = true, |
borderColor = {r=.6, g=.6, b=.6, a=1}, |
705,6 → 707,23
end, |
order = 42, |
}, |
classIconStyle = { |
name = "Class Icon Style", |
desc = "Select the style of class icon displayed.", |
type = "select", |
values = classIconStyles, |
get = function() |
for k, v in pairs(classIconStyles) do |
if db.classIconStyle == v then |
return k |
end |
end |
end, |
set = function(_, style) |
db.classIconStyle = classIconStyles[style] |
end, |
order = 42.5, |
}, |
guildRank = { |
name = "Guild Rank", |
desc = "Display the unit's rank next to the guild name in the tooltip.", |
TipTop/media/ROGUE.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/WARRIOR.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/DEATHKNIGHT.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/WARLOCK.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/MONK.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/HUNTER.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/PRIEST.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/DRUID.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/SHAMAN.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/PALADIN.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/MAGE.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
TipTop/media/ClassIcons/Light Grey.BLP
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
TipTop/media/ClassIcons/WoW Website.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
TipTop/media/ClassIcons/Dark.BLP
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
TipTop/media/ClassIcons/Muted Class Color.BLP
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
TipTop/media/ClassIcons/Bright Class Color.BLP
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
TipTop/media/ClassIcons/Medium Grey.BLP
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
TipTop/media/ClassIcons/Dark Grey.BLP
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
TipTop/media/ClassIcons/icons info.txt
New file
0,0 → 1,8
Default icons in UI game files. |
|
Website icons with transparent backgrounds found on updated WoW site. |
https://worldofwarcraft.com/en-us/game/talent-calculator |
|
Textures with backgrounds by gossipgirlxo |
Flat Player Icons |
http://www.wowinterface.com/downloads/info24101-FlatPlayerIcons.html |
\ No newline at end of file
TipTop/tiptop.lua
294,7 → 294,14
local text = nil --reset text var to maybe, hopefully quell repeating icon issue... |
text = GameTooltipTextLeft1:GetText() |
if text then |
GameTooltipTextLeft1:SetText("|TInterface\\AddOns\\TipTop\\media\\"..class..":20|t "..text) |
local path |
if db.classIconStyle == "Default UI" then |
path = "Interface\\TARGETINGFRAME\\UI-Classes-Circles" |
else |
path = "Interface\\AddOns\\TipTop\\media\\ClassIcons\\"..db.classIconStyle |
end |
local x1, x2, y1, y2 = unpack(CLASS_ICON_TCOORDS[class]) |
GameTooltipTextLeft1:SetFormattedText("|T%s:22:22:0:0:256:256:%d:%d:%d:%d|t %s", path, x1*256, x2*256, y1*256, y2*256, text) |
tt:Show() |
end |
end |
TipTop/TipTop.toc
2,7 → 2,7
## Title: TipTop |
## Author: Seerah |
## Notes: Tooltip enhancement |
## Version: 2.15 |
## Version: 2.16 |
## SavedVariables: TipTopDB |
## SavedVariablesPerCharacter: TipTopPCDB |
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets |