Commit 31d83e7f authored by fgprodigal's avatar fgprodigal

Update for 9.0

parent 380d9c14
......@@ -71,7 +71,7 @@ end
for textFormat in pairs(formattedTextStyles) do
local tagTextFormat = strlower(gsub(textFormat, '_', '-'))
ElvUF.Tags.Events[format('rayui-health:%s', tagTextFormat)] = 'UNIT_HEALTH_FREQUENT UNIT_MAXHEALTH UNIT_CONNECTION PLAYER_FLAGS_CHANGED'
ElvUF.Tags.Events[format('rayui-health:%s', tagTextFormat)] = 'UNIT_HEALTH UNIT_MAXHEALTH UNIT_CONNECTION PLAYER_FLAGS_CHANGED'
ElvUF.Tags.Methods[format('rayui-health:%s', tagTextFormat)] = function(unit)
local status = UnitIsDead(unit) and L["Dead"] or UnitIsGhost(unit) and L["Ghost"] or not UnitIsConnected(unit) and L["Offline"]
if (status) then
......@@ -81,7 +81,7 @@ for textFormat in pairs(formattedTextStyles) do
end
end
ElvUF.Tags.Events[format('rayui-health:%s-nostatus', tagTextFormat)] = 'UNIT_HEALTH_FREQUENT UNIT_MAXHEALTH'
ElvUF.Tags.Events[format('rayui-health:%s-nostatus', tagTextFormat)] = 'UNIT_HEALTH UNIT_MAXHEALTH'
ElvUF.Tags.Methods[format('rayui-health:%s-nostatus', tagTextFormat)] = function(unit)
return GetFormattedText(textFormat, UnitHealth(unit), UnitHealthMax(unit))
end
......@@ -96,7 +96,7 @@ for textFormat in pairs(formattedTextStyles) do
end
for _, textFormat in pairs({"veryshort", "short", "medium", "long"}) do
ElvUF.Tags.Events[format('rayui-health:deficit:name-%s', textFormat)] = 'UNIT_HEALTH_FREQUENT UNIT_MAXHEALTH UNIT_CONNECTION PLAYER_FLAGS_CHANGED UNIT_NAME_UPDATE'
ElvUF.Tags.Events[format('rayui-health:deficit:name-%s', textFormat)] = 'UNIT_HEALTH UNIT_MAXHEALTH UNIT_CONNECTION PLAYER_FLAGS_CHANGED UNIT_NAME_UPDATE'
ElvUF.Tags.Methods[format('rayui-health:deficit:name-%s', textFormat)] = function(unit)
local status = UnitIsDead(unit) and L["Dead"] or UnitIsGhost(unit) and L["Ghost"] or not UnitIsConnected(unit) and L["Offline"]
if (status) then
......@@ -114,7 +114,7 @@ for _, textFormat in pairs({"veryshort", "short", "medium", "long"}) do
end
end
ElvUF.Tags.Events[format('rayui-health:deficit-nostatus:name-%s', textFormat)] = 'UNIT_HEALTH_FREQUENT UNIT_MAXHEALTH UNIT_NAME_UPDATE'
ElvUF.Tags.Events[format('rayui-health:deficit-nostatus:name-%s', textFormat)] = 'UNIT_HEALTH UNIT_MAXHEALTH UNIT_NAME_UPDATE'
ElvUF.Tags.Methods[format('rayui-health:deficit-nostatus:name-%s', textFormat)] = function(unit)
local cur = UnitHealth(unit)
local max = UnitHealthMax(unit)
......
## Interface: 80300
## Interface: 90001
## Author: fgprodigal
## Version: 1.13
## Version: 2.00
## Title: |cff1784d1ElvUI|r |cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r
## RequiredDeps: ElvUI, ElvUI_MerathilisUI
## DefaultState: Enabled
......@@ -8,7 +8,7 @@
## SavedVariablesPerCharacter: RayUIDataPerChar
## OptionalDeps: SharedMedia, AddOnSkins, ProjectAzilroka
## X-Credits: Benik, Blazeflack, Azilroka, Simpy, NihilisticPandemonium, Darth Predator, Merathilis, siweia, Solor, Elv & all AddOn Authors who inspired me.
## X-ElvVersion: 11.46
## X-ElvVersion: 12.00
## X-Curse-Project-ID: 349794
......
local RayUI, E, L, V, P, G = unpack(select(2, ...))
local MER = ElvUI_MerathilisUI[1]
local MERL = MER:GetModule("mUILayout")
local MERL = MER:GetModule("MER_Layout")
local module = RayUI:NewModule("RayUILayout", "AceHook-3.0", "AceEvent-3.0")
local AB = E:GetModule("ActionBars")
local CH = E:GetModule("Chat")
......
......@@ -345,7 +345,7 @@ function FMC:CreateButton(parent, width, height, point, relativeto, point2, xOfs
end
function FMC:CreateMenu()
self.MainPanel = CreateFrame("Frame", nil, E.UIParent)
self.MainPanel = CreateFrame("Frame", nil, E.UIParent, 'BackdropTemplate')
self.MainPanel:SetTemplate('Transparent')
self.MainPanel:Width(120)
self.MainPanel:Height(260)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment