File type: Stylesheet

File type: Stylesheet

Overview

Stylesheets are part of the style triangle:

Description Looks Data
Game Stylesheet Set
Field Style Value

Stylesheets provide the look and feel of cards.

Package format

A stylesheet is described in a package with the .mse-style file extension, such a package contains a data file called style.

Properties

Property Type Default Description
Common to all packages
mse version version required Version of MSE this stylesheet is made for.
short name string file name A short name of this stylesheet, for the 'new set' and style panel lists.
full name string file name A longer name of this stylesheet.
icon filename none Filename of an icon / preview for this stylesheet, for the 'new set' and style panel lists.
position hint number Where to place this item in the list? Lower numbers come first.
version version 0.0.0 Version number of this package.
depends on list of dependencies Packages this package depends on.
Specific to stylesheets
game Name of a game required Game this stylesheet is made for
card width real number 100 Width of cards in pixels
card height real number 100 Height of cards in pixels
card dpi real number 96 Resolution of cards in dots-per-inch
card background color white Background color of cards
init script script ; Script to run when this stylesheet is loaded, after the game's init script.
styling fields list of fields Fields for styling options, shown on the 'style' panel.
styling style field map of styles Styles for the styling fields.
set info style field map of styles game.default_set_style Styling for the 'set info' panel
card style field map of styles Styles for the card fields defined in the game
extra card fields list of fields Additional fields to add to each card.
These fields are intended for things like lines and boxes, whose value is determined automatically.
extra card style styles Styling for the extra card fields