- Added slash command /details profile <profile name>

This commit is contained in:
Tercio
2015-04-09 21:14:59 -03:00
parent 08fec09ea9
commit 3358c483be
7 changed files with 75 additions and 51 deletions
+21
View File
@@ -122,6 +122,27 @@ function SlashCmdList.DETAILS (msg, editbox)
elseif (command == "feedback") then
_detalhes.OpenFeedbackWindow()
elseif (command == "profile") then
if (rest and rest ~= "") then
local profile = _detalhes:GetProfile (rest)
if (not profile) then
return _detalhes:Msg ("Profile Not Found.")
end
if (not _detalhes:ApplyProfile (rest)) then
return
end
_detalhes:Msg (Loc ["STRING_OPTIONS_PROFILE_LOADED"], rest)
if (_G.DetailsOptionsWindow and _G.DetailsOptionsWindow:IsShown()) then
_G.DetailsOptionsWindow:Hide()
GameCooltip:Close()
end
else
_detalhes:Msg ("/details profile <profile name>")
end
-------- debug ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------