ソースを参照

put a sorting order of 0 on the top and bottom letterbox

Asad M. Zaman 18 年 前
コミット
de37b04930
1 ファイル変更6 行追加0 行削除
  1. 6 0
      direct/src/showbase/Transitions.py

+ 6 - 0
direct/src/showbase/Transitions.py

@@ -335,6 +335,7 @@ class Transitions:
                 image_scale = (2.25,1,.5),
                 image_pos = (0,0,.1),
                 image_color = (0.3,0.3,0.3,1),
+                sortOrder = 0,
                 )
             self.letterboxBottom = DirectFrame(
                 parent = self.letterbox,
@@ -349,8 +350,13 @@ class Transitions:
                 image_scale = (2.25,1,.5),
                 image_pos = (0,0,.1),
                 image_color = (0.3,0.3,0.3,1),
+                sortOrder = 0,
                 )
 
+            # masad: always place these at the bottom of render
+            self.letterboxTop.setBin('sorted',0)
+            self.letterboxBottom.setBin('sorted',0)
+
     def noLetterbox(self):
         """
         Removes any current letterbox tasks and parents the letterbox polygon away