local overlayColorCharm = Settings.OverlayColorCharm;
local overlayColorAlert = Settings.OverlayColorAlert;
local powerColors = Settings.PowerColors;
-local width = 10;
+local width = Settings.Width;
local M = {};
OmaRFEvents = M;
function M.UnitEvent(self, event)
eventFuncs[event](self);
end
-
-function M.LoadChar()
- width = Settings.Character.Width;
-end
local shieldhlColor = Settings.ShieldhlColor;
local healpredColor = Settings.HealpredColor;
local healabsorbColor = Settings.HealabsorbColor;
+local width, height = Settings.Width, Settings.Height;
-- placeholders with visible values when error happens
local positions = {};
-local width, height = 10, 10;
local anchorX, anchorY = 10, 10;
local attributes = {};
end
local function showTooltip(frame)
- GameTooltip_SetDefaultAnchor(GameTooltip, PlayerFrame);
+ GameTooltip_SetDefaultAnchor(GameTooltip, frame);
GameTooltip:SetUnit(frame:GetAttribute("unit"));
end
end
local function loadCharSettings()
- width, height = Settings.Character.Width, Settings.Character.Height;
anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY;
attributes = Settings.Character.Clickheal;
positions = Settings.Character.Positions;
CFrame:SetScript("OnEvent", function(self, event, addon)
if event == "PLAYER_LOGIN" then
OmaRFLoadChar();
- OmaRFEvents.LoadChar();
OmaRFIndicators.LoadChar();
hideBlizzardRaid();
initialize();
-- character specific settings
local charDefaults = {
Positions = {"TOPRIGHT", "BOTTOMLEFT"},
- Width = 80,
- Height = 40,
AnchorX = 0,
AnchorY = -330,
WatchedAuras = {
["Stormreaver"] = {
["Vildan"] = {
Positions = {"TOPRIGHT", "BOTTOMLEFT"},
- Width = 80,
- Height = 40,
AnchorX = 0,
AnchorY = -330,
WatchedAuras = {
},
["Gedren"] = {
Positions = {"TOPLEFT", "TOPRIGHT", "BOTTOMLEFT"},
- Width = 80,
- Height = 40,
AnchorX = 0,
AnchorY = -330,
WatchedAuras = {
-- account-wide settings
local settings = {
+ Width = 80,
+ Height = 40,
IndSize = 14,
BaseColor = {0, 0, 0},
BgColor = {0.7, 0.7, 0.7},
local overlayColorCharm = Settings.OverlayColorCharm;
local overlayColorAlert = Settings.OverlayColorAlert;
local powerColors = Settings.PowerColors;
-local width = 10;
+local width = Settings.Width;
local M = {};
OmaUFEvents = M;
function M.UnitEvent(self, event, arg1)
eventFuncs[event](self, arg1);
end
-
-function M.LoadChar()
- width = Settings.Character.Width;
-end
-- configurable settings
-- character specific settings
local charDefaults = {
- Width = 80,
- Height = 40,
AnchorX = 0,
AnchorY = -330,
Clickheal = {
local chars = {
["Stormreaver"] = {
["Vildan"] = {
- Width = 160,
- Height = 50,
AnchorX = 0,
AnchorY = -330,
Clickheal = {
},
},
["Gedren"] = {
- Width = 160,
- Height = 50,
AnchorX = 0,
AnchorY = -330,
Clickheal = {
-- account-wide settings
local settings = {
+ Width = 160,
+ Height = 50,
BaseColor = {0, 0, 0, 0.5},
BgColor = {0.1, 0.1, 0.1, 0.4},
HealthColor = {0.5, 0.5, 0.5},
[PowerTypeEnergy] = {1, 0.8, 0},
[PowerTypeRunic] = {0.8, 0, 0.2},
},
- MajorAuras = {
- -- Antorus
- ["Psychic Assault"] = true,
- ["Everburning Flames"] = true,
- ["Corrupt"] = true,
- ["Sleep Canister"] = true,
- ["Misery"] = true,
- ["Necrotic Embrace"] = true,
- ["Fulminating Pulse"] = true,
- ["Chilled Blood"] = true,
- ["Soulblight"] = true,
- ["Soulburst"] = true,
- ["Soulbomb"] = true,
- -- Proving Grounds for testing
- ["Aqua Bomb"] = true,
- -- Mythic+
- [209858] = true, -- Necrotic Rot
- [240559] = true, -- Grievous Wound
- [240443] = true, -- Burst
- },
};
OmaUFSettings = settings;
-- watch to not remove mana entry
local shieldhlColor = Settings.ShieldhlColor;
local healpredColor = Settings.HealpredColor;
local healabsorbColor = Settings.HealabsorbColor;
+local width, height = Settings.Width, Settings.Height;
-- placeholders with visible values when error happens
-local width, height = 10, 10;
local anchorX, anchorY = 10, 10;
local attributes = {};
end
local function showTooltip(frame)
- GameTooltip_SetDefaultAnchor(GameTooltip, PlayerFrame);
+ GameTooltip_SetDefaultAnchor(GameTooltip, frame);
GameTooltip:SetUnit(frame:GetAttribute("unit"));
end
end
local function loadCharSettings()
- width, height = Settings.Character.Width, Settings.Character.Height;
anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY;
attributes = Settings.Character.Clickheal;
end
UnitFrames:SetScript("OnEvent", function(self, event)
if event == "PLAYER_LOGIN" then
OmaUFLoadChar();
- OmaUFEvents.LoadChar();
hideBlizzardFrames();
initialize();
end