mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
add indicator
This commit is contained in:
@@ -9,7 +9,7 @@ import pyray as ray
|
||||
|
||||
from libs.animation import Animation, MoveAnimation
|
||||
from libs.audio import audio
|
||||
from libs.global_objects import Nameplate
|
||||
from libs.global_objects import Nameplate, Indicator
|
||||
from libs.texture import tex
|
||||
from libs.tja import TJAParser, test_encodings
|
||||
from libs.transition import Transition
|
||||
@@ -37,6 +37,7 @@ class SongSelectScreen:
|
||||
self.screen_init = False
|
||||
self.root_dir = global_data.config["paths"]["tja_path"]
|
||||
self.screen_width = screen_width
|
||||
self.indicator = Indicator(Indicator.State.SELECT)
|
||||
|
||||
def load_navigator(self):
|
||||
self.navigator = FileNavigator(self.root_dir)
|
||||
@@ -360,6 +361,7 @@ class SongSelectScreen:
|
||||
self.diff_selector_move_1.update(get_current_ms())
|
||||
self.diff_selector_move_2.update(get_current_ms())
|
||||
self.nameplate.update(get_current_ms())
|
||||
self.indicator.update(get_current_ms())
|
||||
|
||||
if self.text_fade_out.is_finished:
|
||||
self.selected_song = True
|
||||
@@ -495,6 +497,8 @@ class SongSelectScreen:
|
||||
if self.game_transition is not None:
|
||||
self.game_transition.draw()
|
||||
|
||||
self.indicator.draw(410, 575)
|
||||
|
||||
def draw_3d(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user