From bc52b996e3fe509760aac9075d239ad56dbdf623 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Sun, 27 Feb 2011 09:36:29 +0000 Subject: [PATCH] small UI cleanup - "Mouse Cursor" instead of "Show Mouse" and s/subcol/sub and a new line in the end of constraints ui file --- release/scripts/ui/properties_game.py | 2 +- .../ui/properties_object_constraint.py | 21 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/release/scripts/ui/properties_game.py b/release/scripts/ui/properties_game.py index 2628870eb4b..5b7268abe8c 100644 --- a/release/scripts/ui/properties_game.py +++ b/release/scripts/ui/properties_game.py @@ -356,7 +356,7 @@ class RENDER_PT_game_display(RenderButtonsPanel, bpy.types.Panel): 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") + flow.prop(gs, "show_mouse", text="Mouse Cursor") class RENDER_PT_game_sound(RenderButtonsPanel, bpy.types.Panel): diff --git a/release/scripts/ui/properties_object_constraint.py b/release/scripts/ui/properties_object_constraint.py index 6034fb9e51e..1fa6b5b18a3 100644 --- a/release/scripts/ui/properties_object_constraint.py +++ b/release/scripts/ui/properties_object_constraint.py @@ -537,21 +537,21 @@ class ConstraintButtonsPanel(): col = split.column() col.prop(con, "use_angular_limit_x", text="Angle X") - subcol = col.column() - subcol.active =con.use_angular_limit_x - subcol.prop(con, "limit_angle_max_x", text="") + sub = col.column() + sub.active = con.use_angular_limit_x + sub.prop(con, "limit_angle_max_x", text="") col = split.column() col.prop(con, "use_angular_limit_y", text="Angle Y") - subcol = col.column() - subcol.active =con.use_angular_limit_y - subcol.prop(con, "limit_angle_max_y", text="") + sub = col.column() + sub.active = con.use_angular_limit_y + sub.prop(con, "limit_angle_max_y", text="") col = split.column() col.prop(con, "use_angular_limit_z", text="Angle Z") - subcol = col.column() - subcol.active =con.use_angular_limit_z - subcol.prop(con, "limit_angle_max_z", text="") + sub = col.column() + sub.active = con.use_angular_limit_z + sub.prop(con, "limit_angle_max_z", text="") elif con.pivot_type == 'GENERIC_6_DOF': layout.label(text="Limits:") @@ -790,4 +790,5 @@ def unregister(): bpy.utils.unregister_module(__name__) if __name__ == "__main__": - register() \ No newline at end of file + register() +