diff options
| author | Alexander Gavrilov | 2012-04-21 16:53:17 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-21 16:53:17 +0400 |
| commit | 4af051bab3e455a9115a44e43b8c3da0cd189f43 (patch) | |
| tree | 377a687ab333ed856b739dd993833cbbcd263e56 /plugins/sort.cpp | |
| parent | 3282ac3db216ef43cab5744631b57ed05bcf8a12 (diff) | |
| download | dfhack-4af051bab3e455a9115a44e43b8c3da0cd189f43.tar.gz dfhack-4af051bab3e455a9115a44e43b8c3da0cd189f43.tar.bz2 dfhack-4af051bab3e455a9115a44e43b8c3da0cd189f43.tar.xz | |
Add a few more unit orderings, and a way to reverse direction.
Diffstat (limited to 'plugins/sort.cpp')
| -rw-r--r-- | plugins/sort.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/sort.cpp b/plugins/sort.cpp index a373d54c..48e4bcac 100644 --- a/plugins/sort.cpp +++ b/plugins/sort.cpp @@ -39,8 +39,13 @@ DFhackCExport command_result plugin_init (color_ostream &out, std::vector <Plugi { commands.push_back(PluginCommand( "sort-units", "Sort the visible unit list.", sort_units, unit_list_hotkey, - " sort-units filter...\n" + " sort-units order [order...]\n" " Sort the unit list using the given sequence of comparisons.\n" + " The '<' prefix for an order makes undefined values sort first.\n" + " The '>' prefix reverses the sort order for defined values.\n" + " Unit order examples:\n" + " name, age, arrival, squad, squad_position, profession\n" + "The orderings are defined in hack/lua/plugins/sort/*.lua\n" )); return CR_OK; } |
