mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -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.clipXMax = 0.0
|
||||||
self.initialiseoptions(DirectEntryScroll)
|
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.entry = entry
|
||||||
self.canvas = NodePath(self.guiItem.getCanvasNode())
|
self.canvas = NodePath(self.guiItem.getCanvasNode())
|
||||||
self.entry.reparentTo(self.canvas)
|
self.entry.reparentTo(self.canvas)
|
||||||
@ -34,7 +40,6 @@ class DirectEntryScroll(DirectFrame):
|
|||||||
self.canvas.node().setFinal(1)
|
self.canvas.node().setFinal(1)
|
||||||
self.resetCanvas()
|
self.resetCanvas()
|
||||||
|
|
||||||
base.scroller = self
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user