class

Launcher::App

Inherits Egui::App < Egui::Reactive < Reference < Object

Constants

ACCENT = Egui::Color32.rgb(206, 122, 30)
ACCENT_DARK = Egui::Color32.rgb(170, 95, 20)
ACCENT_LIGHT = Egui::Color32.rgb(222, 146, 62)
CARD_BOTTOM = Egui::Color32.rgb(23, 26, 33)
CARD_FILL = Egui::Color32.rgb(26, 29, 37)

Elevated surfaces (cards): fill, header gradient ends, hairline stroke, drop shadow.

CARD_ROUNDING = 12.0
CARD_SHADOW = Egui::Color32.rgba(0, 0, 0, 110)
CARD_STROKE = Egui::Color32.rgba(255, 255, 255, 20)
CARD_TOP = Egui::Color32.rgb(33, 37, 48)
COLOR_DANGER = Egui::Color32.rgb(235, 90, 90)
COLOR_ERROR = Egui::Color32.rgb(240, 100, 100)
COLOR_MUTED = Egui::Color32.rgb(154, 161, 176)
COLOR_OK = Egui::Color32.rgb(120, 220, 120)
COLOR_WARN = Egui::Color32.rgb(240, 200, 80)
EXML_EMBEDDED = {{ read_file("assets/launcher.exml") }}

Compile-time fallback copy of the markup (resolved from the compile working directory — launcher/ — like the i18n YAML embed): the file next to the binary (hot-reloaded while it exists) wins, the embedded document keeps a distributed binary self-contained.

MOD_DEFAULT_MODE = "cop"
MOD_ID = "mod"

The "Modified game" pseudo-entry: not a catalog game but a wizard flavor where the user picks the engine compatibility mode.

ON_ACCENT = Egui::Color32.rgb(40, 27, 6)
SETTINGS = "root/settings"

Constructors

Class methods

load_exml

LAUNCHER_EXML env override, then assets/launcher.exml next to the binary (hot-reloadable), else the embedded copy.

Source
xr_theme

The "Zone" theme: dark browser-style palette plus class rules so every button in the app (wizard footer, exml chrome, dialogs) picks up the rounded/shadowed look. Derived from the egui.cr defaults — a palette swap via DefaultTheme.build, then a few sheet rules on top.

Source

Instance methods

update(ctx : Egui::Context) : Nil
Source

Nested types