Hey,
to make it work, i did it like this.
- IMPORTANT -> i have one file for each widget.
- I create a "name_of_widget.tscn" in the "widgets" folder, the root node is a "MPFWidget"
- you put everything you want inside this widget
- then you load it in your MPF mode:
widget_player:
event_play:
name_of_widget:
priority: XXXX (for the depth of display)
if you want to remove it:
widget_player:
event_remove:
name_of_widget:
action: remove
if you want to use custom code when your widget is already loaded:
widget_player:
event_3:
name_of_widget:
action: method
method: play_an_extra_special_animation
func
play_an_extra_special_animation (_settings, _kwargs):
$AnimationPlayer.play("
play_an_extra_special_animation")
Here is my mystery_mode structure: