Hi
I started with panda last week and everything was fine until I try to create a GUI. I’ve been searching and I was able to create a button and to add a command to it, but I’m not able to create a good ‘interface’ for it.
self.frame = DirectFrame(
geom = self.menuGraphics.find('**/MenuMod'),
relief = None, scale = (0.6,1,0.6),
frameColor = (1,1,1,0.75),
pos = (0.2625,0,0.43125), parent = base.aspect2d)
button = DirectButton(relief = None,
text = ("ready", "clicked", "roll", "disabled"),
text_scale = 0.2,
geom = (self.menuGraphics.find('**/BotaoReady'),
self.menuGraphics.find('**/BotaoIdle'),
self.menuGraphics.find('**/BotaoActive'),
self.menuGraphics.find('**/BotaoDesable')))
button.reparentTo(self.frame)
With this code I’m able to create the button but im not able to create the frame (the thing behind the button).
http://img855.imageshack.us/g/botaoactive.jpg/
http://img855.imageshack.us/img855/3018/botaoactive.jpg
http://img856.imageshack.us/img856/5034/botaodesable.jpg
http://img856.imageshack.us/img856/4724/botaoidle.jpg
http://img861.imageshack.us/img861/8923/botaoready.jp
http://img852.imageshack.us/img852/6880/menumod.jpg
I’m using these jpg images to create an .egg and the menu, but the result isnt what i want
Uploaded with ImageShack.us
1: Why the ‘menu background’ isnt there?
2: Why its so ugly?
3: What can I do to create a nice menu?
Thanks for your help
ps: sry for my enligh