Skip to content

Commit

Permalink
1.6.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mudzereli committed Aug 26, 2024
1 parent 12d9d12 commit 1885146
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 10 deletions.
Binary file modified .vs/mudsort/v17/.suo
Binary file not shown.
13 changes: 6 additions & 7 deletions PluginCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,12 @@ private void Current_RenderFrame_Sort(object sender, EventArgs e)
}
else if (CURRENT_STATE == State.BUILDING_LIST)
{
String[] sortKeys = MainView.edtSortString.Text.Split(',');
System.Collections.ArrayList sortValueList = new System.Collections.ArrayList();
for (int i = sortKeys.Length - 1; i >= 0; i--)
for (int i = sortFlags.Count - 1; i >= 0; i--)
{
SortFlag sf = (SortFlag)sortFlags[i];
foreach (WorldObject worldObject in sortList)
{
SortFlag sf = SortFlag.decode(sortKeys[i]);
String sortMetric = sf.valueOf(worldObject);
if (!sortValueList.Contains(sortMetric))
{
Expand All @@ -212,15 +211,15 @@ private void Current_RenderFrame_Sort(object sender, EventArgs e)
}
sortValueList.Sort(new AlphanumComparator());
System.Collections.ArrayList newSortList = new System.Collections.ArrayList();
if (!(sortKeys[i].Length == 3 && sortKeys[i].Substring(2, 1).Equals("-")))
if (sf.descending)
{
sortValueList.Reverse();
}
foreach (Object sortValue in sortValueList)
{
foreach (WorldObject worldObject in sortList)
{
String sortMetric = SortFlag.decode(sortKeys[i]).valueOf(worldObject);
String sortMetric = sf.valueOf(worldObject);
if (sortMetric.Equals(sortValue))
{
newSortList.Add(worldObject);
Expand Down Expand Up @@ -403,7 +402,7 @@ public void rebuildLstSortSettings()
}

}
MainView.edtSortString.Text = sortFlagListToString();
//MainView.edtSortString.Text = sortFlagListToString();
}

public void setDestContainer()
Expand Down Expand Up @@ -476,7 +475,7 @@ public bool ProcessMSCommand(string msCommand)
{
msCommand = msCommand.ToLower().Trim();

if (msCommand.StartsWith("/ms help"))
if (msCommand.StartsWith("/ms help") || msCommand.Equals("/ms"))
{
Util.WriteToChat("listing help / commands...");
Util.WriteToChat("/ms start - start sorting");
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.6.2.0")]
[assembly: AssemblyFileVersion("1.6.2.0")]
[assembly: AssemblyVersion("1.6.3.0")]
[assembly: AssemblyFileVersion("1.6.3.0")]
Binary file modified bin/Release/mudsort.dll
Binary file not shown.
Binary file modified bin/Release/mudsort.pdb
Binary file not shown.
Binary file added bin/Release/stdole.dll
Binary file not shown.
Binary file modified obj/Release/DesignTimeResolveAssemblyReferences.cache
Binary file not shown.
Binary file modified obj/Release/mudsort.csproj.AssemblyReference.cache
Binary file not shown.
Empty file.
1 change: 1 addition & 0 deletions obj/Release/mudsort.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ C:\Turbine\Asheron's Call\mudsort\obj\Release\mudsort.csproj.CopyComplete
C:\Turbine\Asheron's Call\mudsort\obj\Release\mudsort.dll
C:\Turbine\Asheron's Call\mudsort\obj\Release\mudsort.pdb
C:\Turbine\Asheron's Call\mudsort\obj\Release\mudsort.csproj.AssemblyReference.cache
C:\Turbine\Asheron's Call\mudsort\bin\Release\stdole.dll
Binary file modified obj/Release/mudsort.dll
Binary file not shown.
Binary file modified obj/Release/mudsort.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ It will really save you a lot of time!
</dl>

## Commands
- `/ms help` -- lists commands
- `/ms help` or just `/ms` -- lists commands
- `/ms start` -- start sorting
- `/ms set source (pack <1-8>|player|<containerID>)` -- set source container to: pack 1-8, player, given containerID, or selection (no argument)
- `/ms set dest (pack <1-8>|player|<containerID>)` -- set destination container to: pack 1-8, player, given containerID, or selection (no argument)
Expand Down

0 comments on commit 1885146

Please sign in to comment.