Update general layout of WeakAurasOptions (#8)
* from retail * (fix) improve pixel snapping by reapplying borders * update spinbox texture * add icons, loaded, standby, unloaded behavior from retail * further use of ported inputbox and cleanup to ported frames * move templates into WeakAuras and upversion
This commit is contained in:
@@ -2,7 +2,7 @@ if not WeakAuras.IsCorrectVersion() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
local pairs, rad = pairs, rad
|
||||
local rad = rad
|
||||
|
||||
-- WoW APIs
|
||||
local CreateFrame = CreateFrame
|
||||
@@ -50,14 +50,14 @@ local function ConstructModelPicker(frame)
|
||||
end
|
||||
end
|
||||
|
||||
local group = AceGUI:Create("InlineGroup");
|
||||
local group = AceGUI:Create("SimpleGroup");
|
||||
group.frame:SetParent(frame);
|
||||
group.frame:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -17, 87);
|
||||
group.frame:SetPoint("TOPLEFT", frame, "TOPLEFT", 17, -15);
|
||||
group.frame:SetPoint("TOPLEFT", frame, "TOPLEFT", 17, -63);
|
||||
group.frame:Hide();
|
||||
group:SetLayout("flow");
|
||||
|
||||
local filterInput = CreateFrame("editbox", "WeakAurasModelFilterInput", group.frame, "InputBoxTemplate")
|
||||
local filterInput = CreateFrame("editbox", "WeakAurasModelFilterInput", group.frame, "WA_InputBoxTemplate")
|
||||
filterInput:SetAutoFocus(false)
|
||||
filterInput:SetTextInsets(16, 20, 0, 0)
|
||||
|
||||
@@ -123,8 +123,7 @@ local function ConstructModelPicker(frame)
|
||||
group.modelTree:RefreshTree()
|
||||
end)
|
||||
filterInput:SetHeight(15)
|
||||
filterInput:SetPoint("TOP", group.frame, "TOP", 0, 1)
|
||||
filterInput:SetPoint("LEFT", group.frame, "LEFT", 7, 0)
|
||||
filterInput:SetPoint("BOTTOMRIGHT", group.frame, "TOPRIGHT", -3, 5)
|
||||
filterInput:SetWidth(200)
|
||||
filterInput:SetFont(STANDARD_TEXT_FONT, 10)
|
||||
group.frame.filterInput = filterInput
|
||||
@@ -355,7 +354,7 @@ local function ConstructModelPicker(frame)
|
||||
|
||||
local cancel = CreateFrame("Button", nil, group.frame, "UIPanelButtonTemplate");
|
||||
cancel:SetScript("OnClick", group.CancelClose);
|
||||
cancel:SetPoint("bottomright", frame, "bottomright", -27, 16);
|
||||
cancel:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -27, 20);
|
||||
cancel:SetHeight(20);
|
||||
cancel:SetWidth(100);
|
||||
cancel:SetText(L["Cancel"]);
|
||||
|
||||
Reference in New Issue
Block a user