lotrointerface.com
Search Downloads

LoTROInterface SVN SortPack

[/] [trunk/] [JackdawPlugins/] [SortPack/] [Slash.lua] - Rev 131

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

--Slash commands

SortCommand = Turbine.ShellCommand()
function SortCommand:Execute(command, i)
        import "JackdawPlugins.SortPack.Sort"
        Turbine.Shell.WriteLine("<rgb=#888888>Starting sort")
        Sort()
end
Turbine.Shell.AddCommand('Sort', SortCommand)

OptionCommand = Turbine.ShellCommand()
function OptionCommand:Execute(command, i)
        import"JackdawPlugins.SortPack.ListOption"
        ShowListOption()
end
Turbine.Shell.AddCommand('SortOption', OptionCommand)

--[[ Button is now integral to the operation of the plugin - can't hide it anymore. Don't want it? Don't load it.
HideCommand = Turbine.ShellCommand()
function HideCommand:Execute(command, i)
        SortButtonData.Hide=not(SortButtonData.Hide)
        SortButton.Window:SetVisible(not(SortButtonData.Hide))
end
Turbine.Shell.AddCommand('SortHide', HideCommand)]]

DebugCommand = Turbine.ShellCommand()
function DebugCommand:Execute(command, i)
        import"JackdawPlugins.SortPack.Debug"
        Debug()
end
Turbine.Shell.AddCommand('SortDebug', DebugCommand)
--[[
sorttoggleCommand = Turbine.ShellCommand()
function sorttoggleCommand:Execute(command, i)
        if SortButtonData.LeftClick=="sort" then SortButtonData.LeftClick="bag" else SortButtonData.LeftClick="sort" end
end
Turbine.Shell.AddCommand('sorttoggle', sorttoggleCommand)
]]
OpenBagCommand = Turbine.ShellCommand()
function OpenBagCommand:Execute(command, i)
        import "JackdawPlugins.SortPack.bag"
        openbag()
end
Turbine.Shell.AddCommand('openbag', OpenBagCommand)
ShowCounterCommand = Turbine.ShellCommand()
function ShowCounterCommand:Execute(command, i)
        import "JackdawPlugins.SortPack.Counter"
        if Counter~=nil then
                if Counter.Show then Counter:SetVisible(false) else Counter.Show=true end 
        end
end
Turbine.Shell.AddCommand('SortCounter', ShowCounterCommand)

Go to most recent revision | Compare with Previous | Blame


All times are GMT -5. The time now is 08:33 PM.


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