Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-23 03:27:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-23 03:27:30 +0300
commitcaab05ec8c98940064abbf80e67d3981fd3f2377 (patch)
tree8e1ffd80118ad24a63c997b3ef5436f1c7883e2f /release/scripts/ui/space_logic.py
parent6555eca6fe7c6aefc5de8dbb663bc2be3799f567 (diff)
rna UI api rename...
note: this aims to follow pep8 however I chose to use 'prop/props' rather then 'property/properties' because it would make function names too long. itemR() --> prop() items_enumR() --> props_enum() item_menu_enumR() --> prop_menu_enum() item_pointerR() --> prop_pointer() itemO() --> operator() item_enumO() --> operator_enum() items_enumO() --> operator_enums() item_menu_enumO() --> operator_menu_enum() item_booleanO() --> operator_boolean() item_intO() --> operator_int() item_floatO() --> operator_float() item_stringO() --> operator_string() itemL() --> label() itemM() --> menu() itemS() --> separator() batch script used http://www.pasteall.org/9345
Diffstat (limited to 'release/scripts/ui/space_logic.py')
-rw-r--r--release/scripts/ui/space_logic.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/ui/space_logic.py b/release/scripts/ui/space_logic.py
index 42daa4ace07..32180bd2b68 100644
--- a/release/scripts/ui/space_logic.py
+++ b/release/scripts/ui/space_logic.py
@@ -35,15 +35,15 @@ class LOGIC_PT_properties(bpy.types.Panel):
ob = context.active_object
game = ob.game
- layout.itemO("object.game_property_new", text="Add Game Property")
+ layout.operator("object.game_property_new", text="Add Game Property")
for i, prop in enumerate(game.properties):
row = layout.row(align=True)
- row.itemR(prop, "name", text="")
- row.itemR(prop, "type", text="")
- row.itemR(prop, "value", text="", toggle=True) # we dont care about the type. rna will display correctly
- row.itemR(prop, "debug", text="", toggle=True, icon='ICON_INFO')
- row.item_intO("object.game_property_remove", "index", i, text="", icon='ICON_X')
+ row.prop(prop, "name", text="")
+ row.prop(prop, "type", text="")
+ row.prop(prop, "value", text="", toggle=True) # we dont care about the type. rna will display correctly
+ row.prop(prop, "debug", text="", toggle=True, icon='ICON_INFO')
+ row.operator_int("object.game_property_remove", "index", i, text="", icon='ICON_X')
bpy.types.register(LOGIC_PT_properties)