Remove unused images, hide menu on pause and playback, work with next ep

This commit is contained in:
1hitsong 2023-11-08 19:50:55 -05:00
parent c91f452db1
commit ffd3a3ee7b
4 changed files with 9 additions and 9 deletions

View File

@ -91,8 +91,6 @@ end sub
' inactiveCheck: Checks if the time since last keypress is greater than or equal to the allowed inactive time of the pause menu. ' inactiveCheck: Checks if the time since last keypress is greater than or equal to the allowed inactive time of the pause menu.
' '
sub inactiveCheck() sub inactiveCheck()
if LCase(m.top.playbackState) <> "playing" then return
if m.deviceInfo.timeSinceLastKeypress() >= m.top.inactiveTimeout if m.deviceInfo.timeSinceLastKeypress() >= m.top.inactiveTimeout
m.top.action = "hide" m.top.action = "hide"
end if end if

View File

@ -148,7 +148,7 @@ end function
sub handleVideoPlayPauseAction() sub handleVideoPlayPauseAction()
' If video is paused, resume it ' If video is paused, resume it
if m.top.state = "paused" if m.top.state = "paused"
m.top.control = "resume" handleHideAction(true)
return return
end if end if
@ -379,6 +379,8 @@ end sub
' '
' Runs Next Episode button animation and sets focus to button ' Runs Next Episode button animation and sets focus to button
sub showNextEpisodeButton() sub showNextEpisodeButton()
if m.pauseMenu.visible then return
if m.global.session.user.configuration.EnableNextEpisodeAutoPlay and not m.nextEpisodeButton.visible if m.global.session.user.configuration.EnableNextEpisodeAutoPlay and not m.nextEpisodeButton.visible
m.showNextEpisodeButtonAnimation.control = "start" m.showNextEpisodeButtonAnimation.control = "start"
m.nextEpisodeButton.setFocus(true) m.nextEpisodeButton.setFocus(true)
@ -592,18 +594,18 @@ function onKeyEvent(key as string, press as boolean) as boolean
if not press then return false if not press then return false
if key = "down" if key = "down"
if m.pauseMenu.visible then return true
' Do not show subtitle selection for intro videos
if not m.LoadMetaDataTask.isIntro if not m.LoadMetaDataTask.isIntro
m.top.selectSubtitlePressed = true m.pauseMenu.visible = true
m.pauseMenu.hasFocus = true
m.pauseMenu.setFocus(true)
return true return true
end if end if
else if key = "up" else if key = "up"
' Do not show playback info for intro videos
if not m.LoadMetaDataTask.isIntro if not m.LoadMetaDataTask.isIntro
m.top.selectPlaybackInfoPressed = true m.pauseMenu.visible = true
m.pauseMenu.hasFocus = true
m.pauseMenu.setFocus(true)
return true return true
end if end if

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB