From 91a1b17104e6417cb2c77c838c85fabcff9e7d11 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 14 Jul 2016 20:04:59 +0200 Subject: Use - as command-name separator everywhere Old-style commands using _ as separator (e.g. show_progress) were still used in some places, including documentation and configuration files. This commit updates all such instances to the new style (show-progress) so that commands are easier to find in the manual. --- player/lua/defaults.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'player/lua/defaults.lua') diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua index e499ecc917..901a8cf246 100644 --- a/player/lua/defaults.lua +++ b/player/lua/defaults.lua @@ -42,8 +42,8 @@ function mp.input_disable_section(section) mp.commandv("disable-section", section) end --- For dispatching script_binding. This is sent as: --- script_message_to $script_name $binding_name $keystate +-- For dispatching script-binding. This is sent as: +-- script-message-to $script_name $binding_name $keystate -- The array is indexed by $binding_name, and has functions like this as value: -- fn($binding_name, $keystate) local dispatch_key_bindings = {} @@ -412,7 +412,7 @@ mp.register_event("shutdown", function() mp.keep_running = false end) mp.register_event("client-message", message_dispatch) mp.register_event("property-change", property_change) --- sent by "script_binding" +-- sent by "script-binding" mp.register_script_message("key-binding", dispatch_key_binding) mp.msg = { -- cgit v1.2.3