Showing the changes to player/lua/osc.lua (1 of 1 file). Show all
Unified · Split
| @@ -1008,7 +1008,7 @@ local function add_layout(name) · 1007 unmodified lines | ||
| 1008 | 1008 | |
| 1009 | 1009 | return elements[name].layout |
| 1010 | 1010 | else |
| 1011 | − msg.error("Can't add_layout to element \""..name.."\", doesn't exist.") | |
| 1011 | + msg.error("Can't add_layout to element '"..name.."', doesn't exist.") | |
| 1012 | 1012 | end |
| 1013 | 1013 | end |
| 1014 | 1014 | |
| @@ -2718,15 +2718,15 @@ mp.register_script_message("osc-idlescreen", idlescreen_visibility) · 1703 unmodified lines | ||
| 2718 | 2718 | -- Validate string type user options |
| 2719 | 2719 | local function validate_user_opts() |
| 2720 | 2720 | if layouts[user_opts.layout] == nil then |
| 2721 | − msg.warn("Invalid setting \""..user_opts.layout.."\" for layout") | |
| 2721 | + msg.warn("Invalid setting '"..user_opts.layout.."' for layout") | |
| 2722 | 2722 | user_opts.layout = "bottombar" |
| 2723 | 2723 | end |
| 2724 | 2724 | |
| 2725 | 2725 | if user_opts.seekbarstyle ~= "bar" and |
| 2726 | 2726 | user_opts.seekbarstyle ~= "diamond" and |
| 2727 | 2727 | user_opts.seekbarstyle ~= "knob" then |
| 2728 | − msg.warn("Invalid setting \"" .. user_opts.seekbarstyle | |
| 2729 | − .. "\" for seekbarstyle") | |
| 2728 | + msg.warn("Invalid setting '" .. user_opts.seekbarstyle | |
| 2729 | + .. "' for seekbarstyle") | |
| 2730 | 2730 | user_opts.seekbarstyle = "bar" |
| 2731 | 2731 | end |
| 2732 | 2732 | |
| @@ -2735,29 +2735,29 @@ local function validate_user_opts() · 2 unmodified lines | ||
| 2735 | 2735 | user_opts.seekrangestyle ~= "slider" and |
| 2736 | 2736 | user_opts.seekrangestyle ~= "inverted" and |
| 2737 | 2737 | user_opts.seekrangestyle ~= "none" then |
| 2738 | − msg.warn("Invalid setting \"" .. user_opts.seekrangestyle | |
| 2739 | − .. "\" for seekrangestyle") | |
| 2738 | + msg.warn("Invalid setting '" .. user_opts.seekrangestyle | |
| 2739 | + .. "' for seekrangestyle") | |
| 2740 | 2740 | user_opts.seekrangestyle = "inverted" |
| 2741 | 2741 | end |
| 2742 | 2742 | |
| 2743 | 2743 | if user_opts.seekrangestyle == "slider" and |
| 2744 | 2744 | user_opts.seekbarstyle == "bar" then |
| 2745 | 2745 | msg.warn( |
| 2746 | − "Using \"slider\" seekrangestyle together with \"bar\" seekbarstyle is not supported") | |
| 2746 | + "Using 'slider' seekrangestyle together with 'bar' seekbarstyle is not supported") | |
| 2747 | 2747 | user_opts.seekrangestyle = "inverted" |
| 2748 | 2748 | end |
| 2749 | 2749 | |
| 2750 | 2750 | if user_opts.windowcontrols ~= "auto" and |
| 2751 | 2751 | user_opts.windowcontrols ~= "yes" and |
| 2752 | 2752 | user_opts.windowcontrols ~= "no" then |
| 2753 | − msg.warn("windowcontrols cannot be \"" .. | |
| 2754 | − user_opts.windowcontrols .. "\". Ignoring.") | |
| 2753 | + msg.warn("windowcontrols cannot be '" .. | |
| 2754 | + user_opts.windowcontrols .. "'. Ignoring.") | |
| 2755 | 2755 | user_opts.windowcontrols = "auto" |
| 2756 | 2756 | end |
| 2757 | 2757 | if user_opts.windowcontrols_alignment ~= "right" and |
| 2758 | 2758 | user_opts.windowcontrols_alignment ~= "left" then |
| 2759 | − msg.warn("windowcontrols_alignment cannot be \"" .. | |
| 2760 | − user_opts.windowcontrols_alignment .. "\". Ignoring.") | |
| 2759 | + msg.warn("windowcontrols_alignment cannot be '" .. | |
| 2760 | + user_opts.windowcontrols_alignment .. "'. Ignoring.") | |
| 2761 | 2761 | user_opts.windowcontrols_alignment = "right" |
| 2762 | 2762 | end |
| 2763 | 2763 | |