game_top.py 402 B

1234567891011121314
  1. import pygame
  2. from client_local.ui.ui import UIInstance
  3. class GameTop(UIInstance):
  4. def __init__(self):
  5. super().__init__("game", "gameTop")
  6. self.font = pygame.font.Font("res/font/simsun.ttc", 16)
  7. self.rend = self.font.render("v20250618", True, (0, 196, 255))
  8. def draw(self, screen: pygame.Surface):
  9. super().draw(screen)
  10. screen.blit(self.rend, (0, 0))