-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from mBlinkii/dev
Ver. 2.94
- Loading branch information
Showing
22 changed files
with
244 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
local ElvUI_EltreumUI, E, L, V, P, G = unpack(select(2, ...)) | ||
|
||
|
||
local E, _, V, P, G = unpack(ElvUI) | ||
local EP = LibStub('LibElvUIPlugin-1.0') | ||
local addon, Engine = ... | ||
local _G = _G | ||
local ElvUI_EltreumUI = E:NewModule(addon, 'AceHook-3.0', 'AceEvent-3.0', 'AceTimer-3.0', 'AceConsole-3.0') | ||
local L = E.Libs.ACL:GetLocale("ElvUI", E.global.general.locale) | ||
local GetAddOnMetadata = _G.GetAddOnMetadata | ||
|
||
Engine[1] = ElvUI_EltreumUI | ||
Engine[2] = E --ElvUI Engine | ||
Engine[3] = L --ElvUI Locales | ||
Engine[4] = V --ElvUI PrivateDB | ||
Engine[5] = P --ElvUI ProfileDB | ||
Engine[6] = G --ElvUI GlobalDB | ||
_G[addon] = Engine | ||
|
||
|
||
|
||
|
||
local E, L, V, P, G = unpack(ElvUI) | ||
local mPlugin = "mMediaTag" | ||
local mMT = E:NewModule(mPlugin, "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0") | ||
local EP = _G.LibStub("LibElvUIPlugin-1.0") | ||
local addon, ns = ... | ||
|
||
--Variables | ||
local wipe = table.wipe | ||
ns.mName = "|CFF8E44ADm|r|CFF2ECC71Media|r|CFF3498DBTag|r" | ||
ns.mNameClassic = "|CFF8E44ADm|r|CFF2ECC71Media|r|CFF3498DBTag|r |cffff0066Classic|r" | ||
ns.mColor1 = "|CFFFFFFFF" -- white | ||
ns.mColor2 = "|CFFF7DC6F" -- yellow | ||
ns.mColor3 = "|CFF8E44AD" -- purple | ||
ns.mColor4 = "|CFFFE7B2C" -- orange | ||
ns.mColor5 = "|CFFE74C3C" -- red | ||
ns.mColor6 = "|CFF58D68D" -- green | ||
ns.mColor7 = "|CFF3498DB" -- blue | ||
ns.mColor8 = "|CFFB2BABB" -- gray | ||
ns.normal = "|CFF82E0AA" -- nomral | ||
ns.Heroic = "|CFF85C1E9 " -- HC | ||
ns.Mythic = "|CFFBB8FCE" -- Mythic | ||
ns.mVersion = GetAddOnMetadata(addon, "Version") -- addon version | ||
ns.LeftButtonIcon = format("|T%s:16:16:0:0:32:32|t", "Interface\\AddOns\\ElvUI_mMediaTag\\media\\misc\\mouse_l.tga") -- maus icon für ttip | ||
ns.RightButtonIcon = format("|T%s:16:16:0:0:32:32|t", "Interface\\AddOns\\ElvUI_mMediaTag\\media\\misc\\mouse_r.tga") -- maus icon für ttip | ||
ns.MiddleButtonIcon = format("|T%s:16:16:0:0:32:32|t", "Interface\\AddOns\\ElvUI_mMediaTag\\media\\misc\\mouse_m.tga") -- maus icon für ttip | ||
ns.Config = {} -- addon einstellung werden hier gesammelt | ||
|
||
-- einstellungen in elvui eintragen | ||
function mMT:AddOptions() | ||
for _, func in pairs(ns.Config) do | ||
func() | ||
end | ||
end | ||
|
||
function mMT:Check_ElvUI_EltreumUI() | ||
return (IsAddOnLoaded("ElvUI_EltreumUI") and E.db.ElvUI_EltreumUI.unitframes.gradientmode.enable) | ||
end | ||
|
||
-- addon laden | ||
function mMT:Initialize() | ||
if E.db[mPlugin].mCustomClassColors.enable and not mMT:Check_ElvUI_EltreumUI() then | ||
mMT:SetCustomColors() | ||
end | ||
|
||
if E.db[mPlugin].mCustomClassColors.emediaenable then | ||
mMT:SetElvUIMediaColor() | ||
end | ||
|
||
mMT:mMisc() -- module laden | ||
|
||
if E.Retail then | ||
if E.db[mPlugin].mHealthmarker.enable or E.db[mPlugin].mExecutemarker.enable then | ||
mMT:StartNameplateTools() | ||
end | ||
|
||
if E.db[mPlugin].mRoleSymbols.enable then | ||
mMT:RegisterEvent("PLAYER_ENTERING_WORLD") -- events registrieren | ||
end | ||
|
||
if E.db[mPlugin].mExecutemarker.auto or E.db[mPlugin].mCastbar.enable then | ||
mMT:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED") -- events registrieren | ||
end | ||
|
||
if E.db[mPlugin].mInstanceDifficulty.enable then | ||
mMT:RegisterEvent("UPDATE_INSTANCE_INFO") | ||
mMT:RegisterEvent("CHALLENGE_MODE_START") | ||
mMT:SetupInstanceDifficulty() | ||
end | ||
end | ||
|
||
EP:RegisterPlugin(addon, mMT:AddOptions()) -- einstellungen in elvui eintragen | ||
ns.Config = wipe(ns.Config) -- tabele löschen | ||
end | ||
|
||
function mMT:PLAYER_ENTERING_WORLD() | ||
if E.db[mPlugin] then | ||
if E.db[mPlugin].mRoleSymbols.enable then | ||
mMT:mStartRoleSmbols() -- rolensymbole ändern | ||
end | ||
end | ||
end | ||
|
||
function mMT:ACTIVE_TALENT_GROUP_CHANGED() | ||
if E.db[mPlugin].mCastbar.enable then | ||
mMT:mUpdateKick() -- castbar kick/ kick auf cd | ||
end | ||
|
||
if E.db[mPlugin].mExecutemarker.auto then | ||
mMT:updateAutoRange() | ||
end | ||
end | ||
|
||
function mMT:UPDATE_INSTANCE_INFO() | ||
mMT:UpdateText() | ||
end | ||
|
||
function mMT:CHALLENGE_MODE_START() | ||
mMT:UpdateText() | ||
end | ||
|
||
E:RegisterModule(mMT:GetName()) -- addon in elvui registrieren |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -962,4 +962,4 @@ if E.Retail then | |
mInsert(ns.Config, OptionsCore) | ||
else | ||
mInsert(ns.Config, OptionsCoreClassic) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local mMT, E, L, V, P, G = unpack(select(2, ...)) | ||
|
||
P["mMT"] = { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<Ui xmlns="http://www.blizzard.com/wow/ui/"> | ||
<Script file="defaultSettings.lua"/> | ||
<Script file="main.lua"/> | ||
</Ui> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
local E, _, V, P, G = unpack(ElvUI) | ||
local EP = LibStub('LibElvUIPlugin-1.0') | ||
local L = E.Libs.ACL:GetLocale("ElvUI", E.global.general.locale) | ||
|
||
-- Addon Name and Namespace | ||
local addonName, addon = ... | ||
|
||
local mMT = E:NewModule(addonName, 'AceHook-3.0', 'AceEvent-3.0', 'AceTimer-3.0', 'AceConsole-3.0') | ||
|
||
--Cache Lua / WoW API | ||
local _G = _G | ||
local collectgarbage = collectgarbage | ||
local format = format | ||
local hooksecurefunc = hooksecurefunc | ||
local next = next | ||
local print = print | ||
local tonumber = tonumber | ||
|
||
local GetAddOnMetadata = _G.GetAddOnMetadata | ||
|
||
addon[1] = mMT | ||
addon[2] = E --ElvUI Engine | ||
addon[3] = L --ElvUI Locales | ||
addon[4] = V --ElvUI PrivateDB | ||
addon[5] = P --ElvUI ProfileDB | ||
addon[6] = G --ElvUI GlobalDB | ||
_G[addonName] = addon | ||
|
||
--Constants | ||
mMT.Version = GetAddOnMetadata(addonName, 'Version') | ||
mMT.Name = "|CFF6559F1m|r|CFF7A4DEFM|r|CFF8845ECe|r|CFFA037E9d|r|CFFA435E8i|r|CFFB32DE6a|r|CFFBC26E5T|r|CFFCB1EE3a|r|CFFDD14E0g|r" | ||
mMT.Config = {} | ||
|
||
-- Load Settings | ||
function mMT:addSettings() | ||
for _, func in pairs(mMT.Config) do | ||
func() | ||
end | ||
end | ||
|
||
-- Initialize Addon | ||
function mMT:Initialize() | ||
EP:RegisterPlugin(addonName, mMT:addSettings()) | ||
print(E.Options.name) | ||
|
||
if E.Retail then | ||
print(E.Options.name) | ||
end | ||
|
||
E:Delay(1, collectgarbage, "collect") | ||
end | ||
|
||
function mMT:PLAYER_ENTERING_WORLD() | ||
|
||
end | ||
|
||
function mMT:ACTIVE_TALENT_GROUP_CHANGED() | ||
|
||
end | ||
|
||
function mMT:UPDATE_INSTANCE_INFO() | ||
|
||
end | ||
|
||
function mMT:CHALLENGE_MODE_START() | ||
|
||
end | ||
|
||
E:RegisterModule(mMT:GetName()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.