lotrointerface.com
Search Downloads

LoTROInterface SVN SortPack

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

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 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 151 MrJackdaw-1942
StackCommand = Turbine.ShellCommand()
12 MrJackdaw-1942
function StackCommand:Execute(command, i)
13 MrJackdaw-1942
        import "JackdawPlugins.SortPack.Stack"
14 MrJackdaw-1942
        Turbine.Shell.WriteLine("<rgb=#888888>Starting stack")
15 MrJackdaw-1942
        Stack()
16 MrJackdaw-1942
end
17 MrJackdaw-1942
Turbine.Shell.AddCommand('Stack', StackCommand)
18 MrJackdaw-1942
 
19 113 MrJackdaw-1942
OptionCommand = Turbine.ShellCommand()
20 MrJackdaw-1942
function OptionCommand:Execute(command, i)
21 MrJackdaw-1942
        import"JackdawPlugins.SortPack.ListOption"
22 MrJackdaw-1942
        ShowListOption()
23 MrJackdaw-1942
end
24 MrJackdaw-1942
Turbine.Shell.AddCommand('SortOption', OptionCommand)
25 MrJackdaw-1942
 
26 138 MrJackdaw-1942
CatCommand = Turbine.ShellCommand()
27 MrJackdaw-1942
function CatCommand:Execute(command, i)
28 MrJackdaw-1942
        import  "JackdawPlugins.SortPack.CustomOption"
29 MrJackdaw-1942
        ShowCustomOption()
30 MrJackdaw-1942
end
31 MrJackdaw-1942
Turbine.Shell.AddCommand('SortCat', CatCommand)
32 MrJackdaw-1942
 
33 113 MrJackdaw-1942
HideCommand = Turbine.ShellCommand()
34 MrJackdaw-1942
function HideCommand:Execute(command, i)
35 MrJackdaw-1942
        SortButtonData.Hide=not(SortButtonData.Hide)
36 156 MrJackdaw-1942
        SortButton:SetVisible(not(SortButtonData.Hide))
37 113 MrJackdaw-1942
end
38 156 MrJackdaw-1942
Turbine.Shell.AddCommand('SortHide', HideCommand)
39 113 MrJackdaw-1942
 
40 MrJackdaw-1942
DebugCommand = Turbine.ShellCommand()
41 MrJackdaw-1942
function DebugCommand:Execute(command, i)
42 MrJackdaw-1942
        import"JackdawPlugins.SortPack.Debug"
43 MrJackdaw-1942
        Debug()
44 MrJackdaw-1942
end
45 MrJackdaw-1942
Turbine.Shell.AddCommand('SortDebug', DebugCommand)
46 133 MrJackdaw-1942
 
47 114 MrJackdaw-1942
OpenBagCommand = Turbine.ShellCommand()
48 MrJackdaw-1942
function OpenBagCommand:Execute(command, i)
49 120 MrJackdaw-1942
        import "JackdawPlugins.SortPack.bag"
50 146 MrJackdaw-1942
        if SortBag~=nil then    if SortBag:IsVisible() then SortBag:Close() return end end
51 113 MrJackdaw-1942
        openbag()
52 MrJackdaw-1942
end
53 114 MrJackdaw-1942
Turbine.Shell.AddCommand('openbag', OpenBagCommand)
54 131 MrJackdaw-1942
ShowCounterCommand = Turbine.ShellCommand()
55 MrJackdaw-1942
function ShowCounterCommand:Execute(command, i)
56 MrJackdaw-1942
        if Counter~=nil then
57 132 MrJackdaw-1942
                if Counter.Show then
58 MrJackdaw-1942
                        Count:SetVisible(false)
59 MrJackdaw-1942
                        Counter.Show=false
60 MrJackdaw-1942
                        else
61 MrJackdaw-1942
                        if Count~=nil then
62 MrJackdaw-1942
                                Count:SetVisible(true)
63 MrJackdaw-1942
                        end
64 MrJackdaw-1942
                        Counter.Show=true
65 MrJackdaw-1942
                end
66 131 MrJackdaw-1942
        end
67 132 MrJackdaw-1942
        import "JackdawPlugins.SortPack.Counter"
68 131 MrJackdaw-1942
end
69 MrJackdaw-1942
Turbine.Shell.AddCommand('SortCounter', ShowCounterCommand)

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


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