Remove unused images, hide menu on pause and playback, work with next ep
This commit is contained in:
parent
c91f452db1
commit
ffd3a3ee7b
|
@ -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.
|
||||
'
|
||||
sub inactiveCheck()
|
||||
if LCase(m.top.playbackState) <> "playing" then return
|
||||
|
||||
if m.deviceInfo.timeSinceLastKeypress() >= m.top.inactiveTimeout
|
||||
m.top.action = "hide"
|
||||
end if
|
||||
|
|
|
@ -148,7 +148,7 @@ end function
|
|||
sub handleVideoPlayPauseAction()
|
||||
' If video is paused, resume it
|
||||
if m.top.state = "paused"
|
||||
m.top.control = "resume"
|
||||
handleHideAction(true)
|
||||
return
|
||||
end if
|
||||
|
||||
|
@ -379,6 +379,8 @@ end sub
|
|||
'
|
||||
' Runs Next Episode button animation and sets focus to button
|
||||
sub showNextEpisodeButton()
|
||||
if m.pauseMenu.visible then return
|
||||
|
||||
if m.global.session.user.configuration.EnableNextEpisodeAutoPlay and not m.nextEpisodeButton.visible
|
||||
m.showNextEpisodeButtonAnimation.control = "start"
|
||||
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 key = "down"
|
||||
if m.pauseMenu.visible then return true
|
||||
|
||||
' Do not show subtitle selection for intro videos
|
||||
if not m.LoadMetaDataTask.isIntro
|
||||
m.top.selectSubtitlePressed = true
|
||||
m.pauseMenu.visible = true
|
||||
m.pauseMenu.hasFocus = true
|
||||
m.pauseMenu.setFocus(true)
|
||||
return true
|
||||
end if
|
||||
|
||||
else if key = "up"
|
||||
' Do not show playback info for intro videos
|
||||
if not m.LoadMetaDataTask.isIntro
|
||||
m.top.selectPlaybackInfoPressed = true
|
||||
m.pauseMenu.visible = true
|
||||
m.pauseMenu.hasFocus = true
|
||||
m.pauseMenu.setFocus(true)
|
||||
return true
|
||||
end if
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user