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 |
133 |
MrJackdaw-1942 |
|
33 |
114 |
MrJackdaw-1942 |
OpenBagCommand = Turbine.ShellCommand() |
34 |
|
MrJackdaw-1942 |
function OpenBagCommand:Execute(command, i) |
35 |
120 |
MrJackdaw-1942 |
import "JackdawPlugins.SortPack.bag" |
36 |
113 |
MrJackdaw-1942 |
openbag() |
37 |
|
MrJackdaw-1942 |
end |
38 |
114 |
MrJackdaw-1942 |
Turbine.Shell.AddCommand('openbag', OpenBagCommand) |
39 |
131 |
MrJackdaw-1942 |
ShowCounterCommand = Turbine.ShellCommand() |
40 |
|
MrJackdaw-1942 |
function ShowCounterCommand:Execute(command, i) |
41 |
|
MrJackdaw-1942 |
if Counter~=nil then |
42 |
132 |
MrJackdaw-1942 |
if Counter.Show then |
43 |
|
MrJackdaw-1942 |
Count:SetVisible(false) |
44 |
|
MrJackdaw-1942 |
Counter.Show=false |
45 |
|
MrJackdaw-1942 |
else |
46 |
|
MrJackdaw-1942 |
if Count~=nil then |
47 |
|
MrJackdaw-1942 |
Count:SetVisible(true) |
48 |
|
MrJackdaw-1942 |
end |
49 |
|
MrJackdaw-1942 |
Counter.Show=true |
50 |
|
MrJackdaw-1942 |
end |
51 |
131 |
MrJackdaw-1942 |
end |
52 |
132 |
MrJackdaw-1942 |
import "JackdawPlugins.SortPack.Counter" |
53 |
131 |
MrJackdaw-1942 |
end |
54 |
|
MrJackdaw-1942 |
Turbine.Shell.AddCommand('SortCounter', ShowCounterCommand) |