dcs_liberation/qt_ui/uiflags.py
Dan Albert 8ed0efe241 Hide sim speed controls behind a flag.
Flag is only controlled from the command-line because redoing Qt layout
usually breaks things. Off by default in 6 since this feature is nowhere
near done enough to even be used experimentally (most changes to the ATO
made after the sim begins will break the game).

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2535.
2022-11-19 15:55:03 -08:00

18 lines
531 B
Python

from dataclasses import dataclass
@dataclass(frozen=True)
class UiFlags:
"""Flags for the UI that are not exposed in settings.
These flags are hidden from the settings UI because they can only be controlled from
the command-line during startup.
"""
# True if the front-end should connect to the development react webserver instead of
# the built front-end app.
dev_ui_webserver: bool
# True if the play/pause/speed controls should be visible in the top panel.
show_sim_speed_controls: bool