lotrointerface.com
Search Downloads

LoTROInterface SVN SortPack

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

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 151 MrJackdaw-1942
--[[ Button is now integral to the operation of the plugin - can't hide it anymore.
34 113 MrJackdaw-1942
HideCommand = Turbine.ShellCommand()
35 MrJackdaw-1942
function HideCommand:Execute(command, i)
36 MrJackdaw-1942
        SortButtonData.Hide=not(SortButtonData.Hide)
37 MrJackdaw-1942
        SortButton.Window:SetVisible(not(SortButtonData.Hide))
38 MrJackdaw-1942
end
39 120 MrJackdaw-1942
Turbine.Shell.AddCommand('SortHide', HideCommand)]]
40 113 MrJackdaw-1942
 
41 MrJackdaw-1942
DebugCommand = Turbine.ShellCommand()
42 MrJackdaw-1942
function DebugCommand:Execute(command, i)
43 MrJackdaw-1942
        import"JackdawPlugins.SortPack.Debug"
44 MrJackdaw-1942
        Debug()
45 MrJackdaw-1942
end
46 MrJackdaw-1942
Turbine.Shell.AddCommand('SortDebug', DebugCommand)
47 133 MrJackdaw-1942
 
48 114 MrJackdaw-1942
OpenBagCommand = Turbine.ShellCommand()
49 MrJackdaw-1942
function OpenBagCommand:Execute(command, i)
50 120 MrJackdaw-1942
        import "JackdawPlugins.SortPack.bag"
51 146 MrJackdaw-1942
        if SortBag~=nil then    if SortBag:IsVisible() then SortBag:Close() return end end
52 113 MrJackdaw-1942
        openbag()
53 MrJackdaw-1942
end
54 114 MrJackdaw-1942
Turbine.Shell.AddCommand('openbag', OpenBagCommand)
55 131 MrJackdaw-1942
ShowCounterCommand = Turbine.ShellCommand()
56 MrJackdaw-1942
function ShowCounterCommand:Execute(command, i)
57 MrJackdaw-1942
        if Counter~=nil then
58 132 MrJackdaw-1942
                if Counter.Show then
59 MrJackdaw-1942
                        Count:SetVisible(false)
60 MrJackdaw-1942
                        Counter.Show=false
61 MrJackdaw-1942
                        else
62 MrJackdaw-1942
                        if Count~=nil then
63 MrJackdaw-1942
                                Count:SetVisible(true)
64 MrJackdaw-1942
                        end
65 MrJackdaw-1942
                        Counter.Show=true
66 MrJackdaw-1942
                end
67 131 MrJackdaw-1942
        end
68 132 MrJackdaw-1942
        import "JackdawPlugins.SortPack.Counter"
69 131 MrJackdaw-1942
end
70 MrJackdaw-1942
Turbine.Shell.AddCommand('SortCounter', ShowCounterCommand)

All times are GMT -5. The time now is 05:56 PM.


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