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-08-26 16:51:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-08-26 16:51:27 +0400
commitc97d964064bfb9d64e3f866f62095ccdc32a80fd (patch)
tree10d0829a8309597fc2371e739ac9495195122eda /release
parent043ad7bc8e8e32161563798268727c1f42c9b3d6 (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.py13
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)
-