mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-05 16:00:06 +01:00
fixed tabbed banner, shader setting
This commit is contained in:
14
actions.py
14
actions.py
@@ -136,17 +136,21 @@ class Actions(object):
|
||||
|
||||
|
||||
def cycle_display_mode(self):
|
||||
display_modes = [["BROWSER",'NAV_BROWSER'],["SETTINGS",'NAV_SETTINGS'],[ "SAMPLER",'PLAYER']]
|
||||
if self.data.settings['video']['VIDEOPLAYER_BACKEND']['value'] != 'omxplayer':
|
||||
display_modes.append(["SHADERS",'NAV_SHADERS'])
|
||||
if self.data.settings['detour']['TRY_DEMO']['value'] == 'enabled':
|
||||
display_modes.append(["DETOUR",'NAV_DETOUR'])
|
||||
display_modes = self.data.get_display_modes_list(with_nav_mode=True)
|
||||
|
||||
current_mode_index = [index for index, i in enumerate(display_modes) if self.data.display_mode in i][0]
|
||||
next_mode_index = (current_mode_index + 1) % len(display_modes)
|
||||
self.data.display_mode = display_modes[next_mode_index][0]
|
||||
self.data.control_mode = display_modes[next_mode_index][1]
|
||||
|
||||
def cycle_display_mode_back(self):
|
||||
display_modes = self.data.get_display_modes_list(with_nav_mode=True)
|
||||
|
||||
current_mode_index = [index for index, i in enumerate(display_modes) if self.data.display_mode in i][0]
|
||||
next_mode_index = (current_mode_index - 1) % len(display_modes)
|
||||
self.data.display_mode = display_modes[next_mode_index][0]
|
||||
self.data.control_mode = display_modes[next_mode_index][1]
|
||||
|
||||
|
||||
def toggle_action_on_player(self):
|
||||
play = 'play' in self.data.settings['sampler']['ON_ACTION']['value']
|
||||
|
||||
Reference in New Issue
Block a user