Class QuirksPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, DialogOptionListener

public class QuirksPanel extends JPanel implements DialogOptionListener
The quirks tab of CustomMekDialog: the unit's chassis quirks in a positive and a negative column, and the quirks of each weapon it carries.

Each quirk carries its MegaMek implementation status from QuirkCatalog: a quirk MegaMek ignores is grayed and marked " (NI)", one it only partly honors " (P)", with the status, rules reference and description in the tooltip. A quirk MegaMek ignores stays fully editable - canon unit files set these quirks, saved games keep them, and MekHQ reads several of them - the styling only says the MegaMek engine will not act on it. Book quirks MegaMek has no option for at all appear as disabled QuirkPlaceholder rows.

The "show unimplemented" toggle hides every quirk MegaMek will not act on, of either sort. A quirk the unit actually has is always listed regardless, so hiding can never conceal something set on this unit.

A search field filters all three columns at once by quirk name and description. Filtering only changes which rows are laid out and never rebuilds the row components, so in-progress edits and selections survive.

Since:
2012-03-05
See Also: