mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
test
This commit is contained in:
@@ -230,14 +230,14 @@ function E:UpdateMedia()
|
||||
self["media"].bordercolor = {border.r, border.g, border.b}
|
||||
|
||||
-- UnitFrame Border Color
|
||||
border = E.db["unitframe"].colors.borderColor
|
||||
--[[ border = E.db["unitframe"].colors.borderColor
|
||||
if self:CheckClassColor(border.r, border.g, border.b) then
|
||||
local classColor = E.myclass == "PRIEST" and E.PriestColors or (CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[E.myclass] or RAID_CLASS_COLORS[E.myclass])
|
||||
E.db["unitframe"].colors.borderColor.r = classColor.r
|
||||
E.db["unitframe"].colors.borderColor.g = classColor.g
|
||||
E.db["unitframe"].colors.borderColor.b = classColor.b
|
||||
end
|
||||
self["media"].unitframeBorderColor = {border.r, border.g, border.b}
|
||||
self["media"].unitframeBorderColor = {border.r, border.g, border.b}]]
|
||||
|
||||
-- Backdrop Color
|
||||
self["media"].backdropcolor = E:GetColorTable(self.db["general"].backdropcolor)
|
||||
|
||||
@@ -60,13 +60,7 @@ function E:UIScale(event)
|
||||
self.eyefinity = width;
|
||||
end
|
||||
|
||||
for screenwidth, screenheight in string.gfind(GetCVar("gxResolution"), "(.+)x(.+)") do
|
||||
self.mult = 768/screenheight/scale
|
||||
|
||||
self.UIParent:SetWidth(screenwidth)
|
||||
self.UIParent:SetHeight(screenheight)
|
||||
end
|
||||
--self.mult = 1;
|
||||
self.mult = 768/match(GetCVar("gxResolution"), "%d+x(%d+)")/scale;
|
||||
self.Spacing = self.PixelMode and 0 or self.mult;
|
||||
self.Border = (self.PixelMode and self.mult or self.mult*2);
|
||||
--Set UIScale, NOTE: SetCVar for UIScale can cause taints so only do this when we need to..
|
||||
@@ -106,8 +100,8 @@ function E:UIScale(event)
|
||||
]]
|
||||
--self.UIParent:SetSize(UIParent:GetWidth() - 250, UIParent:GetHeight() - 250);
|
||||
|
||||
--self.UIParent:SetWidth(UIParent:GetWidth());
|
||||
--self.UIParent:SetHeight(UIParent:GetHeight());
|
||||
self.UIParent:SetWidth(GetScreenWidth());
|
||||
self.UIParent:SetHeight(GetScreenHeight());
|
||||
end
|
||||
|
||||
self.UIParent:ClearAllPoints();
|
||||
|
||||
Reference in New Issue
Block a user