diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-26 16:51:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-26 16:51:27 +0400 |
commit | c97d964064bfb9d64e3f866f62095ccdc32a80fd (patch) | |
tree | 10d0829a8309597fc2371e739ac9495195122eda /release | |
parent | 043ad7bc8e8e32161563798268727c1f42c9b3d6 (diff) |
- Add remove game properties now possible from the logic space properties panel.
- PyDebugLine, utility function to run if the BGE crashes, you can see which python file and line called the C/C++ code.
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/space_logic.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/release/ui/space_logic.py b/release/ui/space_logic.py index 68ddceb8534..f9920f78497 100644 --- a/release/ui/space_logic.py +++ b/release/ui/space_logic.py @@ -14,12 +14,17 @@ class LOGIC_PT_properties(bpy.types.Panel): ob = context.active_object game = ob.game - for prop in game.properties: - flow = layout.row() + for i, prop in enumerate(game.properties): + flow = layout.row(align=True) 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") + flow.itemR(prop, "debug", text="", toggle=True, icon='ICON_INFO') + flow.item_intO("object.game_property_remove", "index", i, text="", icon='ICON_X') + + flow = layout.row() + flow.itemO("object.game_property_new") + + bpy.types.register(LOGIC_PT_properties) - |