Hello everyone,
I have been experiencing issues with buttons in DirectGUI when parenting to pixel2d. Most specifically, I cannot see my button’s text and relief whenever I change to pixel2d. Here is an example of the code I am using:
file_button = DirectButton(text = "File",
frameColor = ((0.2,0.2,0.2,1), (0.4,0.3,0.3,1), (0.4,0.4,0.4,1),(0.1,0.1,0.1,1)),
frameSize = (0,50,0,25),
pos=(0, -2, -25),
relief = DGG.SUNKEN,
parent=pixel2d)
I have looked for examples of buttons in the manual, forums and the Panda3D Game Development Book, but none of them that I found where in pixel2d.
While this is my major question, I would also greatly appreciate any examples on the following things:
- Attaching an image to a button in pixel2d
- Changing font style
- Changing font color
Thanks in advance,
Okal