module

MJ::Config

Constants

CONFIG_DIR = ".config/mj"
CONFIG_FILE = "config.yml"

Class methods

backdrops_dir

Root of the backdrop library — full-frame background images for diorama scenes (the cut:false palette entries; props supply cut:true). Same relocatable pattern as props_dir. Resolved in load! to $MJ_BACKDROPS_DIR, else $XDG_DATA_HOME/mj/backdrops, else ~/.local/share/mj/backdrops.

Source
backdrops_dir=(backdrops_dir : String)

Root of the backdrop library — full-frame background images for diorama scenes (the cut:false palette entries; props supply cut:true). Same relocatable pattern as props_dir. Resolved in load! to $MJ_BACKDROPS_DIR, else $XDG_DATA_HOME/mj/backdrops, else ~/.local/share/mj/backdrops.

Source
config_path
Source
data_dir
Source
data_dir=(data_dir : String)
Source
default_backdrops_dir
Source
default_props_dir

Default library roots, honouring the XDG base-dir spec.

Source
default_scenes_dir
Source
init!
Source
initialized?
Source
load!
Source
openai_api_key
Source
openai_api_key=(openai_api_key : String)
Source
port
Source
port=(port : Int32)
Source
props_dir

Root of the prop library — a self-contained, relocatable tree (one folder per prop). Kept OUTSIDE the repo by default so it survives repo moves and maps cleanly onto a future TransFS/DataDungeon backend (switching backends = repoint this root + adapter). Resolved in load! to $MJ_PROPS_DIR, else $XDG_DATA_HOME/mj/props, else ~/.local/share/mj/props.

Source
props_dir=(props_dir : String)

Root of the prop library — a self-contained, relocatable tree (one folder per prop). Kept OUTSIDE the repo by default so it survives repo moves and maps cleanly onto a future TransFS/DataDungeon backend (switching backends = repoint this root + adapter). Resolved in load! to $MJ_PROPS_DIR, else $XDG_DATA_HOME/mj/props, else ~/.local/share/mj/props.

Source
runware_api_key
Source
runware_api_key=(runware_api_key : String)
Source
scenes_dir

Root of the scene library — diorama compositions saved as <name>.json. Same relocatable pattern as props/backdrops. Resolved in load! to $MJ_SCENES_DIR, else $XDG_DATA_HOME/mj/scenes, else ~/.local/share/mj/scenes.

Source
scenes_dir=(scenes_dir : String)

Root of the scene library — diorama compositions saved as <name>.json. Same relocatable pattern as props/backdrops. Resolved in load! to $MJ_SCENES_DIR, else $XDG_DATA_HOME/mj/scenes, else ~/.local/share/mj/scenes.

Source
xdg_data_home

XDG data base ($XDG_DATA_HOME, else ~/.local/share).

Source

Nested types