[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34694] trunk/blender/release/scripts/ui/ properties_game.py: Fix for [#25963] Show mouse option in wrong Panel.
Thomas Dinges
blender at dingto.de
Mon Feb 7 15:53:40 CET 2011
Revision: 34694
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34694
Author: dingto
Date: 2011-02-07 14:53:40 +0000 (Mon, 07 Feb 2011)
Log Message:
-----------
Fix for [#25963] Show mouse option in wrong Panel.
Did some reorganization of the Game buttons, made a new "Display" Panel.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_game.py
Modified: trunk/blender/release/scripts/ui/properties_game.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_game.py 2011-02-07 13:02:44 UTC (rev 34693)
+++ trunk/blender/release/scripts/ui/properties_game.py 2011-02-07 14:53:40 UTC (rev 34694)
@@ -232,9 +232,7 @@
gs = context.scene.game_settings
- row = layout.row()
- row.prop(gs, "show_fullscreen")
- row.prop(gs, "show_mouse")
+ layout.prop(gs, "show_fullscreen")
split = layout.split()
@@ -345,23 +343,27 @@
layout = self.layout
gs = context.scene.game_settings
+ row = layout.row()
+ row.prop(gs, "use_frame_rate")
+ row.prop(gs, "use_display_lists")
- split = layout.split()
+
+class RENDER_PT_game_display(RenderButtonsPanel, bpy.types.Panel):
+ bl_label = "Display"
+ COMPAT_ENGINES = {'BLENDER_GAME'}
- col = split.column()
- col.label(text="Show:")
- col.prop(gs, "show_debug_properties", text="Debug Properties")
- col.prop(gs, "show_framerate_profile", text="Framerate and Profile")
- col.prop(gs, "show_physics_visualization", text="Physics Visualization")
- col.prop(gs, "use_deprecation_warnings")
+ def draw(self, context):
+ layout = self.layout
- col = split.column()
+ gs = context.scene.game_settings
+ flow = layout.column_flow()
+ flow.prop(gs, "show_debug_properties", text="Debug Properties")
+ flow.prop(gs, "show_framerate_profile", text="Framerate and Profile")
+ flow.prop(gs, "show_physics_visualization", text="Physics Visualization")
+ flow.prop(gs, "use_deprecation_warnings")
+ flow.prop(gs, "show_mouse")
- col.label(text="Render:")
- col.prop(gs, "use_frame_rate")
- col.prop(gs, "use_display_lists")
-
class RENDER_PT_game_sound(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Sound"
COMPAT_ENGINES = {'BLENDER_GAME'}
More information about the Bf-blender-cvs
mailing list