Move the chat command initialization earlier
Add some feedback to chat commands.
This commit is contained in:
+5
-1
@@ -8,7 +8,8 @@ L:RegisterTranslations("enUS", function() return {
|
||||
["Clear"] = true,
|
||||
["Name"] = true,
|
||||
["Raid Only"] = true,
|
||||
["Only show members in raid."] = true,
|
||||
["Only show members in raid."] = true,
|
||||
["Restarted"] = true,
|
||||
-- bids
|
||||
["shootyepgp bids"] = true,
|
||||
["Winning Mainspec Bid: %s (%.03f PR)"] = true,
|
||||
@@ -173,6 +174,7 @@ Results will print here when done.]],
|
||||
["Naxxramas"] = true,
|
||||
["There are %d loot drops stored. It is recommended to clear loot info before a new raid. Do you want to clear it now?"] = true,
|
||||
["Show me"] = true,
|
||||
["Logs cleared"] = true,
|
||||
["Loot info cleared"] = true,
|
||||
["Loot info can be cleared at any time from the Tablet context menu or '/shooty clearloot' command"] = true,
|
||||
["Set your main to be able to participate in Reserve List EPGP Checks."] = true,
|
||||
@@ -404,4 +406,6 @@ L:RegisterTranslations("zhCN", function() return {
|
||||
[", %s\'s Main."] = ", %s\'s Main.",
|
||||
["Your main has been set to %s"] = "Your main has been set to %s",
|
||||
["Alts"] = "Alts",
|
||||
["Logs cleared"] = "Logs cleared",
|
||||
["Restarted"] = "Restarted",
|
||||
} end)
|
||||
+1
-1
@@ -365,7 +365,7 @@ local prices = {
|
||||
[21701] = {88,"T2.5"}; --Cloak of the Concentrated Hatred
|
||||
[21702] = {4,"T2.5"}; --Amulet of Foul Warding
|
||||
[21703] = {24,"T2.5"}; --Hammer of Ji'zhi
|
||||
[21704] = {68,"T2.5"}; --Boots of the Redeemed Prophecy
|
||||
[21704] = {70,"T2.5"}; --Boots of the Redeemed Prophecy
|
||||
[21705] = {12,"T2.5"}; --Boots of the Fallen Prophet
|
||||
[21706] = {28,"T2.5"}; --Boots of the Unwavering Will
|
||||
[21707] = {48,"T2.5"}; --Ring of Swarming Thought
|
||||
|
||||
+5
-1
@@ -68,6 +68,7 @@ local admincmd, membercmd = {type = "group", handler = sepgp, args = {
|
||||
desc = L["Clear Loot Table."],
|
||||
func = function()
|
||||
sepgp_looted = {}
|
||||
sepgp:defaultPrint(L["Loot info cleared"])
|
||||
end,
|
||||
},
|
||||
clearlogs = {
|
||||
@@ -76,6 +77,7 @@ local admincmd, membercmd = {type = "group", handler = sepgp, args = {
|
||||
desc = L["Clear Logs Table."],
|
||||
func = function()
|
||||
sepgp_log = {}
|
||||
sepgp:defaultPrint(L["Logs cleared"])
|
||||
end,
|
||||
},
|
||||
show = {
|
||||
@@ -92,6 +94,7 @@ local admincmd, membercmd = {type = "group", handler = sepgp, args = {
|
||||
desc = L["Restart shootyepgp if having startup problems."],
|
||||
func = function()
|
||||
sepgp:OnEnable()
|
||||
sepgp:defaultPrint(L["Restarted"])
|
||||
end,
|
||||
},
|
||||
}},
|
||||
@@ -110,6 +113,7 @@ local admincmd, membercmd = {type = "group", handler = sepgp, args = {
|
||||
desc = L["Restart shootyepgp if having startup problems."],
|
||||
func = function()
|
||||
sepgp:OnEnable()
|
||||
sepgp:defaultPrint(L["Restarted"])
|
||||
end,
|
||||
},
|
||||
}}
|
||||
@@ -194,6 +198,7 @@ function sepgp:OnEnable() -- PLAYER_LOGIN (2)
|
||||
else
|
||||
self:RegisterEvent("AceEvent_FullyInitialized")
|
||||
end
|
||||
self:RegisterChatCommand({"/shooty","/sepgp","/shootyepgp"},self.cmdtable())
|
||||
end
|
||||
|
||||
function sepgp:OnDisable()
|
||||
@@ -251,7 +256,6 @@ function sepgp:AceEvent_FullyInitialized() -- SYNTHETIC EVENT, later than PLAYER
|
||||
for i=1,6 do
|
||||
self:make_escable(string.format("Tablet20DetachedFrame%d",i),"add")
|
||||
end
|
||||
self:RegisterChatCommand({"/shooty","/sepgp","/shootyepgp"},self.cmdtable())
|
||||
self._hasInitFull = true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user