Mercurial > wow > askmrrobot
comparison Libs/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua @ 106:e635cd648e01 v49
7.2 update
| author | yellowfive |
|---|---|
| date | Tue, 28 Mar 2017 16:10:00 -0700 |
| parents | 01b63b8ed811 |
| children |
comparison
equal
deleted
inserted
replaced
| 105:3ce266c86bd3 | 106:e635cd648e01 |
|---|---|
| 1 --[[----------------------------------------------------------------------------- | 1 --[[----------------------------------------------------------------------------- |
| 2 ScrollFrame Container | 2 ScrollFrame Container |
| 3 Plain container that scrolls its content and doesn't grow in height. | 3 Plain container that scrolls its content and doesn't grow in height. |
| 4 -------------------------------------------------------------------------------]] | 4 -------------------------------------------------------------------------------]] |
| 5 local Type, Version = "ScrollFrame", 23 | 5 local Type, Version = "ScrollFrame", 24 |
| 6 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) | 6 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) |
| 7 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end | 7 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end |
| 8 | 8 |
| 9 -- Lua APIs | 9 -- Lua APIs |
| 10 local pairs, assert, type = pairs, assert, type | 10 local pairs, assert, type = pairs, assert, type |
| 174 -- set the script as the last step, so it doesn't fire yet | 174 -- set the script as the last step, so it doesn't fire yet |
| 175 scrollbar:SetScript("OnValueChanged", ScrollBar_OnScrollValueChanged) | 175 scrollbar:SetScript("OnValueChanged", ScrollBar_OnScrollValueChanged) |
| 176 | 176 |
| 177 local scrollbg = scrollbar:CreateTexture(nil, "BACKGROUND") | 177 local scrollbg = scrollbar:CreateTexture(nil, "BACKGROUND") |
| 178 scrollbg:SetAllPoints(scrollbar) | 178 scrollbg:SetAllPoints(scrollbar) |
| 179 scrollbg:SetTexture(0, 0, 0, 0.4) | 179 scrollbg:SetColorTexture(0, 0, 0, 0.4) |
| 180 | 180 |
| 181 --Container Support | 181 --Container Support |
| 182 local content = CreateFrame("Frame", nil, scrollframe) | 182 local content = CreateFrame("Frame", nil, scrollframe) |
| 183 content:SetPoint("TOPLEFT") | 183 content:SetPoint("TOPLEFT") |
| 184 content:SetPoint("TOPRIGHT") | 184 content:SetPoint("TOPRIGHT") |
