diff options
author | Thomas Dinges <blender@dingto.org> | 2011-02-07 17:53:40 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-02-07 17:53:40 +0300 |
commit | 831ce612e95c7addc387a398e4952bef31752377 (patch) | |
tree | 2c18521819fe9dd0fa5b9d08830d76a0c8a95748 /release/scripts/ui | |
parent | bd023c443b9619ddfa467da79755204885b61a89 (diff) |
Fix for [#25963] Show mouse option in wrong Panel.
Did some reorganization of the Game buttons, made a new "Display" Panel.
Diffstat (limited to 'release/scripts/ui')
-rw-r--r-- | release/scripts/ui/properties_game.py | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/release/scripts/ui/properties_game.py b/release/scripts/ui/properties_game.py index 65b511a054e..183ad7ea794 100644 --- a/release/scripts/ui/properties_game.py +++ b/release/scripts/ui/properties_game.py @@ -232,9 +232,7 @@ class RENDER_PT_game_player(RenderButtonsPanel, bpy.types.Panel): 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,21 +343,25 @@ class RENDER_PT_game_performance(RenderButtonsPanel, bpy.types.Panel): 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() - - 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") + +class RENDER_PT_game_display(RenderButtonsPanel, bpy.types.Panel): + bl_label = "Display" + COMPAT_ENGINES = {'BLENDER_GAME'} - col = split.column() + def draw(self, context): + layout = self.layout - col.label(text="Render:") - col.prop(gs, "use_frame_rate") - col.prop(gs, "use_display_lists") + 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") class RENDER_PT_game_sound(RenderButtonsPanel, bpy.types.Panel): |