cleanup ace3

This commit is contained in:
Pinya
2018-07-22 17:15:08 +03:00
parent 14baf867a4
commit 5268beee39
6 changed files with 17 additions and 18 deletions
@@ -16,32 +16,32 @@ local CreateFrame = CreateFrame
Scripts
-------------------------------------------------------------------------------]]
local function OnShow(frame)
frame.obj:Fire("OnShow")
local function OnShow()
this.obj:Fire("OnShow")
end
local function OnHide(frame)
frame.obj:Fire("OnHide")
local function OnHide()
this.obj:Fire("OnHide")
end
--[[-----------------------------------------------------------------------------
Support functions
-------------------------------------------------------------------------------]]
local function okay(frame)
frame.obj:Fire("okay")
local function okay()
this.obj:Fire("okay")
end
local function cancel(frame)
frame.obj:Fire("cancel")
local function cancel()
this.obj:Fire("cancel")
end
local function default(frame)
frame.obj:Fire("default")
local function default()
this.obj:Fire("default")
end
local function refresh(frame)
frame.obj:Fire("refresh")
local function refresh()
this.obj:Fire("refresh")
end
--[[-----------------------------------------------------------------------------
@@ -307,7 +307,6 @@ local methods = {
height = (parent.content.height or 0) + (offset or 0) or height
self.frame.height = (parent.content.height or 0) + (offset or 0)
end
--self.frame:SetHeight(height)
local content = self.content
local contentheight = height - (self.borderoffset + 23)
@@ -717,7 +717,6 @@ local function Constructor()
--Container Support
local content = CreateFrame("Frame", nil, border)
content:SetPoint("TOPLEFT", 10, -10)
--content:SetPoint("BOTTOMRIGHT", -10, 10)
local widget = {
frame = frame,
@@ -104,7 +104,6 @@ do
end
child:ClearAllPoints()
child:SetPoint("TOPLEFT", frame, "TOPLEFT", 0, offset)
-- child:SetPoint("TOPRIGHT", frame, "TOPRIGHT", self.slider:IsShown() and -12 or 0, offset)
status.offset = offset
status.scrollvalue = value
end
@@ -148,7 +147,6 @@ do
if value < 1000 then
child:ClearAllPoints()
child:SetPoint("TOPLEFT", frame, "TOPLEFT", 0, offset)
-- child:SetPoint("TOPRIGHT", frame, "TOPRIGHT", -12, offset)
status.offset = offset
end
end
@@ -324,7 +322,6 @@ do
scrollFrame:SetWidth(defaultWidth - 12)
scrollFrame:SetHeight(self.maxHeight - 24)
scrollFrame:SetPoint("TOPLEFT", frame, "TOPLEFT", 6, -12)
-- scrollFrame:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -6, 12)
scrollFrame:EnableMouseWheel(true)
scrollFrame:SetScript("OnMouseWheel", OnMouseWheel)
scrollFrame:SetScript("OnSizeChanged", OnSizeChanged)
@@ -333,7 +330,6 @@ do
itemFrame:SetWidth(defaultWidth - 12)
itemFrame:SetPoint("TOPLEFT", scrollFrame, "TOPLEFT", 0, 0)
-- itemFrame:SetPoint("TOPRIGHT", scrollFrame, "TOPRIGHT", -12, 0)
itemFrame:SetHeight(400)
itemFrame:SetToplevel(true)
itemFrame:SetFrameStrata("FULLSCREEN_DIALOG")
@@ -1,7 +1,9 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<!-- Container -->
<!--
<Script file="AceGUIContainer-BlizOptionsGroup.lua"/>
-->
<Script file="AceGUIContainer-DropDownGroup.lua"/>
<Script file="AceGUIContainer-Frame.lua"/>
<Script file="AceGUIContainer-InlineGroup.lua"/>