/trunk/PocketPlot/libs/AceGUI-3.0-SharedMediaWidgets
do |
local widgetType = "LSM30_Font" |
local widgetVersion = 11 |
local widgetVersion = 13 |
local contentFrameCache = {} |
local function ReturnSelf(self) |
do |
local widgetType = "LSM30_Sound" |
local widgetVersion = 11 |
local widgetVersion = 13 |
local contentFrameCache = {} |
local function ReturnSelf(self) |
do |
local widgetType = "LSM30_Statusbar" |
local widgetVersion = 11 |
local widgetVersion = 13 |
local contentFrameCache = {} |
local function ReturnSelf(self) |
do |
local widgetType = "LSM30_Border" |
local widgetVersion = 11 |
local widgetVersion = 13 |
local contentFrameCache = {} |
local function ReturnSelf(self) |
<Script file="StatusbarWidget.lua" /> |
<Script file="BorderWidget.lua" /> |
<Script file="BackgroundWidget.lua" /> |
</Ui> |
do |
local widgetType = "LSM30_Background" |
local widgetVersion = 11 |
local widgetVersion = 13 |
local contentFrameCache = {} |
local function ReturnSelf(self) |
if next(contentFrameCache) then |
frame = table.remove(contentFrameCache) |
else |
frame = CreateFrame("Button", nil, UIParent) |
frame = CreateFrame("Button", nil, UIParent, BackdropTemplateMixin and "BackdropTemplate") |
--frame:SetWidth(200) |
frame:SetHeight(18) |
frame:SetHighlightTexture([[Interface\QuestFrame\UI-QuestTitleHighlight]], "ADD") |
-- Widget created by Yssaril |
--[===[@debug@ |
local DataVersion = 9001 -- dev version always overwrites everything else :) |
--@end-debug@]===] |
--@non-debug@ |
local DataVersion = 56 |
--@end-non-debug@ |
local DataVersion = 9004 |
local AGSMW = LibStub:NewLibrary("AceGUISharedMediaWidgets-1.0", DataVersion) |
if not AGSMW then |
function AGSMW:GetBaseFrameWithWindow() |
local frame = self:GetBaseFrame() |
local displayButton = CreateFrame("Button", nil, frame) |
local displayButton = CreateFrame("Button", nil, frame, BackdropTemplateMixin and "BackdropTemplate") |
displayButton:SetHeight(42) |
displayButton:SetWidth(42) |
displayButton:SetPoint("TOPLEFT", frame, "TOPLEFT", 1, -2) |
self:SetHeight(UIParent:GetHeight()*2/5) |
self.slider:Show() |
self:SetScript("OnMouseWheel", OnMouseWheel) |
self.scrollframe:UpdateScrollChildRect() |
self.slider:SetMinMaxValues(0, self.contentframe:GetHeight()-self.scrollframe:GetHeight()) |
else |
self.scrollframe:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -14, 12) |
self:SetHeight(self.contentframe:GetHeight()+25) |
self.slider:Hide() |
self:SetScript("OnMouseWheel", nil) |
self.scrollframe:UpdateScrollChildRect() |
self.slider:SetMinMaxValues(0, 0) |
end |
self.contentframe:SetWidth(self.scrollframe:GetWidth()) |
if next(DropDownCache) then |
frame = table.remove(DropDownCache) |
else |
frame = CreateFrame("Frame", nil, UIParent) |
frame = CreateFrame("Frame", nil, UIParent, BackdropTemplateMixin and "BackdropTemplate") |
frame:SetClampedToScreen(true) |
frame:SetWidth(188) |
frame:SetBackdrop(frameBackdrop) |
frame.ClearFrames = ClearFrames |
frame.contentRepo = {} -- store all our frames in here so we can get rid of them later |
local slider = CreateFrame("Slider", nil, scrollframe) |
local slider = CreateFrame("Slider", nil, scrollframe, BackdropTemplateMixin and "BackdropTemplate") |
slider:SetOrientation("VERTICAL") |
slider:SetPoint("TOPRIGHT", frame, "TOPRIGHT", -14, -10) |
slider:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -14, 10) |