Mercurial > wow > askmrrobot
comparison ui/AmrUiFrame.lua @ 133:a0894ffebd15 v62
Bug fixes and tweaks for 8.0.
author | yellowfive |
---|---|
date | Wed, 25 Jul 2018 12:17:24 -0700 |
parents | 57c6cac5143c |
children |
comparison
equal
deleted
inserted
replaced
132:2279d58793c6 | 133:a0894ffebd15 |
---|---|
3 -------------------------------------------------------------------------------]] | 3 -------------------------------------------------------------------------------]] |
4 local Type, Version = "AmrUiFrame", 1 | 4 local Type, Version = "AmrUiFrame", 1 |
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 local L = LibStub("AceLocale-3.0"):GetLocale("AskMrRobot", true) | |
9 local Amr = LibStub("AceAddon-3.0"):GetAddon("AskMrRobot") | 8 local Amr = LibStub("AceAddon-3.0"):GetAddon("AskMrRobot") |
10 | 9 |
11 -- Lua APIs | 10 -- Lua APIs |
12 local pairs, assert, type = pairs, assert, type | 11 local pairs, assert, type = pairs, assert, type |
13 local wipe = table.wipe | 12 local wipe = table.wipe |
14 | 13 |
15 -- WoW APIs | 14 -- WoW APIs |
16 local PlaySound = PlaySound | |
17 local CreateFrame, UIParent = CreateFrame, UIParent | 15 local CreateFrame, UIParent = CreateFrame, UIParent |
18 | 16 |
19 -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded | 17 -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded |
20 -- List them here for Mikk's FindGlobals script | 18 -- List them here for Mikk's FindGlobals script |
21 -- GLOBALS: CLOSE | 19 -- GLOBALS: CLOSE |