mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
*** empty log message ***
This commit is contained in:
parent
4bb6aaa353
commit
a87118746f
@ -1,2 +0,0 @@
|
||||
from ToontownDialog import *
|
||||
|
@ -93,6 +93,16 @@ class Transitions:
|
||||
self.fade.reparentTo(aspect2d)
|
||||
self.fade.setColor(0,0,0,alpha)
|
||||
|
||||
def guiFadeScreen(self, alpha=0.5):
|
||||
"""
|
||||
Put a semitransparent screen over the camera plane
|
||||
to darken out the world. Useful for drawing attention to
|
||||
a dialog box for instance
|
||||
"""
|
||||
self.noTransitions()
|
||||
self.fade.reparentTo(guiTop, 100)
|
||||
self.fade.setColor(0,0,0,alpha)
|
||||
|
||||
def fadeOutTask(self, task, time=0.3, noFade=1):
|
||||
"""
|
||||
As a sequence: Fade out, execute the given task, then do a noFade
|
||||
|
Loading…
x
Reference in New Issue
Block a user