Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_game.py
| Context not available. | |||||
| self.layout.prop(world.mist_settings, "use_mist", text="") | self.layout.prop(world.mist_settings, "use_mist", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| scene = context.scene | |||||
| gs = scene.game_settings | |||||
| layout = self.layout | layout = self.layout | ||||
| world = context.world | world = context.world | ||||
| Context not available. | |||||
| layout.prop(world.mist_settings, "falloff") | layout.prop(world.mist_settings, "falloff") | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.active = (world.mist_settings.falloff == "LINEAR") or (gs.material_mode == "GLSL") | |||||
| row.prop(world.mist_settings, "start") | row.prop(world.mist_settings, "start") | ||||
| row.prop(world.mist_settings, "depth") | row.prop(world.mist_settings, "depth") | ||||
| layout.prop(world.mist_settings, "intensity", text="Minimum Intensity") | row = layout.row(align=True) | ||||
| row.active = not (world.mist_settings.falloff == "LINEAR") or (gs.material_mode == "GLSL") | |||||
| row.prop(world.mist_settings, "intensity", text="Minimum Intensity") | |||||
| class WORLD_PT_game_physics(WorldButtonsPanel, Panel): | class WORLD_PT_game_physics(WorldButtonsPanel, Panel): | ||||
| Context not available. | |||||