Skip to content

Commit

Permalink
support for shadowlands, backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Oct 23, 2020
1 parent 3e7e9d2 commit c193f51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ElvUIDev/Widgets/EditBox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ local AddonName, Addon = ...
local ElvUIDev = Addon.ElvUIDev

local CreateFrame = CreateFrame
local BackdropTemplateMixin = BackdropTemplateMixin
local GameFontHighlight = GameFontHighlight
local GameFontNormal = GameFontNormal

local EditBox = ElvUIDev:RegisterWidget("EditBox")

function EditBox:Create(parent)
local frame = CreateFrame("EditBox", nil, parent)
local frame = CreateFrame("EditBox", nil, parent, BackdropTemplateMixin and "BackdropTemplate" or nil)
frame:SetSize(200, 26)
frame:SetJustifyH("Left")
frame:SetAutoFocus(false)
Expand Down
3 changes: 2 additions & 1 deletion ElvUIDev/Widgets/Table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ local AddonName, Addon = ...
local ElvUIDev = Addon.ElvUIDev

local CreateFrame = CreateFrame
local BackdropTemplateMixin = BackdropTemplateMixin

local Table = ElvUIDev:RegisterWidget("Table")

function Table:Create(parent)
self.frame = CreateFrame("Frame", nil, parent or UIParent)
self.frame = CreateFrame("Frame", nil, parent or UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil)
self.frame:SetPoint("TopLeft", parent, "TopLeft", 0, 0)
self.frame:SetPoint("BottomRight", parent, "BottomRight", 0, 0)
self.frame:SetSize(800, 600)
Expand Down

0 comments on commit c193f51

Please sign in to comment.