showPanel
Description
Client action field to show or hide the Maestro panel.
Type
boolean
Usage
' Show the panel
m.lib.showPanel = true
' Hide the panel
m.lib.showPanel = false
Example
' Toggle panel visibility on button press
sub onTogglePanelButton()
m.lib.showPanel = not m.lib.showPanel
end sub
' Show panel when user presses options button
sub onRemoteButtonPress(key as String)
if key = "options" then
m.lib.showPanel = true
m.lib.callFunc("setPanelFocus")
end if
end sub
' Hide panel when video starts playing
sub onVideoStarted()
if m.autohidePanelOnPlay then
m.lib.showPanel = false
end if
end sub
Best Practices
- Combine with
setPanelFocus()when showing the panel - Consider user preferences for auto-show/hide
- Provide clear UI indicators for panel visibility
- Handle focus management when showing/hiding