selected track and clip gets displayed at the bottom of the UI
This commit is contained in:
18
main.py
18
main.py
@ -62,7 +62,7 @@ class GuiMain:
|
||||
|
||||
self.rec_button = BinaryButton(
|
||||
self.screen,
|
||||
(self.screenW-70, self.screenH-40),
|
||||
(self.screenW-70, 15),
|
||||
(60, 30),
|
||||
"REC",
|
||||
False
|
||||
@ -90,8 +90,8 @@ class GuiMain:
|
||||
"12_4hJ7dS1yP5cT8kL3wR0vX6mN9bQ2fZ",
|
||||
"13_9jK5lM1nP6qR0sT8uV4wX3aB7eF2gH"
|
||||
]
|
||||
self.beatplayer.set_clip_names(fnames)
|
||||
self.beatplayer.set_track_names(fnames)
|
||||
self.beatplayer.set_clip_names(fnames[0:5])
|
||||
self.beatplayer.set_track_names(fnames[0:9])
|
||||
self.set_athmo_filenames(fnames)
|
||||
self.selected_athmo_srf = None
|
||||
|
||||
@ -116,8 +116,10 @@ class GuiMain:
|
||||
self.athmos.show_list = show
|
||||
self.show_knobs = not show
|
||||
self.beatplayer.show_selection = False
|
||||
"""
|
||||
if show == False:
|
||||
self.set_selected_athmo()
|
||||
"""
|
||||
|
||||
def show_beatplayer(self, show=True):
|
||||
self.beatplayer.show_selection = show
|
||||
@ -128,8 +130,12 @@ class GuiMain:
|
||||
self.athmos.index = index
|
||||
|
||||
def set_selected_athmo(self):
|
||||
self.selected_athmo_srf = font_helvetica16.render(
|
||||
self.athmos.get_name_by_index(self.athmos.index), False, color_primary)
|
||||
"""
|
||||
name = self.athmos.get_name_by_index(self.athmos.index)
|
||||
if len(name) > 20: name = name[0:22] + '...'
|
||||
self.selected_athmo_srf = font_helvetica16.render(name, False, color_primary)
|
||||
"""
|
||||
self.selected_athmo_srf = self.athmos.selected_item_srf
|
||||
|
||||
def set_athmo_filenames(self, filenames):
|
||||
self.athmos.set_filenames(filenames)
|
||||
@ -172,7 +178,7 @@ class GuiMain:
|
||||
|
||||
if self.selected_athmo_srf is not None:
|
||||
self.screen.blit(self.selected_athmo_srf,
|
||||
((self.screenW/2 - self.selected_athmo_srf.get_width())/2,
|
||||
(self.screenW*3 / 18,
|
||||
self.screenH - self.selected_athmo_srf.get_height()-10))
|
||||
|
||||
if self.loop_input_mode is not None:
|
||||
|
||||
Reference in New Issue
Block a user