Passing a String to image widget as filename #65
-
I would like to make a player variable dependant image show. image widget says that it expects a string as the image name. But it will not accept a string from variable. player_vars: slides: So is this how it is or am I perhaps missing something? Is there any way to get the image defined other than directly specifying? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Look at this section. You are missing the syntax (current_player.name). You have to tell it what name is, as that could exist multiple places. This tells it to look at the player variables for the current player to return name. Then it can pass through. |
Beta Was this translation helpful? Give feedback.
https://docs.missionpinball.org/en/stable/displays/widgets/reusable_widgets.html#dynamically-choosing-a-widget-based-on-variables
Look at this section. You are missing the syntax (current_player.name).
You have to tell it what name is, as that could exist multiple places. This tells it to look at the player variables for the current player to return name. Then it can pass through.