This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/release/ui/space_logic.py

26 lines
613 B
Python
Raw Normal View History

import bpy
class LOGIC_PT_properties(bpy.types.Panel):
2009-08-22 08:48:01 +00:00
__space_type__ = 'LOGIC_EDITOR'
__region_type__ = 'UI'
__label__ = "Properties"
def poll(self, context):
ob = context.active_object
return ob and ob.game
def draw(self, context):
layout = self.layout
ob = context.active_object
game = ob.game
for prop in game.properties:
flow = layout.row()
flow.itemR(prop, "name", text="")
flow.itemR(prop, "type", text="")
flow.itemR(prop, "value", text="") # we dont care about the type. rna will display correctly
flow.itemR(prop, "debug")
bpy.types.register(LOGIC_PT_properties)