I was making a Windows knockoff meme project for fun until I stumbled upon a devastating error. Here's a cut out of my code
class DESKTOP(Entity):
class OPTIONS(Entity):
def __init__(self):
super().__init__(
model='cube',
scale=Vec2(0.35,0.35),
texture=load_texture("NymphOS\\SYSTEM\\RES\\Desktop\\opt.jpg"),
position=Vec2(-6.75,-3.75),
)
class TASKBAR(Entity):
def __init__(self):
super().__init__(
model='cube',
scale=Vec2(14.3,0.5),
color=color.gray,
y=-3.75,
)
class BACKGROUND(Entity):
def __init__(self):
super().__init__(
model='cube',
scale=Vec2(14.3,8),
texture=WALLPAPER,
)
Now, all Classes spawn the according Entity when called. But when calling the OPTIONS() class, SOMETIMES an Entity spawns and sometimes it just doesn't spawn. What's crucial is that if I remove the texture=foobar part, then the Entity spawns as normal. When moving the Entity up a bit I discovered that the texture seems to be blocked by the taskbar Entity for some reason. How can I set the texture to the foreground?
I tried going from texture=load_texture("bla\bla\bla.jpg") to texture=WALLPAPER and I tried converting to png. What I'm trying to do is make the Options button appear on top of the taskbar entity. When there's no texture assigned the options button works normal but when there is it just moves to the background and gets blocked off