From 8e1ed94f74687e8061a0ecd3271d6bcf6188a407 Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 19 Feb 2017 01:23:35 +0800 Subject: [PATCH] Add chat command to sort bags It is good to have the option to use a macro or chat command --- Clean_Up_GUI.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Clean_Up_GUI.lua b/Clean_Up_GUI.lua index cd21dad..d76aa7e 100644 --- a/Clean_Up_GUI.lua +++ b/Clean_Up_GUI.lua @@ -54,6 +54,12 @@ function SetupSlash() Clean_Up_GUI_Settings.reversed = not Clean_Up_GUI_Settings.reversed Print('Sort order: ' .. (Clean_Up_GUI_Settings.reversed and 'Reversed' or 'Standard')) end + + _G.SLASH_BAGSORT1 = '/bagsort' + function _G.SlashCmdList.BAGSORT(arg) + PlaySoundFile[[Interface\AddOns\Clean_Up_GUI\UI_BagSorting_01.ogg]] + Clean_Up('bags', Clean_Up_GUI_Settings.reversed) + end end function CleanUpButton(parent)