* merge r22734 from trunk
[blender.git] / release / ui / space_logic.py
1 import bpy
2
3 class LOGIC_PT_properties(bpy.types.Panel):
4         __space_type__ = 'LOGIC_EDITOR'
5         __region_type__ = 'UI'
6         __label__ = "Properties"
7
8         def poll(self, context):
9                 ob = context.active_object
10                 return ob and ob.game
11
12         def draw(self, context):
13                 layout = self.layout
14                 ob = context.active_object
15                 game = ob.game
16                 
17                 for prop in game.properties:
18                         flow = layout.row()
19                         flow.itemR(prop, "name", text="")
20                         flow.itemR(prop, "type", text="")
21                         flow.itemR(prop, "value", text="") # we dont care about the type. rna will display correctly
22                         flow.itemR(prop, "debug")
23
24 bpy.types.register(LOGIC_PT_properties)
25