@@ -381,9 +381,9 @@ end)
|
||||
mp.commandv('script-message-to', 'uosc', 'get-version', mp.get_script_name())
|
||||
```
|
||||
|
||||
### `show-submenu <menu_id>`
|
||||
### `show-submenu <menu_id>`, `show-submenu-blurred <menu_id>`
|
||||
|
||||
Opens one of the submenus defined in `input.conf` (read on how to build those in the Menu documentation above).
|
||||
Opens one of the submenus defined in `input.conf` (read on how to build those in the Menu documentation above). To prevent 1st item being preselected, use `show-submenu-blurred` instead.
|
||||
|
||||
Parameters
|
||||
|
||||
|
@@ -1085,6 +1085,9 @@ end)
|
||||
--[[ MESSAGE HANDLERS ]]
|
||||
|
||||
mp.register_script_message('show-submenu', function(id) toggle_menu_with_items({submenu = id}) end)
|
||||
mp.register_script_message('show-submenu-blurred', function(id)
|
||||
toggle_menu_with_items({submenu = id, mouse_nav = true})
|
||||
end)
|
||||
mp.register_script_message('get-version', function(script)
|
||||
mp.commandv('script-message-to', script, 'uosc-version', config.version)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user