Skip to content

Commit

Permalink
[ver. 3.58] - 11.09.2024 (#128)
Browse files Browse the repository at this point in the history
## [ver. 3.58] - 11.09.2024
### NEW
- NEW - [Portraits]: Add a function to add your custom Class Icons to
the portraits via code.
- NEW - [Portraits]: Add a Set of new Class Icons.
  • Loading branch information
mBlinkii authored Sep 11, 2024
2 parents 710d08a + 53e0751 commit 03159f5
Show file tree
Hide file tree
Showing 26 changed files with 96 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Addon/ElvUI_mMediaTag/ElvUI_mMediaTag.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 30403
## Author: Blinkii
## Version: 3.57
## Version: 3.58
## Title: |CFF6559F1m|r|CFFA037E9M|r|CFFDD14E0T|r - |CFF6559F1m|r|CFF7A4DEFM|r|CFF8845ECe|r|CFFA037E9d|r|CFFA435E8i|r|CFFB32DE6a|r|CFFBC26E5T|r|CFFCB1EE3a|r|CFFDD14E0g|r |CFFFF006C&|r |CFFFF4C00T|r|CFFFF7300o|r|CFFFF9300o|r|CFFFFA800l|r|CFFFFC900s|r
## Notes: mMediaTag & Tools is a plugin for ElvUI. mMediaTag adds many media files like textures/ fonts/ icons and some tools to ElvUI.
## Notes-deDE: mMediaTag & Tools ist ein Plugin für ElvUI. mMediaTag fügt viele Mediendateien wie Texturen/ Schriften/ Symbole und einige Tools zu ElvUI hinzu.
Expand Down
2 changes: 1 addition & 1 deletion Addon/ElvUI_mMediaTag/ElvUI_mMediaTag_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 40400
## Author: Blinkii
## Version: 3.57
## Version: 3.58
## Title: |CFF6559F1m|r|CFFA037E9M|r|CFFDD14E0T|r - |CFF6559F1m|r|CFF7A4DEFM|r|CFF8845ECe|r|CFFA037E9d|r|CFFA435E8i|r|CFFB32DE6a|r|CFFBC26E5T|r|CFFCB1EE3a|r|CFFDD14E0g|r |CFFFF006C&|r |CFFFF4C00T|r|CFFFF7300o|r|CFFFF9300o|r|CFFFFA800l|r|CFFFFC900s|r
## IconTexture: Interface\AddOns\ElvUI_mMediaTag\media\logo\mmt_icon
## AddonCompartmentFunc: ElvUI_mMediaTag_OnAddonCompartmentClick
Expand Down
2 changes: 1 addition & 1 deletion Addon/ElvUI_mMediaTag/ElvUI_mMediaTag_Mainline.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 110002, 110005
## Author: Blinkii
## Version: 3.57
## Version: 3.58
## Title: |CFF6559F1m|r|CFFA037E9M|r|CFFDD14E0T|r - |CFF6559F1m|r|CFF7A4DEFM|r|CFF8845ECe|r|CFFA037E9d|r|CFFA435E8i|r|CFFB32DE6a|r|CFFBC26E5T|r|CFFCB1EE3a|r|CFFDD14E0g|r |CFFFF006C&|r |CFFFF4C00T|r|CFFFF7300o|r|CFFFF9300o|r|CFFFFA800l|r|CFFFFC900s|r
## Notes: ElvUI Plugin from Blinkii | Support: [email protected]
## IconTexture: Interface\AddOns\ElvUI_mMediaTag\media\logo\mmt_icon
Expand Down
2 changes: 1 addition & 1 deletion Addon/ElvUI_mMediaTag/ElvUI_mMediaTag_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 11503
## Author: Blinkii
## Version: 3.57
## Version: 3.58
## Title: |CFF6559F1m|r|CFFA037E9M|r|CFFDD14E0T|r - |CFF6559F1m|r|CFF7A4DEFM|r|CFF8845ECe|r|CFFA037E9d|r|CFFA435E8i|r|CFFB32DE6a|r|CFFBC26E5T|r|CFFCB1EE3a|r|CFFDD14E0g|r |CFFFF006C&|r |CFFFF4C00T|r|CFFFF7300o|r|CFFFF9300o|r|CFFFFA800l|r|CFFFFC900s|r
## Notes: mMediaTag & Tools is a plugin for ElvUI. mMediaTag adds many media files like textures/ fonts/ icons and some tools to ElvUI.
## Notes-deDE: mMediaTag & Tools ist ein Plugin für ElvUI. mMediaTag fügt viele Mediendateien wie Texturen/ Schriften/ Symbole und einige Tools zu ElvUI hinzu.
Expand Down
7 changes: 7 additions & 0 deletions Addon/ElvUI_mMediaTag/core/changelog/3.58.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mMT.Changelog[358] = {
DATE = "11.09.2024",
NEW = {
"[Portraits]: Add a function to add your custom Class Icons to the portraits via code.",
"[Portraits]: Add e Set of new Class Icons.",
},
}
1 change: 1 addition & 0 deletions Addon/ElvUI_mMediaTag/core/changelog/load_changelogs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
<Script file="3.55.lua"/>
<Script file="3.56.lua"/>
<Script file="3.57.lua"/>
<Script file="3.58.lua"/>
</Ui>
10 changes: 5 additions & 5 deletions Addon/ElvUI_mMediaTag/core/changelog/new.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mMT.Changelog[356] = {
DATE = "xx",
IMPORTANT = { "xx" },
NEW = { "xx" },
UPDATE = { "xx" },
FIX = { "xx" },
DATE = "there is nothing new here",
IMPORTANT = { "there is nothing new here" },
NEW = { "there is nothing new here" },
UPDATE = { "there is nothing new here" },
FIX = { "there is nothing new here" },
}
2 changes: 1 addition & 1 deletion Addon/ElvUI_mMediaTag/core/load_core.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Include file="changelog\load_changelogs.xml"/>
<Script file="Core.lua"/>
<Script file="eltruism.lua"/>
<Script file="jiberish.lua"/>
<!-- <Script file="jiberish.lua"/> -->
<Script file="merathilis.lua"/>
<Script file="cmd.lua"/>
<Script file="devmode.lua"/>
Expand Down
10 changes: 7 additions & 3 deletions Addon/ElvUI_mMediaTag/core/options/portraits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@ local frameStrata = {
}

function BuildIconStylesTable()
for id, name in pairs(mMT.ElvUI_JiberishIcons.styles) do
ClassIconStyle[id] = name
-- for id, name in pairs(mMT.ElvUI_JiberishIcons.styles) do
-- ClassIconStyle[id] = name
-- end
for iconStyle, value in pairs(mMT.classIcons) do
ClassIconStyle[iconStyle] = value.name
end
end

local function configTable()
local sizeString = ":16:16:0:0:64:64:4:60:4:60"

if mMT.ElvUI_JiberishIcons.loaded then BuildIconStylesTable() end
BuildIconStylesTable()

E.Options.args.mMT.args.unitframes.args.portraits.args = {
toggle_enable = {
Expand Down Expand Up @@ -123,6 +126,7 @@ local function configTable()
end,
set = function(info, value)
E.db.mMT.portraits.general.classiconstyle = value
mMT.Modules.Portraits:Initialize()
E:StaticPopup_Show("CONFIG_RL")
end,
values = ClassIconStyle,
Expand Down
7 changes: 4 additions & 3 deletions Addon/ElvUI_mMediaTag/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ mMT.DB = {}
mMT.ClassColor = {}
mMT.ElvUI_EltreumUI = {}
mMT.ElvUI_MerathilisUI = {}
mMT.ElvUI_JiberishIcons = {}
--mMT.ElvUI_JiberishIcons = {}
mMT.DEVNames = {}
mMT.DevMode = false
mMT.CurrentProfile = nil
mMT.firstLoad = 0
mMT.Classes = { "DEATHKNIGHT", "DEMONHUNTER", "DRUID", "EVOKER", "HUNTER", "MAGE", "MONK", "PALADIN", "PRIEST", "ROGUE", "SHAMAN", "WARLOCK", "WARRIOR" }
mMT.Locales = LibStub("AceLocale-3.0"):GetLocale("mMediaTag")
mMT.Changelog = {}
mMT.classIcons = {}
mMT.BossIDs = {}

mMT.Modules.Portraits = {}
Expand Down Expand Up @@ -209,7 +210,7 @@ function mMT:Initialize()
mMT.Classes = mMT:ClassesTable()

-- load JiberishUI Icons for Portraits
if E.db.mMT.portraits.general.enable then mMT.ElvUI_JiberishIcons = mMT:JiberishIcons() end
--if E.db.mMT.portraits.general.enable then mMT.ElvUI_JiberishIcons = mMT:JiberishIcons() end

-- Register Events for Retail
if E.Retail or E.Cata then
Expand Down Expand Up @@ -276,7 +277,7 @@ function mMT:PLAYER_ENTERING_WORLD(event)
mMT.ElvUI_EltreumUI = mMT:CheckEltruism()
mMT.ElvUI_MerathilisUI = mMT:CheckMerathilisUI()
mMT.ClassColor = mMT:UpdateClassColor()
mMT.ElvUI_JiberishIcons = mMT:JiberishIcons()
--mMT.ElvUI_JiberishIcons = mMT:JiberishIcons()
mMT.DEVNames = mMT:GetDevNames()
mMT.Classes = mMT:ClassesTable()

Expand Down
8 changes: 3 additions & 5 deletions Addon/ElvUI_mMediaTag/localization/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ L["Use Class Icons"] = "Benutze Klassensymbole"
L["Use Default NPC IDs"] = "Benutze Standard NPC IDs"
L["Use Eltruism colors"] = "Benutze Eltruism Farben"
L["Use MerathilisUI colors"] = "Benutze MerathilisUI Farben"
L["Use Texture Color"] = "Verwende Texturfarbe"
L["Use only Default Color"] = "Nur die Standardfarbe verwenden"
L["Uses Custom and default NPC IDs"] = "Verwende eigene und Standard NPC IDs"
L["Uses for every Unit the Default Color."] = "Verwendet für jede Einheit die Standardfarbe."
Expand All @@ -724,6 +725,7 @@ L["Weekly Affixes"] = "Wöchentliche Affixe"
L["Weekly Score"] = "Wöchentliche Punkte"
L["Welcome text"] = "Willkommensnachricht"
L["Welcome to %s %s version |CFFF7DC6F%s|r, type |CFF58D68D/mmt|r to access the in-game configuration menu."] = "Willkommen zu %s %s Version |CFFF7DC6F%s|r, tippe |CFF58D68D/mmt|r um das Einstellungs Fenster zu öffnen."
L["When loading the textures of JiberishUI icons."] = "Beim Laden der Texturen von JiberishUI-Symbolen."
L["White"] = "weiß"
L["WoW Token:"] = "WoW Marke:"
L["World Latency:"] = "Weltlatenz"
Expand All @@ -748,6 +750,7 @@ L["mMT Extra"] = true
L["mMT Raidtarget marker Icons"] = "mMT Raidziel Markierungssymbole"
L["mMT XIV Like Color"] = "mMT XIV ähnlich in Farbe"
L["mMT XIV Like"] = "mMT XIV ähnlich"
L["mMediaTag needs an update to support the current version of JiberishUI icons, it is possible that the class icons are not displayed correctly on the portraits."] = "mMediaTag benötigt ein Update, um die aktuelle Version der JiberishUI-Symbole zu unterstützen. Es ist möglich, dass die Klassensymbole auf den Porträts nicht richtig angezeigt werden."
L["middle click to open the Dungeon Teleports menu."] = "Mittel Klick um das Instanzteleporter Menü zu öffnen."
L["no Status version of"] = "Kein Status Version von"
L["right click to open Great Vault Window"] = "Rechts Klick um die Große Schatzkammer zu öffnen."
Expand All @@ -766,8 +769,3 @@ L["|cffFFFFFFControl + Left Click:|r Change Loadout"] = "|cffFFFFFFStrg + Linksk
L["|cffFFFFFFLeft Click:|r Change Talent Specialization"] = "|cffFFFFFFLinks Klick:|r Talent Spezialisierung ändern"
L["|cffFFFFFFRight Click:|r Change Loot Specialization"] = "|cffFFFFFFRechtsklick:|r Beutespezialisierung ändern"
L["|cffFFFFFFShift + Left Click:|r Show Talent Specialization UI"] = "|cffFFFFFFShift + Links Klick:|r Zeige Talent Spezialisierungs Interface"

-- new
L["Use Texture Color"] = true
L["mMediaTag needs an update to support the current version of JiberishUI icons, it is possible that the class icons are not displayed correctly on the portraits."] = true
L["When loading the textures of JiberishUI icons."] = true
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
52 changes: 52 additions & 0 deletions Addon/ElvUI_mMediaTag/modules/unitframes/classicons.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
local L = mMT.Locales

local type = type
local path = "Interface\\Addons\\ElvUI_mMediaTag\\media\\portraits\\class\\"
local textureCoords = {
WARRIOR = { 0, 0, 0, 0.125, 0.125, 0, 0.125, 0.125 },
MAGE = { 0.125, 0, 0.125, 0.125, 0.25, 0, 0.25, 0.125 },
ROGUE = { 0.25, 0, 0.25, 0.125, 0.375, 0, 0.375, 0.125 },
DRUID = { 0.375, 0, 0.375, 0.125, 0.5, 0, 0.5, 0.125 },
EVOKER = { 0.5, 0, 0.5, 0.125, 0.625, 0, 0.625, 0.125 },
HUNTER = { 0, 0.125, 0, 0.25, 0.125, 0.125, 0.125, 0.25 },
SHAMAN = { 0.125, 0.125, 0.125, 0.25, 0.25, 0.125, 0.25, 0.25 },
PRIEST = { 0.25, 0.125, 0.25, 0.25, 0.375, 0.125, 0.375, 0.25 },
WARLOCK = { 0.375, 0.125, 0.375, 0.25, 0.5, 0.125, 0.5, 0.25 },
PALADIN = { 0, 0.25, 0, 0.375, 0.125, 0.25, 0.125, 0.375 },
DEATHKNIGHT = { 0.125, 0.25, 0.125, 0.375, 0.25, 0.25, 0.25, 0.375 },
MONK = { 0.25, 0.25, 0.25, 0.375, 0.375, 0.25, 0.375, 0.375 },
DEMONHUNTER = { 0.375, 0.25, 0.375, 0.375, 0.5, 0.25, 0.5, 0.375 },
}

-- style = texture style, textur = path to the texture, table with texture coords for each class, name = optional name to show in dopdown menu
function mMT:AddClassIcons(style, texture, texCoords, name)
if type(texCoords) ~= "table" then
mMT:Print("|CFFEA1818Error|r:", L["The texture coordinates must be passed as a table."])
return
end

if style and texture and texCoords then
mMT.classIcons[style] = {
name = name or style,
texture = texture,
texCoords = texCoords,
}
else
mMT:Print("|CFFEA1818Error|r:", L["Could not add the texture."])
end
end

mMT:AddClassIcons("mmt_border", path .. "mmt_border.tga", textureCoords, "mMT Frame A")
mMT:AddClassIcons("mmt_classcolored_border", path .. "mmt_classcolored_border.tga", textureCoords, "mMT Frame B")

mMT:AddClassIcons("mmt_transparent", path .. "mmt_transparent.tga", textureCoords, "mMT Transparent A")
mMT:AddClassIcons("mmt_transparent_shadow", path .. "mmt_transparent_shadow.tga", textureCoords, "mMT Transparent B")
mMT:AddClassIcons("mmt_transparent_colorboost", path .. "mmt_transparent_colorboost.tga", textureCoords, "mMT Transparent C")
mMT:AddClassIcons("mmt_transparent_colorboost_shadow", path .. "mmt_transparent_colorboost_shadow.tga", textureCoords, "mMT Transparent D")

mMT:AddClassIcons("mmt_transparent_outline", path .. "mmt_transparent_outline.tga", textureCoords, "mMT Transparent Outline A")
mMT:AddClassIcons("mmt_transparent_outline_shadow", path .. "mmt_transparent_outline_shadow.tga", textureCoords, "mMT Transparent Outline B")
mMT:AddClassIcons("mmt_transparent_outline_colorboost", path .. "mmt_transparent_outline_colorboost.tga", textureCoords, "mMT Transparent Outline C")
mMT:AddClassIcons("mmt_transparent_outline_shadow_colorboost", path .. "mmt_transparent_outline_shadow_colorboost.tga", textureCoords, "mMT Transparent Outline D")

mMT:AddClassIcons("BLIZZARD", "Interface\\WorldStateFrame\\Icons-Classes", CLASS_ICON_TCOORDS, "Blizzard")
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file="classicons.lua"/>
<Script file="background.lua"/>
<Script file="RoleIcons.lua"/>
<Script file="PhaseIcon.lua"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file="classicons.lua"/>
<Script file="background.lua"/>
<Script file="PhaseIcon.lua"/>
<Script file="ReadyCheckIcon.lua"/>
Expand Down
12 changes: 3 additions & 9 deletions Addon/ElvUI_mMediaTag/modules/unitframes/portrait.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ local function setColor(texture, color, mirror)
end
end


local cachedFaction = {}

local function getColor(unit, isPlayer)
Expand Down Expand Up @@ -126,15 +125,11 @@ end
local function SetPortraits(frame, unit, masking, mirror)
if E.db.mMT.portraits.general.classicons and UnitIsPlayer(unit) then
local class = select(2, UnitClass(unit))
local coords = CLASS_ICON_TCOORDS[class]
local style = E.db.mMT.portraits.general.classiconstyle
local coords = mMT.classIcons[style].texCoords[class]
local iconTexture = mMT.classIcons[style].texture

if mMT.ElvUI_JiberishIcons.loaded and style ~= "BLIZZARD" then
coords = class and mMT.ElvUI_JiberishIcons.texCoords[class]
SetTextures(frame.portrait, mMT.ElvUI_JiberishIcons.path .. style)
else
SetTextures(frame.portrait, "Interface\\WorldStateFrame\\Icons-Classes")
end
SetTextures(frame.portrait, iconTexture)

if frame.iconbg then UpdateIconBackground(frame.iconbg, unit, mirror) end

Expand Down Expand Up @@ -234,7 +229,6 @@ local function CheckRareElite(frame, unit, unitColor)
end
end


local function UpdatePortrait(portraitFrame, force)
if mMT.DevMode then
mMT:Print(
Expand Down
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# Changelog - ElvUI_mMediaTag
[Eng] - All changes to this project will be documented in this file. The latest changes are at the top.

## [ver. 3.58] - 11.09.2024
### NEW
- NEW - [Portraits]: Add a function to add your custom Class Icons to the portraits via code.
- NEW - [Portraits]: Add e Set of new Class Icons.

## [ver. 3.57] - 07.09.2024
## UPDATE
### UPDATE
- UPDATE - [Important-Spells]: Default Texture function.
- UPDATE - [Portraits]: Background setting is now always available.
- UPDATE - [Portraits]: Optimized Style c and b.
- UPDATE - [Portraits]: Update Class Icons for the new Version of JiberishUI Icons - Thx Repooc.
### FIX
- FIX - [Portraits]: Smal Bugs with ne Textures.
- FIX - [Portraits]: Old DB check did not worked correctly.
## NEW
### NEW
- NEW - [Portraits]: Add Rare/ Elite/ Boss to custom Texture section.
- NEW - [Portraits]: Add simple Dragon texture to Circle, Drop & Pure.
- NEW - [Portraits]: New color function for Rare/ Elite/ Boss textures.
Expand Down

0 comments on commit 03159f5

Please sign in to comment.