letterbox bin

This commit is contained in:
David Rose 2007-07-17 19:47:36 +00:00
parent e4b69c22eb
commit d1e5f80c8a
1 changed files with 4 additions and 1 deletions

View File

@ -302,14 +302,17 @@ class Transitions:
# positioned behind it.
self.letterbox = NodePath("letterbox")
# Allow fade in and out of the bars
self.letterbox.setTransparency(1)
# Allow DirectLabels to be parented to the letterbox sensibly
self.letterbox.setBin('unsorted', 0)
# TODO: This texture isn't available everywhere
button = loader.loadModel('models/gui/toplevel_gui')
barImage = None
if button:
barImage = button.find('**/generic_button')
self.letterbox.setTransparency(1)
self.letterboxTop = DirectFrame(
parent = self.letterbox,
guiId = 'letterboxTop',