Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slide definition cannot mix widgets from different areas #407

Open
cfbenn opened this issue Oct 21, 2020 · 0 comments
Open

Slide definition cannot mix widgets from different areas #407

cfbenn opened this issue Oct 21, 2020 · 0 comments

Comments

@cfbenn
Copy link

cfbenn commented Oct 21, 2020

This is my current slide definition in my base mode.

slides:
w_slide_base:
background_color: black
z: 1
widgets:
- widget: w_player_infobox_1
- widget: w_player_infobox_2
- widget: w_player_infobox_3
- widget: w_player_score
- widget: w_player_hint_message
- widget: w_player_status_message
- widget: w_base_video_loop

If all widgets are defined in the global config (not in the modes), then it works. If I try to define all of them in the global config and define the last one (w_base_video_loop) in the base config, I get an error.

Using this config:

**slides:
w_base:
background_color: black
z: 1
widgets:
- widget: w_player_infobox_1
- widget: w_player_infobox_2
- widget: w_player_infobox_3
- widget: w_player_score
- widget: w_player_hint_message
- widget: w_player_status_message
- widget: w_base_video_loop1

widgets:
w_base_video_loop1:

  • type: video
    video: base_video_loop_1
    height: 810
    width: 1440
    anchor_x: right
    anchor_y: top
    x: right
    y: top-96
    z: 99
    volume: 0
    auto_play: true
    end_behavior: loop
    control_events:
    • event: mode_base_stopping
      action: stop**

I get the following error:

ValueError: "w_widget_base_video_loop1" is not a valid widget name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant