Starship console¶
Still here? Then you are the kind of developer who reads the changelog, the footnotes and the licence file — and that deserves a second reward.
lcars is the other pack that no listing mentions: an original homage to the look of a famous
starship computer interface. Black ground, thick colour bars that bend with a large radius into a
side bar, pill buttons with right-aligned labels and numeric codes, solid pastel blocks, condensed
uppercase type and big numeric readouts. Nothing here reproduces a real screen; every label,
number and name is invented. Select it with import LCARS (also Console, StarshipConsole) or
pack="lcars" on the fence. The dark appearance is the canonical one; the light appearance is the
same console on a warm grey day-shift ground.
The elbows are the chrome. ConsoleFrame (alias Frame) is the elbow container: its title sits
in the top bar, code: adds a numbered block beside it, bars: adds coloured segments to the top
bar, sidebar: holds a column of SidebarButtons and footer: fills the bottom bar. The other
elements are console idioms mapped onto the core roles: Panel, Elbow, Bar, Pill /
ConsoleButton / Button (variants .pill, .leading, .trailing, .block), Readout,
DataGrid / SensorTable, Meter / SegmentedBar / Gauge, Alert, RedAlert, StatusLight,
SensorSweep / SensorGrid, ConsoleLog, ConsoleTabs, Header, Caption and Cascade. Every
coloured element takes .color(…) with the palette names .orange, .peach, .lavender,
.periwinkle, .tan, .gold, .blue and .red.
The reusable pieces below (ConsoleSidebar, SystemRow, DeckPanel, ConsoleFooter) live in
mockups/lcars/console.mockitdown and are imported with import "lcars/console".
Main operations console¶
The primary console: the elbow frame with its numbered side bar, three readouts, meters, a block of running numbers and a row of pill buttons.
7730 0042 19 8851 004
3318 6620 77 1209 935
9902 4471 05 6634 210
1186 3009 52 7740 618
7730 0042 19 8851 004
3318 6620 77 1209 935
9902 4471 05 6634 210
1186 3009 52 7740 618
Source
import "lcars/console"
ConsoleFrame("OPERATIONS", subtitle: "MAIN CONSOLE", code: "07-3341", sidebar: {
ConsoleSidebar(lit: "POWER")
}, bars: {
Bar().color(.tan).frame(width: 90)
Bar().color(.lavender).frame(width: 36)
}) {
HStack(spacing: 18) {
Readout("CORE TEMP", value: "2417", change: "+0.4", unit: "KELVIN")
Readout("BUS LOAD", value: "81.6", change: "-1.2", unit: "PERCENT").color(.periwinkle)
Readout("FLOW RATE", value: "0392").color(.tan)
Readout("CYCLE", value: "14:07").color(.peach)
}
HStack(alignment: .top, spacing: 24) {
VStack(alignment: .stretch, spacing: 12) {
Meter("FIELD HARMONICS", value: 0.72, showValue: true)
Meter("COOLANT RESERVE", value: 0.46, showValue: true).color(.orange)
Meter("BUFFER INTEGRITY", value: 0.93, showValue: true).color(.tan)
HStack(spacing: 6) {
Pill("ENGAGE", code: "22").color(.orange)
Pill("HOLD", code: "23")
Pill("RESET", code: "24", variant: .trailing).color(.lavender)
Spacer()
Toggle("DAMPERS", isOn: true)
}
}
.frame(maxWidth: .infinity)
VStack(alignment: .leading, spacing: 8) {
Caption("SUBSYSTEM 4417 · RELAY MATRIX")
Cascade("0815 2291 30 4417 562\n7730 0042 19 8851 004\n3318 6620 77 1209 935\n9902 4471 05 6634 210\n1186 3009 52 7740 618")
HStack(spacing: 6) {
StatusLight("NOMINAL").color(.blue)
StatusLight("SYNC").color(.lavender)
StatusLight("AUX OFF").color(.dim)
}
}
.frame(width: 300)
}
} footer: {
ConsoleFooter(code: "DECK 07 · SECTION 22")
}Environmental systems¶
A status grid in a lavender frame: six deck panels built from the DeckPanel component (each a
Panel of three SystemRows), and the atmospheric mix ledger as a spreadsheet.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | DECK | N2 | O2 | AR | CO2 | TOTAL |
| 2 | 03 | 78.1 | 20.9 | 0.93 | 0.04 | =SUM(B2:E2) |
| 3 | 04 | 78 | 20.8 | 0.93 | 0.05 | =SUM(B3:E3) |
| 4 | 05 | 78.1 | 20.9 | 0.92 | 0.04 | =SUM(B4:E4) |
| 5 | 07 | 79.9 | 18.2 | 0.95 | 0.31 | =SUM(B5:E5) |
Sensor sweep¶
The sensor display: a SensorSweep with three contacts, two charts in the palette's solid blocks,
range readouts and a contact timeline.
Personnel roster¶
The crew roster as a DataGrid of coloured number rows (the selected row lit gold), the duty
schedule beside it, and pill tabs for the shifts. Every name is invented.
| NAME | RANK | SECTION | DECK | ID |
|---|---|---|---|---|
| HOLLIS ARDEN | CMDR | OPERATIONS | 01 | 1022-77 |
| PRIYA OKONKWO | LT | ENVIRONMENTAL | 04 | 3381-09 |
| DACE MOREAU | LT | SENSORS | 03 | 4417-12 |
| ILSE TAVRIN | ENS | POWER | 07 | 5520-41 |
| JUNO ACHTERBERG | CPO | LIFE SUPPORT | 05 | 6603-58 |
| SEFA LINDQVIST | ENS | SENSORS | 03 | 7194-26 |
| RAMIL OSEI | LT | LOGISTICS | 08 | 8240-63 |
Red alert¶
The same console in its alarm state: the frame turns red, the striped banner takes the top of the content area and the alert banners list what tripped it.
Console log¶
The log terminal: a ConsoleLog holding a diagnostic session, the event timeline beside it and the
keyboard shortcuts of the console as Kbd keys.
Anatomy of a console¶
The parts of a console frame, numbered. The top elbow 1 carries the title and its code block
2; the side bar 3 is a column of SidebarButtons whose codes sit at the left and labels at the
right; readouts 4 put the label on a coloured block above a big number; meters 5 are segmented
bars; pills 6 are the buttons; and the bottom elbow 7 closes the frame with the footer bars.
There are more hidden packs on this ship. Try the phosphor deck, or step into the hologram suite.