removed pointer in base. Added a comment about scale on the entry not working

This commit is contained in:
John Loehrlein 2009-08-31 20:48:49 +00:00
parent 3c79e6b042
commit 06fa43a83b

View File

@ -23,6 +23,12 @@ class DirectEntryScroll(DirectFrame):
self.clipXMax = 0.0
self.initialiseoptions(DirectEntryScroll)
# don't set a scale on the entry
# instead make it the correct size, use something like:
# text_scale = 0.035,
# frameSize = (-0.006, 3.2, -0.015, 0.036),
# if you need to scale the entry scale it's parent instead
self.entry = entry
self.canvas = NodePath(self.guiItem.getCanvasNode())
self.entry.reparentTo(self.canvas)
@ -33,8 +39,7 @@ class DirectEntryScroll(DirectFrame):
self.canvas.node().setBounds(OmniBoundingVolume())
self.canvas.node().setFinal(1)
self.resetCanvas()
base.scroller = self