Welcome to MPF!
The best way would be to use multiple slides at different priorities. Every slide currently being played is on a stack with highest-priority ones on top. Each slide by default has the priority of the mode that played it, but you can customize the priority in your slide player. (Note that custom priority values will be _added_ to the mode priority; they are not absolute values).
So for your situation you'd want to make your base slide just the stuff that would exist at the very bottom, and have a separate HUD slide that runs at a very high priority (to be higher than your multiball and other modes' slides). If you want an extra multiball HUD slide, add that too! Godot scenes can have transparent backgrounds, so it's no problem to have your text and such on the UI slide on top of another slide for background.
# Base mode: priority 200
slide_player:
mode_base_started:
base_slide:
action: play # will play at priority 200
hud_slide:
action: play
priority: 1000 # will play at priority 1200
mode_shot_hit:
mode_advance_slide:
action: play
expire: 8s
priority: 900 # will play at priority 1100
# Multiball mode: priority 800
slide_player:
mode_multiball_started:
multiball_slide:
action: play # will play at priority 800
multiball_hud_slide:
action: play
priority: 399 # will play at priority 1199
jackpot_hit:
jackpot_slide:
action: play
expire: 5s
priority: 20 # will play at priority 820
In that above example, you'll start with the base and hud slides. The multiball slide will cover the base slide but not the hud, and the multiball hud will be right next to the main hud. A mode advance slide will be higher than the multiball slide but still below the hud slides.
Hope that helps!