Mercurial > wow > pvpscan
comparison Libs/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua @ 18:a0dcdcaec1ea v7.3.0.018
- toc update.
- libs update.
| author | Tercio |
|---|---|
| date | Tue, 17 Oct 2017 10:02:01 -0200 |
| parents | ce416064d8a1 |
| children |
comparison
equal
deleted
inserted
replaced
| 17:da84a5064a5a | 18:a0dcdcaec1ea |
|---|---|
| 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") |
