Mercurial > wow > askmrrobot
comparison Libs/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.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 TabGroup Container | 2 TabGroup Container |
3 Container that uses tabs on top to switch between groups. | 3 Container that uses tabs on top to switch between groups. |
4 -------------------------------------------------------------------------------]] | 4 -------------------------------------------------------------------------------]] |
5 local Type, Version = "TabGroup", 35 | 5 local Type, Version = "TabGroup", 36 |
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, ipairs, assert, type, wipe = pairs, ipairs, assert, type, wipe | 10 local pairs, ipairs, assert, type, wipe = pairs, ipairs, assert, type, wipe |
61 --[[----------------------------------------------------------------------------- | 61 --[[----------------------------------------------------------------------------- |
62 Scripts | 62 Scripts |
63 -------------------------------------------------------------------------------]] | 63 -------------------------------------------------------------------------------]] |
64 local function Tab_OnClick(frame) | 64 local function Tab_OnClick(frame) |
65 if not (frame.selected or frame.disabled) then | 65 if not (frame.selected or frame.disabled) then |
66 PlaySound("igCharacterInfoTab") | 66 PlaySound(841) -- SOUNDKIT.IG_CHARACTER_INFO_TAB |
67 frame.obj:SelectTab(frame.value) | 67 frame.obj:SelectTab(frame.value) |
68 end | 68 end |
69 end | 69 end |
70 | 70 |
71 local function Tab_OnEnter(frame) | 71 local function Tab_OnEnter(frame) |