mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
removed pointer in base. Added a comment about scale on the entry not working
This commit is contained in:
parent
3c79e6b042
commit
06fa43a83b
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user