AGofficial's picture
Upload 96 files
e95022e verified
Raw
History Blame Contribute Delete
889 Bytes
"""Configuration values for the Dream Chat Engine window and renderer."""
from __future__ import annotations
from dataclasses import dataclass
@dataclass
class EngineConfig:
title: str = "Dream Chat Engine"
width: int = 1280
height: int = 720
min_width: int = 800
min_height: int = 450
fps: int = 30
text_speed: float = 42.0
max_input_chars: int = 240
character_max_height_ratio: float = 0.92
character_max_width_ratio: float = 0.46
dialogue_margin: int = 24
dialogue_height: int = 188
dialogue_radius: int = 8
dialogue_alpha: int = 205
dialogue_padding_x: int = 30
dialogue_padding_y: int = 18
name_font_size: int = 28
text_font_size: int = 30
prompt_font_size: int = 23
line_spacing: int = 8
auto_advance: bool = False
end_speaker: str = "Demo"
end_message: str | None = "End of demo."