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:
@@ -20,7 +20,7 @@ local spellCache = WeakAuras.spellCache
|
||||
local function ConstructIconPicker(frame)
|
||||
local group = AceGUI:Create("InlineGroup");
|
||||
group.frame:SetParent(frame);
|
||||
group.frame:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -17, 30); -- 12
|
||||
group.frame:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -17, 46);
|
||||
group.frame:SetPoint("TOPLEFT", frame, "TOPLEFT", 17, -50);
|
||||
group.frame:Hide();
|
||||
group:SetLayout("fill");
|
||||
@@ -95,23 +95,21 @@ local function ConstructIconPicker(frame)
|
||||
end
|
||||
end
|
||||
|
||||
local input = CreateFrame("EDITBOX", "WeakAurasIconFilterInput", group.frame, "InputBoxTemplate");
|
||||
local input = CreateFrame("Editbox", "WeakAurasIconFilterInput", group.frame, "WA_InputBoxTemplate");
|
||||
input:SetScript("OnTextChanged", function(...) iconPickerFill(input:GetText(), false); end);
|
||||
input:SetScript("OnEnterPressed", function(...) iconPickerFill(input:GetText(), true); end);
|
||||
input:SetScript("OnEscapePressed", function(...) input:SetText(""); iconPickerFill(input:GetText(), true); end);
|
||||
input:SetWidth(170);
|
||||
input:SetWidth(200);
|
||||
input:SetHeight(15);
|
||||
input:SetPoint("BOTTOMRIGHT", group.frame, "TOPRIGHT", -12, -5);
|
||||
|
||||
local inputLabel = input:CreateFontString(nil, "OVERLAY", "GameFontNormal");
|
||||
inputLabel:SetText(L["Search"]);
|
||||
inputLabel:SetJustifyH("RIGHT");
|
||||
inputLabel:SetPoint("BOTTOMLEFT", input, "TOPLEFT", 0, 5);
|
||||
input:SetFont(STANDARD_TEXT_FONT, 10)
|
||||
input:SetPoint("BOTTOMRIGHT", group.frame, "TOPRIGHT", -3, -10);
|
||||
|
||||
local icon = AceGUI:Create("WeakAurasIconButton");
|
||||
icon.frame:Disable();
|
||||
icon.frame:SetParent(group.frame);
|
||||
icon.frame:SetPoint("BOTTOMLEFT", group.frame, "TOPLEFT", 15, -15);
|
||||
icon.frame:SetPoint("BOTTOMLEFT", group.frame, "TOPLEFT", 44, -15);
|
||||
icon:SetHeight(36)
|
||||
icon:SetWidth(36)
|
||||
|
||||
local iconLabel = input:CreateFontString(nil, "OVERLAY", "GameFontNormalHuge");
|
||||
iconLabel:SetNonSpaceWrap("true");
|
||||
@@ -194,7 +192,7 @@ local function ConstructIconPicker(frame)
|
||||
|
||||
local cancel = CreateFrame("Button", nil, group.frame, "UIPanelButtonTemplate");
|
||||
cancel:SetScript("OnClick", group.CancelClose);
|
||||
cancel:SetPoint("bottomright", frame, "bottomright", -27, 11);
|
||||
cancel:SetPoint("BOTTOMRIGHT", -20, -24)
|
||||
cancel:SetHeight(20);
|
||||
cancel:SetWidth(100);
|
||||
cancel:SetText(L["Cancel"]);
|
||||
|
||||
Reference in New Issue
Block a user