mpf.config_players.show_player
¶
Show config player.
-
class
mpf.config_players.show_player.
ShowPlayer
(machine)¶ Plays, starts, stops, pauses, resumes or advances shows based on config.
Initialise config player.
-
clear_context
(context)¶ Stop running shows from context.
-
config_play_callback
(settings, calling_context, priority=0, mode=None, **kwargs)¶ Callback for standalone player.
-
get_express_config
(value)¶ Parse express config.
-
get_full_config
(value)¶ Return full config.
-
get_list_config
(value)¶ Parse config list.
-
mode_start
(config, priority, mode)¶ Add events for mode.
-
mode_stop
(mode)¶ Remove events for mode.
-
play
(settings, context, calling_context, priority=0, queue=None, **kwargs)¶ Play, start, stop, pause, resume or advance show based on config.
-
process_config
(config, **kwargs)¶ Process system-wide config.
Called every time mpf starts, regardless of whether config was built from cache or config files.
-
process_mode_config
(config, root_config_dict, mode, **kwargs)¶ Parse mode config.
-
register_player_events
(config, mode=None, priority=0)¶ Register events for standalone player.
-
show_play_callback
(settings, priority, calling_context, show_tokens, context)¶ Callback if used in a show.
-
show_stop_callback
(context)¶ Callback if show stops.
-
unload_player_events
(key_list)¶ Remove event for standalone player.
-
validate_config
(config)¶ Validate this player’s section of a config file (either a machine-wide config or a mode config).
Parameters: - Returns: A dict in the same format, but passed through the config
- validator.
-
validate_config_entry
(settings, name)¶ Validate one entry of this player.
-
-
mpf.config_players.show_player.
player_cls
¶ alias of
ShowPlayer