mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
chore: organize imports
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import cffi
|
||||
import platform
|
||||
import logging
|
||||
import platform
|
||||
from pathlib import Path
|
||||
|
||||
from libs.config import VolumeConfig
|
||||
from libs.config import get_config
|
||||
import cffi
|
||||
|
||||
from libs.config import VolumeConfig, get_config
|
||||
|
||||
ffi = cffi.FFI()
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import random
|
||||
|
||||
from libs.animation import Animation
|
||||
from libs.bg_objects.bg_fever import BGFever4
|
||||
from libs.bg_objects.bg_normal import BGNormal2
|
||||
@@ -9,6 +10,7 @@ from libs.bg_objects.renda import RendaController
|
||||
from libs.global_data import PlayerNum
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
|
||||
class Background:
|
||||
def __init__(self, tex: TextureWrapper, player_num: PlayerNum, bpm: float, path: str, max_dancers: int):
|
||||
self.tex_wrapper = tex
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import random
|
||||
|
||||
from libs.bg_objects.bg_fever import BGFeverBase
|
||||
from libs.bg_objects.bg_normal import BGNormalBase
|
||||
from libs.bg_objects.chibi import ChibiController
|
||||
from libs.bg_objects.dancer import BaseDancer, BaseDancerGroup
|
||||
from libs.bg_objects.don_bg import DonBG4
|
||||
from libs.bg_objects.fever import Fever3
|
||||
from libs.bg_objects.footer import Footer
|
||||
from libs.bg_objects.renda import RendaController
|
||||
from libs.global_data import PlayerNum
|
||||
from libs.texture import TextureWrapper
|
||||
from libs.bg_objects.don_bg import DonBG4
|
||||
|
||||
|
||||
class Background:
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import random
|
||||
|
||||
from libs.bg_objects.bg_fever import BGFeverBase
|
||||
from libs.bg_objects.bg_normal import BGNormalBase
|
||||
from libs.bg_objects.chibi import ChibiController
|
||||
from libs.bg_objects.dancer import BaseDancer, BaseDancerGroup
|
||||
from libs.bg_objects.don_bg import DonBG4
|
||||
from libs.bg_objects.fever import Fever3
|
||||
from libs.bg_objects.renda import RendaController
|
||||
from libs.global_data import PlayerNum
|
||||
from libs.texture import TextureWrapper
|
||||
from libs.bg_objects.don_bg import DonBG4
|
||||
|
||||
|
||||
class Background:
|
||||
|
||||
@@ -6,6 +6,7 @@ from libs.bg_objects.footer import Footer
|
||||
from libs.global_data import PlayerNum
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
|
||||
class Background:
|
||||
def __init__(self, tex: TextureWrapper, player_num: PlayerNum, bpm: float, path: str, max_dancers: int):
|
||||
self.tex_wrapper = tex
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import pyray as ray
|
||||
|
||||
from libs.animation import Animation
|
||||
from libs.bg_objects.bg_fever import BGFeverBase
|
||||
from libs.bg_objects.bg_normal import BGNormalBase
|
||||
from libs.bg_objects.chibi import ChibiController
|
||||
from libs.bg_objects.dancer import BaseDancerGroup
|
||||
from libs.bg_objects.don_bg import DonBGBase
|
||||
from libs.bg_objects.fever import BaseFever
|
||||
from libs.bg_objects.footer import Footer
|
||||
from libs.bg_objects.renda import RendaController
|
||||
from libs.global_data import PlayerNum
|
||||
from libs.texture import TextureWrapper
|
||||
from libs.bg_objects.don_bg import DonBGBase
|
||||
|
||||
import pyray as ray
|
||||
|
||||
|
||||
class Background:
|
||||
|
||||
@@ -4,11 +4,11 @@ from libs.bg_objects.bg_fever import BGFeverBase
|
||||
from libs.bg_objects.bg_normal import BGNormalBase
|
||||
from libs.bg_objects.chibi import ChibiController
|
||||
from libs.bg_objects.dancer import BaseDancerGroup
|
||||
from libs.bg_objects.don_bg import DonBGBase
|
||||
from libs.bg_objects.footer import Footer
|
||||
from libs.bg_objects.renda import RendaController
|
||||
from libs.global_data import PlayerNum
|
||||
from libs.texture import TextureWrapper
|
||||
from libs.bg_objects.don_bg import DonBGBase
|
||||
|
||||
|
||||
class Background:
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
from libs.animation import Animation
|
||||
from libs.bg_objects.fever import Fever3
|
||||
from libs.bg_objects.bg_fever import BGFeverBase
|
||||
from libs.bg_objects.bg_normal import BGNormalBase
|
||||
from libs.bg_objects.chibi import ChibiController
|
||||
from libs.bg_objects.dancer import BaseDancer, BaseDancerGroup
|
||||
from libs.bg_objects.don_bg import DonBGBase
|
||||
from libs.bg_objects.fever import Fever3
|
||||
from libs.bg_objects.footer import Footer
|
||||
from libs.bg_objects.renda import RendaController
|
||||
from libs.global_data import PlayerNum
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
|
||||
class Background:
|
||||
def __init__(self, tex: TextureWrapper, player_num: PlayerNum, bpm: float, path: str, max_dancers: int):
|
||||
self.tex_wrapper = tex
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import random
|
||||
|
||||
import pyray as ray
|
||||
|
||||
from libs.animation import Animation
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
import pyray as ray
|
||||
|
||||
class Chibi:
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import random
|
||||
from libs.animation import Animation
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
|
||||
class Dancer:
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from libs.animation import Animation
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
|
||||
class Fever:
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
|
||||
class Footer:
|
||||
def __init__(self, tex: TextureWrapper, index: int, path: str = 'background'):
|
||||
self.index = index
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import random
|
||||
|
||||
import pyray as ray
|
||||
|
||||
from libs.animation import Animation
|
||||
from libs.texture import TextureWrapper
|
||||
|
||||
import pyray as ray
|
||||
|
||||
class Renda:
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import logging
|
||||
|
||||
from libs.animation import Animation
|
||||
from libs.utils import global_tex
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from pathlib import Path
|
||||
import tomlkit
|
||||
import json
|
||||
from pathlib import Path
|
||||
from typing import TypedDict
|
||||
|
||||
import pyray as ray
|
||||
import tomlkit
|
||||
|
||||
|
||||
class GeneralConfig(TypedDict):
|
||||
fps_counter: bool
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
from dataclasses import dataclass
|
||||
from enum import IntEnum
|
||||
import json
|
||||
import logging
|
||||
from pathlib import Path
|
||||
import random
|
||||
import sqlite3
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime, timedelta
|
||||
from enum import IntEnum
|
||||
from pathlib import Path
|
||||
from typing import Optional, Union
|
||||
|
||||
from raylib import SHADER_UNIFORM_VEC3
|
||||
from libs.audio import audio
|
||||
from libs.animation import Animation, MoveAnimation
|
||||
from libs.global_data import Crown, Difficulty, ScoreMethod
|
||||
from libs.tja import TJAParser, test_encodings
|
||||
from libs.texture import tex
|
||||
from libs.utils import OutlinedText, get_current_ms, global_data
|
||||
from datetime import datetime, timedelta
|
||||
import sqlite3
|
||||
import pyray as ray
|
||||
from raylib import SHADER_UNIFORM_VEC3
|
||||
|
||||
from libs.animation import Animation, MoveAnimation
|
||||
from libs.audio import audio
|
||||
from libs.global_data import Crown, Difficulty, ScoreMethod
|
||||
from libs.texture import tex
|
||||
from libs.tja import TJAParser, test_encodings
|
||||
from libs.utils import OutlinedText, get_current_ms, global_data
|
||||
|
||||
BOX_CENTER = 594 * tex.screen_scale
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import pyray as ray
|
||||
|
||||
from libs.config import Config
|
||||
|
||||
|
||||
class PlayerNum(IntEnum):
|
||||
ALL = 0
|
||||
P1 = 1
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from enum import Enum
|
||||
from typing import Callable
|
||||
|
||||
import pyray as ray
|
||||
|
||||
from libs.global_data import PlayerNum
|
||||
from libs.global_data import global_data
|
||||
from libs.utils import OutlinedText, global_tex
|
||||
from libs.config import get_config
|
||||
from libs.audio import audio
|
||||
from libs.config import get_config
|
||||
from libs.global_data import PlayerNum, global_data
|
||||
from libs.utils import OutlinedText, global_tex
|
||||
|
||||
|
||||
class Nameplate:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from libs.audio import audio
|
||||
from libs.texture import tex
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import configparser
|
||||
import logging
|
||||
import csv
|
||||
import json
|
||||
import logging
|
||||
import sqlite3
|
||||
import time
|
||||
import csv
|
||||
from pathlib import Path
|
||||
|
||||
from libs.config import get_config
|
||||
from libs.global_data import Crown
|
||||
from libs.tja import NoteList, TJAParser, test_encodings
|
||||
from libs.utils import global_data
|
||||
from libs.config import get_config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
DB_VERSION = 1
|
||||
|
||||
@@ -6,10 +6,9 @@ from pathlib import Path
|
||||
from typing import Any, Optional
|
||||
|
||||
import raylib as ray
|
||||
from pyray import Vector2, Rectangle, Color
|
||||
from pyray import Color, Rectangle, Vector2
|
||||
|
||||
from libs.animation import BaseAnimation, parse_animations
|
||||
|
||||
from libs.config import get_config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from enum import IntEnum
|
||||
import hashlib
|
||||
import math
|
||||
import logging
|
||||
import math
|
||||
import random
|
||||
from collections import deque
|
||||
from dataclasses import dataclass, field, fields
|
||||
from enum import IntEnum
|
||||
from functools import lru_cache
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from pathlib import Path
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
import raylib as ray
|
||||
import av
|
||||
import raylib as ray
|
||||
|
||||
from libs.audio import audio
|
||||
from libs.utils import get_current_ms
|
||||
from libs.texture import tex
|
||||
from libs.utils import get_current_ms
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user