Skip to content

Commit

Permalink
[ver. 3.43] - 13.07.2024 (#106)
Browse files Browse the repository at this point in the history
## [ver. 3.43] - 13.07.2024
### FIX
- FIX - Missing symbol in the menu for Docks.
- FIX - Dock Icon sizing if the bar is vertical.
### Update
- UPDATE - Some code optimizations.
- UPDATE - TOC update for Classic.
### NEW
- NEW - New Settings menu for the Example Docks.
- NEW - Support for MerathilisUI colors and gradient mode.
- NEW - Portraits Texture Thin.
- NEW - Add more example Docks and Datattext to the Example Docks menu.
  • Loading branch information
mBlinkii authored Jul 13, 2024
2 parents 25129c8 + 66854e6 commit c9b2e67
Show file tree
Hide file tree
Showing 59 changed files with 6,787 additions and 2,192 deletions.
2 changes: 1 addition & 1 deletion Addon/!mMT_MediaPack/!mMT_MediaPack.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 30403
## Author: Blinkii
## Version: 1.19
## Version: 1.20
## Title: |CFF6559F1m|r|CFFA037E9M|r|CFFDD14E0T|r - |CFFFF06A2M|r|CFFFF108Ce|r|CFFFF197Ad|r|CFFFF216Bi|r|CFFFF275Da|r |CFFFF3441P|r|CFFFF3F2Ca|r|CFFFF461Cc|r|CFFFF4E0Ck|r
## Notes: mMT Media Pack by Blinkii | Support: [email protected]
## IconTexture: Interface\AddOns\!mMT_MediaPack\media\logo\mmt_icon
Expand Down
2 changes: 1 addition & 1 deletion Addon/!mMT_MediaPack/!mMT_MediaPack_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 40400
## Author: Blinkii
## Version: 1.19
## Version: 1.20
## Title: |CFF6559F1m|r|CFFA037E9M|r|CFFDD14E0T|r - |CFFFF06A2M|r|CFFFF108Ce|r|CFFFF197Ad|r|CFFFF216Bi|r|CFFFF275Da|r |CFFFF3441P|r|CFFFF3F2Ca|r|CFFFF461Cc|r|CFFFF4E0Ck|r
## Notes: mMT Media Pack by Blinkii | Support: [email protected]
## IconTexture: Interface\AddOns\!mMT_MediaPack\media\logo\mmt_icon
Expand Down
2 changes: 1 addition & 1 deletion Addon/!mMT_MediaPack/!mMT_MediaPack_Mainline.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 100207
## Author: Blinkii
## Version: 1.19
## Version: 1.20
## Title: |CFF6559F1m|r|CFFA037E9M|r|CFFDD14E0T|r - |CFFFF06A2M|r|CFFFF108Ce|r|CFFFF197Ad|r|CFFFF216Bi|r|CFFFF275Da|r |CFFFF3441P|r|CFFFF3F2Ca|r|CFFFF461Cc|r|CFFFF4E0Ck|r
## Notes: mMT Media Pack by Blinkii | Support: [email protected]
## IconTexture: Interface\AddOns\!mMT_MediaPack\media\logo\mmt_icon
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 11502
## Interface: 11503
## Author: Blinkii
## Version: 1.19
## Version: 1.20
## Title: |CFF6559F1m|r|CFFA037E9M|r|CFFDD14E0T|r - |CFFFF06A2M|r|CFFFF108Ce|r|CFFFF197Ad|r|CFFFF216Bi|r|CFFFF275Da|r |CFFFF3441P|r|CFFFF3F2Ca|r|CFFFF461Cc|r|CFFFF4E0Ck|r
## Notes: mMT Media Pack by Blinkii | Support: [email protected]
## IconTexture: Interface\AddOns\!mMT_MediaPack\media\logo\mmt_icon
Expand Down
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.42
## Version: 3.43
## 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.42
## Version: 3.43
## 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: 100207
## Author: Blinkii
## Version: 3.42
## Version: 3.43
## 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 11502
## Interface: 11503
## Author: Blinkii
## Version: 3.42
## Version: 3.43
## 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
4 changes: 1 addition & 3 deletions Addon/ElvUI_mMediaTag/core/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
function mMT:UpdateClassColor()
local class = E:ClassColor(E.myclass)
local hex = E:RGBToHex(class.r, class.g, class.b)
local gradient = mMT.ElvUI_EltreumUI.loaded and mMT.ElvUI_EltreumUI.colors[E.myclass] or { a = { r = class.r - 0.2, g = class.g - 0.2, b = class.b - 0.2, a = 1 }, b = { r = class.r + 0.2, g = class.g + 0.2, b = class.b + 0.2, a = 1 } }
local gradient = ((mMT.ElvUI_EltreumUI.loaded and mMT.ElvUI_EltreumUI.colors[E.myclass]) or (mMT.ElvUI_MerathilisUI.loaded and mMT.ElvUI_MerathilisUI.colors[E.myclass])) or { a = { r = class.r - 0.2, g = class.g - 0.2, b = class.b - 0.2, a = 1 }, b = { r = class.r + 0.2, g = class.g + 0.2, b = class.b + 0.2, a = 1 } }
return { class = class, r = class.r, g = class.g, b = class.b, hex = hex, string = strjoin("", hex, "%s|r"), gradient = gradient }
end

Expand Down Expand Up @@ -99,8 +99,6 @@ function mMT:CheckMerathilisUI()
colors = nil,
}



if mui_tbl.loaded then
mui_tbl.gradient = E.db.mui.gradient and E.db.mui.gradient.enable
mui_tbl.custom = E.db.mui.gradient and E.db.mui.gradient.customColor.enableClass
Expand Down
21 changes: 17 additions & 4 deletions Addon/ElvUI_mMediaTag/core/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,25 @@ function mMT:ConvertDB()
}
end

function mMT:DebugPrintTable(tbl)
mMT:Print(": Table Start >>>")
local function PrintTable(tbl, indent, simple)
if type(tbl) == "table" then
for k, v in pairs(tbl) do
print(k, v)
for entry, value in pairs(tbl) do
if type(value) == "table" and not simple then
print(indent and indent .. " " or "", "|cff60ffc3 [" .. entry .. "]|r", value)
PrintTable(value, indent and indent .. " " or " ")
else
print(indent and indent .. " " or "", ((type(value) == "table") and "|cff60ffc3 [" or "|cfffbd7f9 [") .. entry .. "]|r", " > ", value)
end
end
else
print(tostring(tbl))
end
end

function mMT:DebugPrintTable(tbl, simple)
if type(tbl) == "table" then
mMT:Print(": Table Start >>>", tbl)
PrintTable(tbl, nil, simple)
else
mMT:Print("Not a Table:", tbl)
end
Expand Down
32 changes: 9 additions & 23 deletions Addon/ElvUI_mMediaTag/core/options/changelog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,23 @@ local change_log_important = {
"This update will reset the Spell DB.",
}

local releasdate = "28.06.2024"
local releasdate = "13.07.2024"

local change_log_new = {
"Portraits can now use custom textures.",
"Portraits can now show cast icon, available for player, target, focus, party, boss, and arena.",
"Portraits setting to force reaction colors on Player Units.",
"TAGs: mLevel:hidecombat, mLevelSmart:hidecombat, mHealth:onlypercent-with-absorbs:ndp, mHealth:short:absorbs, mColor:absorbs.",
"TAGs: mHealth:current-percent:absorbs, mHealth:current-percent:ndp:absorbs, mHealth:current-percent:short:absorbs, mHealth:current-percent:short:ndp:absorbs.",
"Add general TOC file for WOTLK Version in China",
"New Settings menu for the Example Docks.",
"Support for MerathilisUI colors and gradient mode.",
"Portraits Texture Thin.",
"Add more example Docks and Datattext to Example Docks menu.",
}

local change_log_update = {
"Add no Profession text and Icon to first and second Profession data text.",
"White text setting for Profession data text.",
"NEW: Icon for Teleports data text.",
"Portraits texture names.",
"Removed Portraits texture simple square and added flipped Versions for Drop texture.",
"Add Stone of the Hearth and Draenic Hologem to TP datatext (thx to Merathilis)",
"Some code optimizations.",
"TOC update for Classic.",
}

local change_log_fix = {
"Portraits colors if gradient mode is disabled.",
"Portraits can now properly enable/disable on the fly.",
"Portraits corner won't hide if the texture does not support it.",
"Tooltip Icon can override Item names in Classic.",
"Tooltip and Teleports Datatext for TWW, (for beta use, disable the Objectivetracker Skin).",
"Removed empty data text entry.",
"Add S Pack to mMT Settings DB.",
"Datatext Durability/ Ilevel: Durability color values.",
"Removed debug print.",
"Portraits Optimized code and fixed flipped drop texture (black background)",
"Missing symbol in the menu for Docks.",
"Dock Icon sizing if the bar is vertical.",
}

local function Concatenation(tbl, icon, color)
Expand Down
16 changes: 8 additions & 8 deletions Addon/ElvUI_mMediaTag/core/options/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,14 @@ local function configTable()
},
},
},
-- misc = {
-- order = 9,
-- type = "group",
-- name = L["Misc"],
-- icon = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\misc.tga",
-- childGroups = "tab",
-- args = {},
-- },
misc = {
order = 9,
type = "group",
name = L["Misc"],
icon = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\misc.tga",
childGroups = "tab",
args = {},
},
about = {
order = 10,
type = "group",
Expand Down
207 changes: 207 additions & 0 deletions Addon/ElvUI_mMediaTag/core/options/customdatatext.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
local E = unpack(ElvUI)
local L = mMT.Locales

local tinsert = tinsert

--Variables
local LSM = LibStub("LibSharedMedia-3.0")
local FontFlags = {
NONE = "None",
OUTLINE = "Outline",
THICKOUTLINE = "Thick",
SHADOW = "|cff888888Shadow|r",
SHADOWOUTLINE = "|cff888888Shadow|r Outline",
SHADOWTHICKOUTLINE = "|cff888888Shadow|r Thick",
MONOCHROME = "|cFFAAAAAAMono|r",
MONOCHROMEOUTLINE = "|cFFAAAAAAMono|r Outline",
MONOCHROMETHICKOUTLINE = "|cFFAAAAAAMono|r Thick",
}

local docks = {
XIV = L["XIV"],
XIVCOLOR = L["XIV Colored"],
MAUI = L["MaUI"],
MMTDOCK = L["mMT Dock"],
MMTEXTRA = L["mMT Extra"],
CURRENCY = L["Currency"],
LOCATION = L["Location"],
SIMPLE = L["Simple"],
}

local previewPath = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\xiv.tga"

local settings = { dock = "XIV", top = false, font = "Montserrat-SemiBold", fontflag = "SHADOW", fontsize = 14, bg = false }
local function configTable()
E.Options.args.mMT.args.misc.args = {
customDocks = {
order = 10,
type = "group",
name = L["Custom Docks"],
args = {
header_settings = {
order = 1,
type = "group",
inline = true,
name = L["Settings"],
args = {
select_typ = {
order = 1,
type = "select",
name = L["Dock"],
get = function(info)
return settings.dock
end,
set = function(info, value)
settings.dock = value

local preview = {
XIV = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\xiv.tga",
XIVCOLOR = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\xivcolored.tga",
MAUI = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\maui.tga",
MMTDOCK = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\mmt.tga",
MMTEXTRA = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\extra.tga",
CURRENCY = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\currency.tga",
LOCATION = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\location.tga",
SIMPLE = "Interface\\Addons\\ElvUI_mMediaTag\\media\\system\\simple.tga",
}

previewPath = preview[value]


if (settings.dock == "MMTEXTRA") then
settings.bg = true
elseif (settings.dock == "LOCATION") then
settings.bg = true
settings.fontsize = 16
settings.top = true
end
end,
values = docks,
},
toggle_top = {
order = 2,
type = "toggle",
name = L["Dock on Top"],
get = function(info)
return settings.top
end,
set = function(info, value)
settings.top = value
end,
},
toggle_bg = {
order = 3,
type = "toggle",
name = L["Background"],
get = function(info)
return settings.bg
end,
set = function(info, value)
settings.bg = value
end,
},
spacer_1 = {
order = 4,
type = "description",
name = "\n",
},
select_font = {
type = "select",
dialogControl = "LSM30_Font",
order = 5,
name = L["Font"],
values = LSM:HashTable("font"),
get = function(info)
return settings.font
end,
set = function(info, value)
settings.font = value
end,
},
select_fontflag = {
type = "select",
order = 6,
name = L["Font contour"],
values = FontFlags,
get = function(info)
return settings.fontflag
end,
set = function(info, value)
settings.fontflag = value
end,
},
range_fontsize = {
order = 7,
name = L["Font Size"],
type = "range",
min = 1,
max = 64,
step = 1,
softMin = 8,
softMax = 32,
get = function(info)
return settings.fontsize
end,
set = function(info, value)
settings.fontsize = value
end,
},
spacer_2 = {
order = 8,
type = "description",
name = "\n",
},
execute_apply = {
order = 9,
type = "execute",
name = L["Apply"],
func = function()
if (settings.dock == "XIV") or (settings.dock == "XIVCOLOR") or (settings.dock == "MAUI") or (settings.dock == "SIMPLE") then
mMT:XIV(settings)
elseif (settings.dock == "MMTDOCK") then
mMT:Dock_Default(settings)
elseif (settings.dock == "MMTEXTRA") then
mMT:Dock_Extra(settings)
elseif (settings.dock == "CURRENCY") and E.Retail then
mMT:Currency(settings)
elseif (settings.dock == "LOCATION") then
mMT:Location(settings)
end
E:StaticPopup_Show("CONFIG_RL")
end,
},
execute_delete = {
order = 10,
type = "execute",
name = L["Delete all"],
func = function()
mMT:DeleteAll()
E:StaticPopup_Show("CONFIG_RL")
end,
},
},
},
header_preview = {
order = 2,
type = "group",
inline = true,
name = L["Preview"],
args = {
preview = {
type = "description",
name = "",
order = 1,
image = function()
return previewPath
end,
imageWidth = 512,
imageHeight = 128,
},
},
},
},
},
}
end

tinsert(mMT.Config, configTable)
Loading

0 comments on commit c9b2e67

Please sign in to comment.