Make UiElement inherit from pygame.sprite.Sprite
This commit is contained in:
parent
9e9fb7c4b2
commit
bb29d0cd1f
@ -1,2 +1,7 @@
|
|||||||
class UiElement:
|
import pygame
|
||||||
pass
|
|
||||||
|
|
||||||
|
class UiElement(pygame.sprite.Sprite):
|
||||||
|
def __init__(self, rect):
|
||||||
|
super().__init__()
|
||||||
|
self.rect = rect
|
||||||
|
Loading…
Reference in New Issue
Block a user