mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
remove auto git update
This commit is contained in:
@@ -50,11 +50,13 @@ def build_song_hashes(output_dir=Path("cache")):
|
|||||||
all_tja_files: list[Path] = []
|
all_tja_files: list[Path] = []
|
||||||
for root_dir in tja_paths:
|
for root_dir in tja_paths:
|
||||||
root_path = Path(root_dir)
|
root_path = Path(root_dir)
|
||||||
|
'''
|
||||||
if (root_path / '.git').exists():
|
if (root_path / '.git').exists():
|
||||||
repo = Repo(root_path)
|
repo = Repo(root_path)
|
||||||
origin = repo.remotes.origin
|
origin = repo.remotes.origin
|
||||||
origin.pull()
|
origin.pull()
|
||||||
print('Pulled latest from', root_path)
|
print('Pulled latest from', root_path)
|
||||||
|
'''
|
||||||
all_tja_files.extend(root_path.rglob("*.tja"))
|
all_tja_files.extend(root_path.rglob("*.tja"))
|
||||||
|
|
||||||
global_data.total_songs = len(all_tja_files)
|
global_data.total_songs = len(all_tja_files)
|
||||||
|
|||||||
@@ -610,7 +610,9 @@ class YellowBox:
|
|||||||
self.tja = tja
|
self.tja = tja
|
||||||
self.subtitle = None
|
self.subtitle = None
|
||||||
if self.tja is not None:
|
if self.tja is not None:
|
||||||
self.subtitle = OutlinedText(self.tja.metadata.subtitle.get(global_data.config['general']['language'], ''), 30, ray.WHITE, ray.BLACK, outline_thickness=5, vertical=True)
|
subtitle_text = self.tja.metadata.subtitle.get(global_data.config['general']['language'], '')
|
||||||
|
font_size = 30 if len(subtitle_text) < 30 else 20
|
||||||
|
self.subtitle = OutlinedText(subtitle_text, font_size, ray.WHITE, ray.BLACK, outline_thickness=5, vertical=True)
|
||||||
|
|
||||||
self.left_out = tex.get_animation(9)
|
self.left_out = tex.get_animation(9)
|
||||||
self.right_out = tex.get_animation(10)
|
self.right_out = tex.get_animation(10)
|
||||||
@@ -759,7 +761,7 @@ class YellowBox:
|
|||||||
if self.subtitle is not None:
|
if self.subtitle is not None:
|
||||||
texture = self.subtitle.texture
|
texture = self.subtitle.texture
|
||||||
y = self.bottom_y - min(texture.height, 410) + 10 + self.top_y_out.attribute - self.top_y_out.start_position
|
y = self.bottom_y - min(texture.height, 410) + 10 + self.top_y_out.attribute - self.top_y_out.start_position
|
||||||
dest = ray.Rectangle(x - 22, y, texture.width, min(texture.height, 410))
|
dest = ray.Rectangle(x - 15, y, texture.width, min(texture.height, 410))
|
||||||
self.subtitle.draw(self.subtitle.default_src, dest, ray.Vector2(0, 0), 0, ray.WHITE)
|
self.subtitle.draw(self.subtitle.default_src, dest, ray.Vector2(0, 0), 0, ray.WHITE)
|
||||||
|
|
||||||
def _draw_yellow_box(self):
|
def _draw_yellow_box(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user