1 |
113 |
MrJackdaw-1942 |
--Slash commands |
2 |
|
MrJackdaw-1942 |
|
3 |
|
MrJackdaw-1942 |
SortCommand = Turbine.ShellCommand() |
4 |
|
MrJackdaw-1942 |
function SortCommand:Execute(command, i) |
5 |
120 |
MrJackdaw-1942 |
import "JackdawPlugins.SortPack.Sort" |
6 |
113 |
MrJackdaw-1942 |
Turbine.Shell.WriteLine("<rgb=#888888>Starting sort") |
7 |
|
MrJackdaw-1942 |
Sort() |
8 |
|
MrJackdaw-1942 |
end |
9 |
|
MrJackdaw-1942 |
Turbine.Shell.AddCommand('Sort', SortCommand) |
10 |
|
MrJackdaw-1942 |
|
11 |
|
MrJackdaw-1942 |
OptionCommand = Turbine.ShellCommand() |
12 |
|
MrJackdaw-1942 |
function OptionCommand:Execute(command, i) |
13 |
|
MrJackdaw-1942 |
import"JackdawPlugins.SortPack.ListOption" |
14 |
|
MrJackdaw-1942 |
ShowListOption() |
15 |
|
MrJackdaw-1942 |
end |
16 |
|
MrJackdaw-1942 |
Turbine.Shell.AddCommand('SortOption', OptionCommand) |
17 |
|
MrJackdaw-1942 |
|
18 |
120 |
MrJackdaw-1942 |
--[[ Button is now integral to the operation of the plugin - can't hide it anymore. Don't want it? Don't load it. |
19 |
113 |
MrJackdaw-1942 |
HideCommand = Turbine.ShellCommand() |
20 |
|
MrJackdaw-1942 |
function HideCommand:Execute(command, i) |
21 |
|
MrJackdaw-1942 |
SortButtonData.Hide=not(SortButtonData.Hide) |
22 |
|
MrJackdaw-1942 |
SortButton.Window:SetVisible(not(SortButtonData.Hide)) |
23 |
|
MrJackdaw-1942 |
end |
24 |
120 |
MrJackdaw-1942 |
Turbine.Shell.AddCommand('SortHide', HideCommand)]] |
25 |
113 |
MrJackdaw-1942 |
|
26 |
|
MrJackdaw-1942 |
DebugCommand = Turbine.ShellCommand() |
27 |
|
MrJackdaw-1942 |
function DebugCommand:Execute(command, i) |
28 |
|
MrJackdaw-1942 |
import"JackdawPlugins.SortPack.Debug" |
29 |
|
MrJackdaw-1942 |
Debug() |
30 |
|
MrJackdaw-1942 |
end |
31 |
|
MrJackdaw-1942 |
Turbine.Shell.AddCommand('SortDebug', DebugCommand) |
32 |
114 |
MrJackdaw-1942 |
--[[ |
33 |
|
MrJackdaw-1942 |
sorttoggleCommand = Turbine.ShellCommand() |
34 |
|
MrJackdaw-1942 |
function sorttoggleCommand:Execute(command, i) |
35 |
|
MrJackdaw-1942 |
if SortButtonData.LeftClick=="sort" then SortButtonData.LeftClick="bag" else SortButtonData.LeftClick="sort" end |
36 |
|
MrJackdaw-1942 |
end |
37 |
|
MrJackdaw-1942 |
Turbine.Shell.AddCommand('sorttoggle', sorttoggleCommand) |
38 |
|
MrJackdaw-1942 |
]] |
39 |
|
MrJackdaw-1942 |
OpenBagCommand = Turbine.ShellCommand() |
40 |
|
MrJackdaw-1942 |
function OpenBagCommand:Execute(command, i) |
41 |
120 |
MrJackdaw-1942 |
import "JackdawPlugins.SortPack.bag" |
42 |
113 |
MrJackdaw-1942 |
openbag() |
43 |
|
MrJackdaw-1942 |
end |
44 |
114 |
MrJackdaw-1942 |
Turbine.Shell.AddCommand('openbag', OpenBagCommand) |
45 |
131 |
MrJackdaw-1942 |
ShowCounterCommand = Turbine.ShellCommand() |
46 |
|
MrJackdaw-1942 |
function ShowCounterCommand:Execute(command, i) |
47 |
|
MrJackdaw-1942 |
import "JackdawPlugins.SortPack.Counter" |
48 |
|
MrJackdaw-1942 |
if Counter~=nil then |
49 |
|
MrJackdaw-1942 |
if Counter.Show then Counter:SetVisible(false) else Counter.Show=true end |
50 |
|
MrJackdaw-1942 |
end |
51 |
|
MrJackdaw-1942 |
end |
52 |
|
MrJackdaw-1942 |
Turbine.Shell.AddCommand('SortCounter', ShowCounterCommand) |