I am really confused I have created a flat button at (-1, 0, -1) and it does not appear at those coords, but very close to them on screen. Ive dumped out some info on the button but I do not see what could be wrong.
--Button Info--
coords : -1.000000, 0.000000, -1.000000
size : 0.580000, 0.320000
Frame : -0.266667 0.313333 -0.0533333 0.266667
pg0.setPosHprScale(-1.00, 0.00, -1.00, 0.00, 0.00, 0.00, 1.00, 1.00, 1.00)
PandaNode state_0
state_0.setPosHprScale(0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 1.00, 1.00, 1.00)
GeomNode flat (1 geoms)
flat.setPosHprScale(0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 1.00, 1.00, 1.00)
TextNode
with font Nimbus Sans L Regular Condensed
alignment is A_center
text color is 0 0 0 1
transform is:
scale: 0.4 1 0.4
shear: 0 0 0
hpr: 0 0 0
trans: 0 0 0
in coordinate system default
text is test
.setPosHprScale(0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 1.00, 1.00, 1.00)
I would like to know where the buttons coords are relative to the button, i.e. is the button coord the top-left corner or perhaps in the middle?
Any help greatly appreciated.