Skip to content

Commit

Permalink
Merge pull request #21 from cyl0/idlescreen
Browse files Browse the repository at this point in the history
implement idlescreen
  • Loading branch information
cyl0 authored Jun 11, 2022
2 parents 1c14ccc + e813d28 commit ccaf085
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mordenx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ local utils = require 'mp.utils'
local user_opts = {
showwindowed = true, -- show OSC when windowed?
showfullscreen = true, -- show OSC when fullscreen?
idlescreen = true, -- draw logo and text when idle
scalewindowed = 1.0, -- scaling of the controller when windowed
scalefullscreen = 1.0, -- scaling of the controller when fullscreen
scaleforcedwindow = 2.0, -- scaling when rendered on a forced window
Expand Down Expand Up @@ -2089,9 +2090,11 @@ function tick()
if (not state.enabled) then return end

if (state.idle) then
show_logo()
-- render idle message
msg.trace('idle message')
if user_opts.idlescreen then
show_logo()
-- render idle message
msg.trace('idle message')
end

if state.showhide_enabled then
mp.disable_key_bindings('showhide')
Expand Down

0 comments on commit ccaf085

Please sign in to comment.