SWITCH to pygame-ce & REMOVE pygame dependencies
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import pygame
|
import pygame
|
||||||
import copy
|
|
||||||
|
|
||||||
class ControlController:
|
class ControlController:
|
||||||
def __init__(self, control_renderer, box_top: tuple[int, int]):
|
def __init__(self, control_renderer, box_top: tuple[int, int]):
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import pygame
|
|
||||||
|
|
||||||
class InfoRenderer:
|
class InfoRenderer:
|
||||||
def __init__(self, screen, styling, match):
|
def __init__(self, screen, styling, match):
|
||||||
self.screen = screen
|
self.screen = screen
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import pygame
|
|
||||||
from widgets.button import Button
|
from widgets.button import Button
|
||||||
from widgets.switch import Switch
|
from widgets.switch import Switch
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
demoparser2==0.38.0
|
demoparser2==0.38.0
|
||||||
numpy==2.2.4
|
numpy==2.2.5
|
||||||
pandas==2.2.3
|
pandas==2.2.3
|
||||||
polars==1.25.2
|
polars==1.29.0
|
||||||
pyarrow==19.0.1
|
pyarrow==20.0.0
|
||||||
pygame==2.6.1
|
pygame-ce==2.5.3
|
||||||
|
pygame_gui==0.6.13
|
||||||
python-dateutil==2.9.0.post0
|
python-dateutil==2.9.0.post0
|
||||||
pytz==2025.1
|
python-i18n==0.3.9
|
||||||
|
pytz==2025.2
|
||||||
six==1.17.0
|
six==1.17.0
|
||||||
tqdm==4.67.1
|
tqdm==4.67.1
|
||||||
tzdata==2025.1
|
tzdata==2025.2
|
||||||
pygame_gui==0.6.13
|
|
||||||
pygame-ce==2.5.3
|
|
||||||
pygame-pgu==0.21
|
|
||||||
python-i18n==0.3.9
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
from states.game_state import GameState
|
from states.game_state import GameState
|
||||||
from widgets.button import Button
|
|
||||||
from widgets.switch import Switch
|
|
||||||
from controllers.settings_controller import SettingsController
|
from controllers.settings_controller import SettingsController
|
||||||
from render.settings_menu_renderer import SettingsMenuRenderer
|
from render.settings_menu_renderer import SettingsMenuRenderer
|
||||||
import pygame
|
|
||||||
|
|
||||||
class SettingsMenu(GameState):
|
class SettingsMenu(GameState):
|
||||||
def __init__(self, switch_state_callback, context):
|
def __init__(self, switch_state_callback, context):
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ from widgets.button import Button
|
|||||||
from models.match import Match
|
from models.match import Match
|
||||||
from models.player import Player
|
from models.player import Player
|
||||||
from models.team import Team
|
from models.team import Team
|
||||||
from pgu import gui
|
|
||||||
import demoparser2
|
import demoparser2
|
||||||
import pygame
|
import pygame
|
||||||
import pygame_gui
|
import pygame_gui
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class Button:
|
|||||||
def set_font_size(self, font_size: int) -> None:
|
def set_font_size(self, font_size: int) -> None:
|
||||||
self.font_size = font_size
|
self.font_size = font_size
|
||||||
|
|
||||||
def set_font(self, font: pygame.Font) -> None:
|
def set_font(self, font: pygame.font.Font) -> None:
|
||||||
self.font = font
|
self.font = font
|
||||||
|
|
||||||
def set_text(self, text: str) -> None:
|
def set_text(self, text: str) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user