ソースを参照

push panel slightly into the screen to work around DX bug

David Rose 24 年 前
コミット
355b3144c8
1 ファイル変更4 行追加0 行削除
  1. 4 0
      direct/src/gui/DirectDialog.py

+ 4 - 0
direct/src/gui/DirectDialog.py

@@ -80,6 +80,10 @@ class DirectDialog(DirectFrame):
         optiondefs = (
             # Define type of DirectGuiWidget
             ('dialogName',        None,          INITOPT),
+            # Default position is slightly forward in Y, so as not to
+            # intersect the near plane, which is incorrectly set to 0
+            # in DX for some reason.
+            ('pos',               (0, 0.1, 0),   None),
             ('pad',               (0.1, 0.1),    None),
             ('text',              '',            None),
             ('text_align',        TMALIGNLEFT,   None),