Skip to content

Commit

Permalink
Ver. 3.20 (#66)
Browse files Browse the repository at this point in the history
## [ver. 3.20] - 20.09.2023
### FIX
- Fix - Nil error on Score Datatext
- Fix - Custom Backdrops
### Update
- Update - Portraits Classic and Retail have now the same look, no mor
different textures
- Update - Optimized Portraits Events and Code
- Update - Combatcheck for Teleports Datatext
- Update - Optimized Portraits Settings
- Update - Force Datatexts to use ElvUI Value color
### NEW
- More Layouts for Portraits
- Portraits for Focus, Pet, TargetTarget, Boss and Arena Frames
- Custom Role Icons for Wrath
- Important Spells is available for Classic and Wrath
- A Reload UI Popup will show if you change your ElvUI Profile
- mTargetingPlayers:icons:Role shows classcolred role icons of targeting
Players
- mTargetingPlayers:icons:Stop shows classcolred icons of targeting
Players
- Statusbartexture q5 and q6 are under testing (maybe they get an own
Series)
  • Loading branch information
mBlinkii authored Sep 29, 2023
2 parents a8e4e30 + 8b02919 commit fa864f9
Show file tree
Hide file tree
Showing 148 changed files with 2,203 additions and 1,057 deletions.
46 changes: 44 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,45 @@
"FONT_SIZE",
"RegisterUnitWatch",
"DevTool",
"UPDATE"
"UPDATE",
"UIParent",
"HideUIPanel",
"_G",
"type",
"print",
"collectgarbage",
"unpack",
"pairs",
"securecallfunction",
"error",
"setmetatable",
"rawget",
"next",
"select",
"tostring",
"WOW_PROJECT_ID",
"WOW_PROJECT_MAINLINE",
"getfenv",
"GetLocale",
"assert",
"tonumber",
"CopyTable",
"UnitExists",
"ipairs",
"C_ContentTracking",
"math",
"UnitXPMax",
"GetQuestLogRewardXP",
"GetQuestLogRewardMoney",
"C_Traits",
"C_ClassTalents",
"Constants",
"PlaySoundFile",
"table",
"UnitIsGroupLeader",
"string",
"min",
"DAMAGER"
],
"Lua.diagnostics.disable": [
"undefined-field"
Expand Down Expand Up @@ -559,9 +597,12 @@
"Spellbook",
"strfind",
"strjoin",
"strlower",
"strmatch",
"tablesort",
"targetindicator",
"Targetindicators",
"targettarget",
"tconcat",
"texttoname",
"THICKOUTLINE",
Expand All @@ -583,5 +624,6 @@
"vaultinforaid",
"Warmode",
"WOTLK"
]
],
"cSpell.language": "en,de"
}
4 changes: 4 additions & 0 deletions Addon/!mMT_MediaPack/media/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ local function LoadSeriesQ()
mAddStatusbar("mMediaTag Q2", "q2.tga")
mAddStatusbar("mMediaTag Q3", "q3.tga")
mAddStatusbar("mMediaTag Q4", "q4.tga")
mAddStatusbar("mMediaTag Q5", "q5.tga")
mAddStatusbar("mMediaTag Q6", "q6.tga")
end
local function LoadSeriesR()
mAddStatusbar("mMediaTag R1", "r1.tga")
Expand Down Expand Up @@ -649,6 +651,8 @@ mAddStatusbar("mMediaTag Caith UI 1", "Wglass.tga")
mAddStatusbar("mMediaTag Caith UI 2", "Wisps.tga")

mAddStatusbar("MaUIv3", "MaUIv3.tga")
mAddStatusbar("MaUIv3 LEFT", "MaUIv3Left.tga")
mAddStatusbar("MaUIv3 RIGHT", "MaUIv3Right.tga")

-- Backgrounds
mAddBackground("mMediaTag BG1", "bg1.tga")
Expand Down
Binary file not shown.
Binary file not shown.
Binary file added Addon/!mMT_MediaPack/media/textures/q5.tga
Binary file not shown.
Binary file added Addon/!mMT_MediaPack/media/textures/q6.tga
Binary file not shown.
73 changes: 73 additions & 0 deletions Addon/ElvUI_mMediaTag/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"Lua.diagnostics.globals": [
"StaticPopupDialogs",
"StaticPopup_Show",
"SlashCmdList",
"ToggleFrame",
"GUILD_AND_COMMUNITIES",
"ACHIEVEMENT_BUTTON",
"BLIZZARD_STORE",
"CHARACTER_BUTTON",
"COLLECTIONS",
"ENCOUNTER_JOURNAL",
"DUNGEONS_BUTTON",
"MAINMENU_BUTTON",
"QUESTLOG_BUTTON",
"SPELLBOOK_ABILITIES_BUTTON",
"TALENTS_BUTTON",
"EasyMenu",
"CURRENCY",
"REPAIR_COST",
"STAT_AVERAGE_ITEM_LEVEL",
"GMSURVEYRATING3",
"LFG_LIST_ITEM_LEVEL_INSTR_PVP_SHORT",
"UIParentLoadAddOn",
"CloseMenus",
"CloseAllWindows",
"MainMenuMicroButton",
"MouseIsOver",
"GetDisplayedInviteType",
"GetQuestDifficultyColor",
"SetItemRef",
"ToggleFriendsFrame",
"BNet_GetValidatedCharacterName",
"ChatFrame_SendBNetTell",
"ToggleGuildFrame",
"COMBAT_FACTION_CHANGE",
"REMOTE_CHAT",
"GUILD_MOTD",
"GUILD",
"PVEFrame_ToggleFrame",
"LFG_ROLE_NUM_SHORTAGE_TYPES",
"DUNGEON_SCORE",
"GREAT_VAULT_REWARDS",
"GREAT_VAULT_REWARDS_WAITING",
"TRADE_SKILLS",
"TRACKER_HEADER_QUESTS",
"COMPLETE",
"INCOMPLETE",
"ToggleTalentFrame",
"UNKNOWN",
"PVP_TALENTS",
"BLUE_FONT_COLOR",
"SELECT_LOOT_SPECIALIZATION",
"LOOT_SPECIALIZATION_DEFAULT",
"PlayerUtil",
"SOUND",
"DIM_RED_FONT_COLOR",
"RED_FONT_COLOR",
"TANK",
"HEALER",
"PaperDollFrame_UpdateStats",
"PET_BATTLE_STATS_LABEL",
"STAT_CATEGORY_ATTRIBUTES",
"STAT_CATEGORY_ENHANCEMENTS",
"CharacterStatsPane",
"LEVEL",
"ITEM_UPGRADE_STAT_AVERAGE_ITEM_LEVEL",
"DURABILITY",
"DUNGEON_DIFFICULTY",
"RAID_DIFFICULTY",
"TooltipDataProcessor"
]
}
2 changes: 1 addition & 1 deletion Addon/ElvUI_mMediaTag/ElvUI_mMediaTag_Classic.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 11404
## Author: Blinkii
## Version: 3.19
## Version: 3.20
## Title: |cff1784d1ElvUI|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
3 changes: 1 addition & 2 deletions Addon/ElvUI_mMediaTag/ElvUI_mMediaTag_Mainline.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 100107
## Author: Blinkii
## Version: 3.19
## Version: 3.20
## Title: |cff1784d1ElvUI|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 All @@ -17,4 +17,3 @@ init.lua
core\load_core.xml
media\load_media.xml
modules\load_modules.xml

3 changes: 2 additions & 1 deletion Addon/ElvUI_mMediaTag/ElvUI_mMediaTag_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 30402
## Author: Blinkii
## Version: 3.19
## Version: 3.20
## Title: |cff1784d1ElvUI|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 All @@ -17,3 +17,4 @@ init.lua
core\load_core.xml
media\load_media.xml
modules\load_modules_classic.xml
modules\unitframes\RoleIcons.lua
59 changes: 59 additions & 0 deletions Addon/ElvUI_mMediaTag/core/core.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
local E = unpack(ElvUI)
local strjoin = strjoin

-- AddonCompartment Functions
function ElvUI_mMediaTag_OnAddonCompartmentClick()
E:ToggleOptions("mMT")
end

function ElvUI_mMediaTag_OnAddonCompartmentOnEnter()
GameTooltip:ClearLines()
GameTooltip:SetOwner(UIParent, "ANCHOR_CURSOR_RIGHT")
GameTooltip:AddDoubleLine(mMT.Name, format("|CFFF7DC6FVer. %s|r", mMT.Version))
GameTooltip:Show()
end

function ElvUI_mMediaTag_OnAddonCompartmentOnLeave()
GameTooltip:Hide()
end

function mMT:UpdateClassColor()
local class = E:ClassColor(E.myclass)
local hex = E:RGBToHex(class.r, class.g, class.b)
return { r = class.r, g = class.g, b = class.b, hex = hex, string = strjoin("", hex, "%s|r") }
end

function mMT:CheckEltruism()
local isLoaded = IsAddOnLoaded("ElvUI_EltreumUI")
if isLoaded then
return {
loaded = IsAddOnLoaded("ElvUI_EltreumUI"),
gradient = E.db.ElvUI_EltreumUI and E.db.ElvUI_EltreumUI.unitframes and E.db.ElvUI_EltreumUI.unitframes.gradientmode and E.db.ElvUI_EltreumUI.unitframes.gradientmode.enable,
dark = E.db.ElvUI_EltreumUI and E.db.ElvUI_EltreumUI.unitframes and E.db.ElvUI_EltreumUI.unitframes.darkmode,
}
else
return {
loaded = IsAddOnLoaded("ElvUI_EltreumUI"),
gradient = false,
dark = false,
}
end
end

function mMT:GetDevNames()
return {
["Blinkii"] = true,
["Flinkii"] = true,
["Raeldan"] = true,
}
end

function mMT:ClassesTable()
if E.Retail then
return { "DEATHKNIGHT", "DEMONHUNTER", "DRUID", "EVOKER", "HUNTER", "MAGE", "MONK", "PALADIN", "PRIEST", "ROGUE", "SHAMAN", "WARLOCK", "WARRIOR" }
elseif E.Classic then
return { "HUNTER", "WARLOCK", "PRIEST", "PALADIN", "MAGE", "ROGUE", "DRUID", "SHAMAN", "WARRIOR" }
elseif E.Wrath then
return { "HUNTER", "WARLOCK", "PRIEST", "PALADIN", "MAGE", "ROGUE", "DRUID", "SHAMAN", "WARRIOR", "DEATHKNIGHT" }
end
end
1 change: 1 addition & 0 deletions Addon/ElvUI_mMediaTag/core/load_core.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file="Core.lua"/>
<Script file="settings\defaultSettings.lua"/>
<Include file="options\load_options.xml"/>
<Script file="dropdown.lua"/>
Expand Down
34 changes: 34 additions & 0 deletions Addon/ElvUI_mMediaTag/core/mMT_DB.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-- default settings
local defaultDB = {
mplusaffix = { affixes = nil, season = nil, reset = false, year = nil },
affix = nil,
keys = {},
dev = { enabled = false, frame = { top = nil, left = nil }, unit = {}, zone = {} },
}

-- Create Frame and register events
local DB_Loader = CreateFrame("FRAME")
DB_Loader:RegisterEvent("PLAYER_LOGOUT")
DB_Loader:RegisterEvent("ADDON_LOADED")

local function OnEvent(event, arg1)
if event == "ADDON_LOADED" and arg1 == "ElvUI_mMediaTag" then
mMTDB = mMTDB or {}
for k, v in pairs(defaultDB) do
if mMTDB[k] == nil then
mMTDB[k] = v
end
end
elseif event == "PLAYER_LOGOUT" then
if mMT.DevMode then
mMT:SaveFramePos()
mMT.DB.dev.enabled = mMT.DevMode
end

if mMT.DB then
mMTDB = mMT.DB
end
end
end

DB_Loader:SetScript("OnEvent", OnEvent)
10 changes: 6 additions & 4 deletions Addon/ElvUI_mMediaTag/core/options/about.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ local license_materialicons_text = {
local license_materialicons_string = tconcat(license_materialicons_text, "|n")

local thanks_text = {
"Simpy",
"Azilroka",
"Dalerija",
"Repooc",
"Luckyone",
"Eltreum",
"Tsxy",
"Merathilis",
"Dalerija",
"Jiberish",
"Luckyone",
"Simpy",
"Trenchy",
"Tsxy",
"Tukui Community",
}
local thanks_string = tconcat(thanks_text, "|n")
Expand Down
32 changes: 18 additions & 14 deletions Addon/ElvUI_mMediaTag/core/options/changelog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ local E, L, V, P, G = unpack(ElvUI)

local _G = _G
local tinsert = tinsert
local change_log_important_string, change_log_new_string, change_log_update_string, change_log_fix_string =
nil, nil, nil, nil
local change_log_important_string, change_log_new_string, change_log_update_string, change_log_fix_string = nil, nil, nil, nil
local green, blue, yellow, red, endtag = "|CFF00D80E", "|CFF00A9FF", "|CFFFFCC00", "|CFFFF0048", "|r"
local new, fix, update, important, dash =
"|TInterface\\Addons\\ElvUI_mMediaTag\\media\\icons\\misc\\star.tga:14:14|t",
"|TInterface\\Addons\\ElvUI_mMediaTag\\media\\icons\\misc\\done1.tga:14:14|t",
"|TInterface\\Addons\\ElvUI_mMediaTag\\media\\icons\\datatext\\upgrade7.tga:14:14|t",
"|TInterface\\Addons\\ElvUI_mMediaTag\\media\\icons\\tags\\quest2.tga:14:14|t",
"> "
local new, fix, update, important, dash = "|TInterface\\Addons\\ElvUI_mMediaTag\\media\\icons\\misc\\star.tga:14:14|t", "|TInterface\\Addons\\ElvUI_mMediaTag\\media\\icons\\misc\\done1.tga:14:14|t", "|TInterface\\Addons\\ElvUI_mMediaTag\\media\\icons\\datatext\\upgrade7.tga:14:14|t", "|TInterface\\Addons\\ElvUI_mMediaTag\\media\\icons\\tags\\quest2.tga:14:14|t", "> "

local change_log_important = {
red .. "!!! Currently only for Retail" .. endtag,
Expand All @@ -20,17 +14,27 @@ local change_log_important = {
}

local change_log_new = {
"NEW Unit Portraits",
"More Layouts for Portraits",
"Portraits for Focus, Pet, TargetTarget, Boss and Arena Frames",
"Custom Role Icons for Wrath",
"Important Spells is available for Classic and Wrath",
"A Reload UI Popup will show if you change your ElvUI Profile",
"mTargetingPlayers:icons:Role shows classcolred role icons of targeting Players",
"mTargetingPlayers:icons:Stop shows classcolred icons of targeting Players",
"Statusbartexture q5 and q6 are under testing (maybe they get an own Series)",
}

local change_log_update = {
"Update Events for Dock ",
"Portraits Classic and Retail have now the same look, no mor different textures",
"Optimized Portraits Events and Code",
"Combatcheck for Teleports Datatext",
"Optimized Portraits Settings",
"Force Datatexts to use ElvUI Value color",
}

local change_log_fix = {
"Fixed for dropdown menu, to prevent wrong menu entries",
"Fixed Settings menu for afk screen (sorting)",
"Fixed Guild dock bug old api",
"Nil error on Score Datatext",
"Custom Backdrops",
}

local function Concatenation(tbl, icon, color)
Expand All @@ -50,7 +54,7 @@ local function Concatenation(tbl, icon, color)
end

local function configTable()
local releasdate = "06.09.2023"
local releasdate = "20.09.2023"
--change_log_important_string = Concatenation(change_log_important)
change_log_new_string = Concatenation(change_log_new)
change_log_update_string = Concatenation(change_log_update)
Expand Down
3 changes: 2 additions & 1 deletion Addon/ElvUI_mMediaTag/core/options/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ local function configTable()
type = "group",
name = L["Role Icons"],
hidden = function()
return not E.Retail
return not (E.Retail or E.Wrath)
end,
args = {},
},
Expand All @@ -286,6 +286,7 @@ local function configTable()
order = 7,
type = "group",
name = L["Portraits"],
childGroups = "tab",
args = {},
},
textures = {
Expand Down
Loading

0 comments on commit fa864f9

Please sign in to comment.