lotrointerface.com
Search Downloads

LoTROInterface SVN SortPack

[/] [trunk/] [JackdawPlugins/] [SortPack/] [Slash.lua] - Blame information for rev 119

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 113 MrJackdaw-1942
--Slash commands
2 MrJackdaw-1942
 
3 MrJackdaw-1942
SortCommand = Turbine.ShellCommand()
4 MrJackdaw-1942
function SortCommand:Execute(command, i)
5 MrJackdaw-1942
        Turbine.Shell.WriteLine("<rgb=#888888>Starting sort")
6 MrJackdaw-1942
        Sort()
7 MrJackdaw-1942
end
8 MrJackdaw-1942
Turbine.Shell.AddCommand('Sort', SortCommand)
9 MrJackdaw-1942
 
10 MrJackdaw-1942
OptionCommand = Turbine.ShellCommand()
11 MrJackdaw-1942
function OptionCommand:Execute(command, i)
12 MrJackdaw-1942
        import"JackdawPlugins.SortPack.ListOption"
13 MrJackdaw-1942
        ShowListOption()
14 MrJackdaw-1942
end
15 MrJackdaw-1942
Turbine.Shell.AddCommand('SortOption', OptionCommand)
16 MrJackdaw-1942
 
17 MrJackdaw-1942
HideCommand = Turbine.ShellCommand()
18 MrJackdaw-1942
function HideCommand:Execute(command, i)
19 MrJackdaw-1942
        SortButtonData.Hide=not(SortButtonData.Hide)
20 MrJackdaw-1942
        SortButton.Window:SetVisible(not(SortButtonData.Hide))
21 MrJackdaw-1942
end
22 MrJackdaw-1942
Turbine.Shell.AddCommand('SortHide', HideCommand)
23 MrJackdaw-1942
 
24 MrJackdaw-1942
DebugCommand = Turbine.ShellCommand()
25 MrJackdaw-1942
function DebugCommand:Execute(command, i)
26 MrJackdaw-1942
        import"JackdawPlugins.SortPack.Debug"
27 MrJackdaw-1942
        Debug()
28 MrJackdaw-1942
end
29 MrJackdaw-1942
Turbine.Shell.AddCommand('SortDebug', DebugCommand)
30 114 MrJackdaw-1942
--[[
31 MrJackdaw-1942
sorttoggleCommand = Turbine.ShellCommand()
32 MrJackdaw-1942
function sorttoggleCommand:Execute(command, i)
33 MrJackdaw-1942
        if SortButtonData.LeftClick=="sort" then SortButtonData.LeftClick="bag" else SortButtonData.LeftClick="sort" end
34 MrJackdaw-1942
end
35 MrJackdaw-1942
Turbine.Shell.AddCommand('sorttoggle', sorttoggleCommand)
36 MrJackdaw-1942
]]
37 MrJackdaw-1942
OpenBagCommand = Turbine.ShellCommand()
38 MrJackdaw-1942
function OpenBagCommand:Execute(command, i)
39 113 MrJackdaw-1942
        openbag()
40 MrJackdaw-1942
end
41 114 MrJackdaw-1942
Turbine.Shell.AddCommand('openbag', OpenBagCommand)

All times are GMT -5. The time now is 06:39 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui