Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Show machine and player variables in Text UI #1119
The idea is to show all machine variables (https://github.com/missionpinball/mpf/blob/dev/mpf/core/machine.py#L792) and player variables (https://github.com/missionpinball/mpf/blob/dev/mpf/core/player.py). Machine vars are generally accessible via self.machine.machine_var. Player vars are accessible (during a game only) via self.machine.game.player.vars.
The text UI is rendered here: https://github.com/missionpinball/mpf/blob/dev/mpf/core/text_ui.py
The documentation is mostly accurate but there might be more during running. I guess we could to add a getter for all machine variables and player vars. However, you could also loop over the variable i listed in my earlier post. That kind of bypasses the getter.