more ui api changes.

- remove functions such as operator_int(), operator_enum(), operator_string
  this mixed with keyword arguments in a way that made them hard to read.
  Instead, have operator() always return properties rather then needing an argument.

- rename prop_pointer() --> prop_object(), pointer is more a C thing.

- missed item_enumR(), rename to prop_enum()
This commit is contained in:
2009-11-23 11:43:38 +00:00
parent c6dbbde16b
commit e0fc6d0c33
36 changed files with 284 additions and 290 deletions

View File

@@ -99,8 +99,8 @@ class TEXTURE_PT_context_texture(TextureButtonsPanel):
row.template_list(idblock, "textures", idblock, "active_texture_index", rows=2)
col = row.column(align=True)
col.operator_enum("texture.slot_move", "type", 'UP', text="", icon='ICON_TRIA_UP')
col.operator_enum("texture.slot_move", "type", 'DOWN', text="", icon='ICON_TRIA_DOWN')
col.operator("texture.slot_move", text="", icon='ICON_TRIA_UP').type = 'UP'
col.operator("texture.slot_move", text="", icon='ICON_TRIA_DOWN').type = 'DOWN'
if wide_ui:
@@ -211,7 +211,7 @@ class TEXTURE_PT_mapping(TextureSlotPanel):
split.label(text="Layer:")
ob = context.object
if ob and ob.type == 'MESH':
split.prop_pointer(tex, "uv_layer", ob.data, "uv_textures", text="")
split.prop_object(tex, "uv_layer", ob.data, "uv_textures", text="")
else:
split.prop(tex, "uv_layer", text="")
@@ -873,7 +873,7 @@ class TEXTURE_PT_pointdensity(TextureButtonsPanel):
sub.enabled = bool(pd.object)
if pd.object:
sub.label(text="System:")
sub.prop_pointer(pd, "particle_system", pd.object, "particle_systems", text="")
sub.prop_object(pd, "particle_system", pd.object, "particle_systems", text="")
sub.label(text="Cache:")
sub.prop(pd, "particle_cache", text="")
else: