A user-supplied specification for rendering shields

Example

const shieldsSpecification = {
shields: {
"US:I": {
textColor: Color.shields.white,
spriteBlank: ["shield_us_interstate_2", "shield_us_interstate_3"],
textLayout: textConstraint("southHalfEllipse"),
padding: {
left: 4,
right: 4,
top: 6,
bottom: 5,
},
}
},
options: {
bannerTextColor: "#000",
bannerTextHaloColor: "#FFF",
bannerHeight: 9,
bannerPadding: 1,
shieldFont: '"sans-serif-condensed", "Arial Narrow", sans-serif',
shieldSize: 20,
}
};

Hierarchy

  • ShieldSpecification

Properties

Properties

Shield definitions

options: ShieldOptions

Shield options

Generated using TypeDoc