Skip to content

Slide definition cannot mix widgets from different areas #407

@cfbenn

Description

@cfbenn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions