diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-08-18 19:27:48 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-08-18 19:27:48 +0400 |
commit | 368262461641f23239c1a7bd2e6fa9d5057902e7 (patch) | |
tree | d16e6982db7cf207d380d06f354791ca78e71257 /release | |
parent | ede954b93821e3eda5e30ce362ce8472ee17368d (diff) |
2.5: Game Engine
* Added Shading and Performance panels in the scene buttons,
containing the options previously in the 2.4x game menu.
* Added show framerate/debug/physics/warnings back in game menu.
* Moved these settings from G.fileflags to scene GameData.
* Enabled Display Lists by default.
* Some other small game scene button tweaks.
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/buttons_game.py | 52 | ||||
-rw-r--r-- | release/ui/space_info.py | 9 |
2 files changed, 58 insertions, 3 deletions
diff --git a/release/ui/buttons_game.py b/release/ui/buttons_game.py index 3158536585e..7334b453e91 100644 --- a/release/ui/buttons_game.py +++ b/release/ui/buttons_game.py @@ -192,7 +192,7 @@ class SCENE_PT_game(SceneButtonsPanel): row.itemL() class SCENE_PT_game_player(SceneButtonsPanel): - __label__ = "Player" + __label__ = "Standalone Player" def draw(self, context): layout = self.layout @@ -219,8 +219,8 @@ class SCENE_PT_game_player(SceneButtonsPanel): col = layout.column() col.itemL(text="Framing:") col.row().itemR(gs, "framing_type", expand=True) - sub = col.column() - sub.itemR(gs, "framing_color", text="") + if gs.framing_type == 'LETTERBOX': + col.itemR(gs, "framing_color", text="") class SCENE_PT_game_stereo(SceneButtonsPanel): __label__ = "Stereo" @@ -271,9 +271,55 @@ class SCENE_PT_game_stereo(SceneButtonsPanel): layout.itemR(gs, "dome_text") +class SCENE_PT_game_shading(SceneButtonsPanel): + __label__ = "Shading" + + def draw(self, context): + layout = self.layout + + gs = context.scene.game_data + layout.itemR(gs, "material_mode", expand=True) + + if gs.material_mode == 'GLSL': + split = layout.split() + + col = split.column() + col.itemR(gs, "glsl_lights", text="Lights") + col.itemR(gs, "glsl_shaders", text="Shaders") + col.itemR(gs, "glsl_shadows", text="Shadows") + + col = split.column() + col.itemR(gs, "glsl_ramps", text="Ramps") + col.itemR(gs, "glsl_nodes", text="Nodes") + col.itemR(gs, "glsl_extra_textures", text="Extra Textures") + +class SCENE_PT_game_performance(SceneButtonsPanel): + __label__ = "Performance" + + def draw(self, context): + layout = self.layout + + gs = context.scene.game_data + + split = layout.split() + + col = split.column() + col.itemL(text="Show:") + col.itemR(gs, "show_debug_properties", text="Debug Properties") + col.itemR(gs, "show_framerate_profile", text="Framerate and Profile") + col.itemR(gs, "show_physics_visualization", text="Physics Visualization") + col.itemR(gs, "deprecation_warnings") + + col = split.column() + col.itemL(text="Render:") + col.itemR(gs, "all_frames") + col.itemR(gs, "display_lists") + bpy.types.register(SCENE_PT_game) bpy.types.register(SCENE_PT_game_player) bpy.types.register(SCENE_PT_game_stereo) +bpy.types.register(SCENE_PT_game_shading) +bpy.types.register(SCENE_PT_game_performance) class WorldButtonsPanel(bpy.types.Panel): __space_type__ = "PROPERTIES" diff --git a/release/ui/space_info.py b/release/ui/space_info.py index 12005ea3ecb..e0b5c770f29 100644 --- a/release/ui/space_info.py +++ b/release/ui/space_info.py @@ -135,8 +135,17 @@ class INFO_MT_game(bpy.types.Menu): def draw(self, context): layout = self.layout + gs = context.scene.game_data + layout.itemO("view3d.game_start") + layout.itemS() + + layout.itemR(gs, "show_debug_properties") + layout.itemR(gs, "show_framerate_profile") + layout.itemR(gs, "show_physics_visualization") + layout.itemR(gs, "deprecation_warnings") + class INFO_MT_render(bpy.types.Menu): __space_type__ = "INFO" __label__ = "Render" |