mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
cleanup ace3
This commit is contained in:
@@ -1956,6 +1956,8 @@ end
|
||||
-- @param ... The path in the options table to feed into the interface options panel.
|
||||
-- @return The reference to the frame registered into the Interface Options.
|
||||
function AceConfigDialog:AddToBlizOptions(appName, name, parent, ...)
|
||||
error("Blizzard InterfaceOptions not available", 2)
|
||||
--[[
|
||||
local BlizOptions = AceConfigDialog.BlizOptions
|
||||
|
||||
local key = appName
|
||||
@@ -1988,4 +1990,5 @@ function AceConfigDialog:AddToBlizOptions(appName, name, parent, ...)
|
||||
else
|
||||
error(format("%s has already been added to the Blizzard Options Window with the given path", appName), 2)
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user