Mercurial > wow > askmrrobot
comparison Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.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 ColorPicker Widget | 2 ColorPicker Widget |
3 -------------------------------------------------------------------------------]] | 3 -------------------------------------------------------------------------------]] |
4 local Type, Version = "ColorPicker", 22 | 4 local Type, Version = "ColorPicker", 23 |
5 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) | 5 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) |
6 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end | 6 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end |
7 | 7 |
8 -- Lua APIs | 8 -- Lua APIs |
9 local pairs = pairs | 9 local pairs = pairs |
144 colorSwatch:SetPoint("LEFT") | 144 colorSwatch:SetPoint("LEFT") |
145 | 145 |
146 local texture = frame:CreateTexture(nil, "BACKGROUND") | 146 local texture = frame:CreateTexture(nil, "BACKGROUND") |
147 texture:SetWidth(16) | 147 texture:SetWidth(16) |
148 texture:SetHeight(16) | 148 texture:SetHeight(16) |
149 texture:SetTexture(1, 1, 1) | 149 texture:SetColorTexture(1, 1, 1) |
150 texture:SetPoint("CENTER", colorSwatch) | 150 texture:SetPoint("CENTER", colorSwatch) |
151 texture:Show() | 151 texture:Show() |
152 | 152 |
153 local checkers = frame:CreateTexture(nil, "BACKGROUND") | 153 local checkers = frame:CreateTexture(nil, "BACKGROUND") |
154 checkers:SetWidth(14) | 154 checkers:SetWidth(14) |