VASSAL Reference Manual
Deck Sort Key Command
This Deck Sub-Component adds an action that sorts the cards in a Deck according to pre-defined sort parameters based on properties defined by the cards.
The Sort action can be initiated by a right-click menu action, or by a Global Hotkey sent from another Vassal trait or component.
To add a Deck Sort Key Command to one of your Decks, use the Editor’s configuration window to navigate to the [Deck] entry for the Deck you want to add it to. Right-click on the [Deck] entry and select Add Deck Sort Key Command.
Deck Sort Key Commands can also be placed in a component Folder created under the Deck.
|
A simple sort of the Deck cards alphabetically by the Name property. The sort can be initiated only by the right-click Sort by Name menu command. Sorts the cards in the Deck by the value of the Strength property, then by decreasing value of the Size property, both of which should have numeric values. The sort can be initiated by the Sort by Strength menu command, or by the sortStr Name Hotkey. |