Greetings! =)
I’m somewhat new to panda3d and I’m having a lot of trouble to create what I want to my game.
I want to create an interface which is a fixed menu that will stay all the time in the bottom of the screen… with some buttons, labels, textboxs and etc… So I created a DirectFrame to parent all these others directgui objects to it, and I don’t know if I’m doing something wrong, but it isn’t working!
Anyone can tell mo how do I do it?
I thought that when I create this:
self.frame_main = DirectFrame(scale = 0.1,
relief = GROOVE,
frameSize = (-15, 15, -5, -10),
frameColor = (200, 200, 200, 0.5), parent=render2d)
and then this
self.button_1 = DirectButton(self.frame_main,text=“Teste”,scale=0.5,pos=(0,0,0))
the button shold appear inside the frame, with is pos relative to the frame, but it seems id doesn’t work that way.
And if I set the pos of the button to stay together with the frame, it appears behind it…
Anyone can help me? It’s a little urgent!
Thanks a lot!