_
This commit is contained in:
parent
24ce2842ae
commit
1dd2e4de38
@ -5,8 +5,8 @@ import numpy as np
|
|||||||
|
|
||||||
|
|
||||||
class Scene(Screen):
|
class Scene(Screen):
|
||||||
def __init__(self, width: float, height: float, font_size: int, screen_size: a, bg=(60, 60, 60)):
|
def __init__(self, width: float, height: float, font_size: int, scene_size: a, bg=(60, 60, 60)):
|
||||||
super().__init__(width, height, font_size, screen_size)
|
super().__init__(width, height, font_size, scene_size)
|
||||||
|
|
||||||
self.bg = bg
|
self.bg = bg
|
||||||
self.r_objects = [] # resizable Objects
|
self.r_objects = [] # resizable Objects
|
||||||
|
@ -7,11 +7,11 @@ from UI.Objects.r_objects.Rect import Rect
|
|||||||
|
|
||||||
|
|
||||||
class BasicScene(Scene):
|
class BasicScene(Scene):
|
||||||
def __init__(self, font_size: int, screen_size: a, bg=(60, 60, 60)):
|
def __init__(self, font_size: int, scene_size: a, bg=(60, 60, 60)):
|
||||||
|
|
||||||
s__size = [600, 400]
|
s__size = [600, 400]
|
||||||
|
|
||||||
super().__init__(s__size[0], s__size[1], font_size, screen_size, bg)
|
super().__init__(s__size[0], s__size[1], font_size, scene_size, bg)
|
||||||
|
|
||||||
r0 = Rect(a([0, 0]), a([200, 200]), (160, 160, 160), self)
|
r0 = Rect(a([0, 0]), a([200, 200]), (160, 160, 160), self)
|
||||||
self.r_objects.append(r0)
|
self.r_objects.append(r0)
|
||||||
|
Loading…
Reference in New Issue
Block a user