Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
Removed debug code from help, and altered the LUA example
Browse files Browse the repository at this point in the history
  • Loading branch information
DeathCradle committed Feb 12, 2015
1 parent 9d8dc45 commit 93c7e67
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions PluginExamples/LUA/welcome.lua
Expand Up @@ -45,10 +45,10 @@ function WelcomePlugin:Initialized()
:WithAccessLevel(AccessLevel.PLAYER)
:LuaCall(export.OnWPCommand)
:WithDescription("Go to a way point")
:WithHelpText("Usage: wp <name>")
:WithHelpText(" wp -add <name> <x> <y>")
:WithHelpText(" wp -add <name> <player name>")
:WithHelpText(" wp -remove <name>")
:WithHelpText("<name>")
:WithHelpText("-add <name> <x> <y>")
:WithHelpText("-add <name> <player name>")
:WithHelpText("-remove <name>")
--:WithHelpText(" wp next")
--:WithHelpText(" wp previous")
:WithPermissionNode("tdsm.waypoint")
Expand Down
2 changes: 1 addition & 1 deletion Restrict/Restrict.csproj
Expand Up @@ -84,7 +84,7 @@
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="tdsm.exe">
<Reference Include="tdsm">
<HintPath>..\tdsm-patcher\bin\x86\Debug\tdsm.exe</HintPath>
</Reference>
</ItemGroup>
Expand Down
5 changes: 0 additions & 5 deletions tdsm-api/Command/DefaultCommands.cs
Expand Up @@ -485,11 +485,6 @@ public static void ShowHelp(ISender sender, ArgumentList args)
.OrderBy (x => x.Key.ToLower())
.Select (x => x.Value)
.ToArray ();
var sortedw = commands
.OrderBy (x => x.Key.ToLower())
.Select (x => x.Key.ToLower())
.ToArray ();

for(var i = lineOffset; i < lineOffset + maxLines; i++)
{
if(i < sorted.Length)
Expand Down
2 changes: 1 addition & 1 deletion tdsm-core/tdsm-core.csproj
Expand Up @@ -52,7 +52,7 @@
<Reference Include="Mono.Cecil">
<HintPath>..\Binaries\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="tdsm.exe">
<Reference Include="tdsm">
<HintPath>..\tdsm-patcher\bin\x86\Debug\tdsm.exe</HintPath>
</Reference>
</ItemGroup>
Expand Down
7 changes: 7 additions & 0 deletions tdsm-md.sln
Expand Up @@ -10,6 +10,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "LUA Examples", "LUA Examples", "{CCA1D6DB-1AF7-4483-9791-C1EFB9EC744D}"
ProjectSection(SolutionItems) = preProject
PluginExamples\LUA\bare-bones.lua = PluginExamples\LUA\bare-bones.lua
PluginExamples\LUA\welcome.lua = PluginExamples\LUA\welcome.lua
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tdsm-core", "tdsm-core\tdsm-core.csproj", "{48477B14-CEAA-47AA-98F1-EF935734DBC5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tdsm-utility", "tdsm-utility\tdsm-utility.csproj", "{E0C31830-7BEC-4D9C-A0F1-5A5CD176BF7A}"
Expand Down Expand Up @@ -548,6 +554,7 @@ Global
{E0C31830-7BEC-4D9C-A0F1-5A5CD176BF7A}.winphone_Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{CCA1D6DB-1AF7-4483-9791-C1EFB9EC744D} = {EED99527-E456-4B5C-8079-D4DC60410DFE}
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = tdsm-patcher\tdsm-patcher.csproj
Expand Down
2 changes: 1 addition & 1 deletion tdsm-utility/tdsm-utility.csproj
Expand Up @@ -60,7 +60,7 @@
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="tdsm.exe">
<Reference Include="tdsm">
<HintPath>..\tdsm-patcher\bin\x86\Debug\tdsm.exe</HintPath>
</Reference>
</ItemGroup>
Expand Down

0 comments on commit 93c7e67

Please sign in to comment.