Mercurial > wow > askmrrobot
comparison Libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua @ 124:e31b02b24488
Updated for 8.0 pre-patch and BfA.
author | yellowfive |
---|---|
date | Tue, 17 Jul 2018 09:57:39 -0700 |
parents | 01b63b8ed811 |
children |
comparison
equal
deleted
inserted
replaced
123:7a6364917f86 | 124:e31b02b24488 |
---|---|
1 --[[----------------------------------------------------------------------------- | 1 --[[----------------------------------------------------------------------------- |
2 Slider Widget | 2 Slider Widget |
3 Graphical Slider, like, for Range values. | 3 Graphical Slider, like, for Range values. |
4 -------------------------------------------------------------------------------]] | 4 -------------------------------------------------------------------------------]] |
5 local Type, Version = "Slider", 21 | 5 local Type, Version = "Slider", 22 |
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 min, max, floor = math.min, math.max, math.floor | 10 local min, max, floor = math.min, math.max, math.floor |
106 else | 106 else |
107 value = tonumber(value) | 107 value = tonumber(value) |
108 end | 108 end |
109 | 109 |
110 if value then | 110 if value then |
111 PlaySound("igMainMenuOptionCheckBoxOn") | 111 PlaySound(856) -- SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON |
112 self.slider:SetValue(value) | 112 self.slider:SetValue(value) |
113 self:Fire("OnMouseUp", value) | 113 self:Fire("OnMouseUp", value) |
114 end | 114 end |
115 end | 115 end |
116 | 116 |