Skip to content

Commit c6cf4fa

Browse files
committed
v1.0.4
- Added options that are saved shared or per character - Addon now keeps track of last used flying and ground mount. - Option to dismount only if already mounted, if that is checked you need to use the command twice to get a new mount. - Option to ignore the functionality that removes the last used mount from the next random summon.
1 parent c2a5dcf commit c6cf4fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+13273
-187
lines changed

Libs/AceAddon-3.0/AceAddon-3.0.lua

Lines changed: 649 additions & 0 deletions
Large diffs are not rendered by default.

Libs/AceAddon-3.0/AceAddon-3.0.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2+
..\FrameXML\UI.xsd">
3+
<Script file="AceAddon-3.0.lua"/>
4+
</Ui>

Libs/AceConfig-3.0/AceConfig-3.0.lua

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
--- AceConfig-3.0 wrapper library.
2+
-- Provides an API to register an options table with the config registry,
3+
-- as well as associate it with a slash command.
4+
-- @class file
5+
-- @name AceConfig-3.0
6+
-- @release $Id: AceConfig-3.0.lua 1335 2024-05-05 19:35:16Z nevcairiel $
7+
8+
--[[
9+
AceConfig-3.0
10+
11+
Very light wrapper library that combines all the AceConfig subcomponents into one more easily used whole.
12+
13+
]]
14+
15+
local cfgreg = LibStub("AceConfigRegistry-3.0")
16+
local cfgcmd = LibStub("AceConfigCmd-3.0")
17+
18+
local MAJOR, MINOR = "AceConfig-3.0", 3
19+
local AceConfig = LibStub:NewLibrary(MAJOR, MINOR)
20+
21+
if not AceConfig then return end
22+
23+
--TODO: local cfgdlg = LibStub("AceConfigDialog-3.0", true)
24+
--TODO: local cfgdrp = LibStub("AceConfigDropdown-3.0", true)
25+
26+
-- Lua APIs
27+
local pcall, error, type, pairs = pcall, error, type, pairs
28+
29+
-- -------------------------------------------------------------------
30+
-- :RegisterOptionsTable(appName, options, slashcmd)
31+
--
32+
-- - appName - (string) application name
33+
-- - options - table or function ref, see AceConfigRegistry
34+
-- - slashcmd - slash command (string) or table with commands, or nil to NOT create a slash command
35+
36+
--- Register a option table with the AceConfig registry.
37+
-- You can supply a slash command (or a table of slash commands) to register with AceConfigCmd directly.
38+
-- @paramsig appName, options [, slashcmd]
39+
-- @param appName The application name for the config table.
40+
-- @param options The option table (or a function to generate one on demand). http://www.wowace.com/addons/ace3/pages/ace-config-3-0-options-tables/
41+
-- @param slashcmd A slash command to register for the option table, or a table of slash commands.
42+
-- @usage
43+
-- local AceConfig = LibStub("AceConfig-3.0")
44+
-- AceConfig:RegisterOptionsTable("MyAddon", myOptions, {"/myslash", "/my"})
45+
function AceConfig:RegisterOptionsTable(appName, options, slashcmd)
46+
local ok,msg = pcall(cfgreg.RegisterOptionsTable, self, appName, options)
47+
if not ok then error(msg, 2) end
48+
49+
if slashcmd then
50+
if type(slashcmd) == "table" then
51+
for _,cmd in pairs(slashcmd) do
52+
cfgcmd:CreateChatCommand(cmd, appName)
53+
end
54+
else
55+
cfgcmd:CreateChatCommand(slashcmd, appName)
56+
end
57+
end
58+
end

Libs/AceConfig-3.0/AceConfig-3.0.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2+
..\FrameXML\UI.xsd">
3+
<Include file="AceConfigRegistry-3.0\AceConfigRegistry-3.0.xml"/>
4+
<Include file="AceConfigCmd-3.0\AceConfigCmd-3.0.xml"/>
5+
<Include file="AceConfigDialog-3.0\AceConfigDialog-3.0.xml"/>
6+
<!--<Include file="AceConfigDropdown-3.0\AceConfigDropdown-3.0.xml"/>-->
7+
<Script file="AceConfig-3.0.lua"/>
8+
</Ui>

0 commit comments

Comments
 (0)