Skip to content

CameoSortOrder

Added in 0.2.0

Orders a type's sidebar cameo among the cameos of the same kind.

Cameo sort order on a buildable type

Specification — Cameo sort order on a buildable type
Applies to
AircraftTypeBuildingTypeInfantryTypeUnitType
File
rules.ini
Section
[<ObjectType ID>]
Value
integer
When omitted
0

Lower numbers come first. Types with the same number are ordered by the remaining rules in the order of the strips.

The number is compared only among cameos of the same kind, so no number moves a vehicle in among the infantry. Among structures it is compared before the wall, gate and base-defense groups. A wall with a lower number therefore sorts ahead of an ordinary building with a higher one.

The key has an effect only while SidebarSorting is on.

Cameo sort order on a super weapon

Specification — Cameo sort order on a super weapon
Applies to
SuperWeaponType
File
rules.ini
Section
[<ObjectType ID>]
Value
integer
When omitted
0

While SidebarSorting is on, CameoSortOrder= orders superweapon cameos among themselves, lowest first. Cameos with equal values keep their order in [SuperWeaponTypes]. With sorting off, the value has no effect.

Sorting always places superweapon cameos together at the top of the right strip, ahead of infantry, aircraft and vehicles. No value moves a superweapon below them or another cameo into the superweapon block. The order of the strips covers the full ordering.

Negative numbers are accepted. To place a cameo between two types that are both left at zero, give those two types numbers as well.

A full strip still takes the types offered to it first, so a low number cannot get a cameo onto a full strip.

See also — sidebar, SidebarSorting

History

  1. Added0.2.0In development

    Order the sidebar cameos by category and rules index