mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
1.0 release
This commit is contained in:
@@ -107,7 +107,7 @@ class Chibi2(BaseChibi):
|
||||
self.rotate.restart()
|
||||
|
||||
def draw(self, tex: TextureWrapper):
|
||||
origin = ray.Vector2(64, 64)
|
||||
origin = ray.Vector2(tex.textures[self.name][str(self.index)].width//2, tex.textures[self.name][str(self.index)].height//2)
|
||||
tex.draw_texture(self.name, str(self.index), x=self.hori_move.attribute+origin.x, y=origin.y+(self.is_2p*tex.skin_config["game_2p_offset"].y), origin=origin, rotation=self.rotate.attribute)
|
||||
|
||||
class Chibi4(BaseChibi):
|
||||
|
||||
@@ -597,7 +597,7 @@ class DanBox(BaseBox):
|
||||
def _draw_closed(self, x: float, y: float):
|
||||
tex.draw_texture('box', 'folder', frame=self.texture_index, x=x)
|
||||
if self.name is not None:
|
||||
self.name.draw(outline_color=ray.BLACK, x=x + tex.skin_config["song_box_name"].x - int(self.name.texture.width / 2), y=y+tex.skin_config["song_box_name"].height, y2=min(self.name.texture.height, tex.skin_config["song_box_name"].height)-self.name.texture.height)
|
||||
self.name.draw(outline_color=ray.BLACK, x=x + tex.skin_config["song_box_name"].x - int(self.name.texture.width / 2), y=y+(tex.skin_config["song_box_name"].height//2), y2=min(self.name.texture.height, tex.skin_config["song_box_name"].height)-self.name.texture.height)
|
||||
|
||||
def _draw_open(self, x: float, y: float, fade_override: Optional[float], is_ura: bool):
|
||||
if fade_override is not None:
|
||||
|
||||
Reference in New Issue
Block a user