diff options
author | Tristan Porteries <republicthunderbolt9@gmail.com> | 2015-04-22 00:33:24 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2015-04-22 00:33:45 +0300 |
commit | a8adeeb6fbd3b8c60ba868ea70032aa052e60301 (patch) | |
tree | 24bdc0cfd04c31902528771b6e8338487bac6931 /release | |
parent | b35743d39f574717731899669117d8de79fce082 (diff) |
Logic Editor: Buttons for moving game properties up/down
D1163 by @panzergame, with minor edits by me (@Severin)
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_logic.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_logic.py b/release/scripts/startup/bl_ui/space_logic.py index 16182da1018..1633a37169b 100644 --- a/release/scripts/startup/bl_ui/space_logic.py +++ b/release/scripts/startup/bl_ui/space_logic.py @@ -71,6 +71,13 @@ class LOGIC_PT_properties(Panel): row.prop(prop, "type", text="") row.prop(prop, "value", text="") row.prop(prop, "show_debug", text="", toggle=True, icon='INFO') + sub = row.row(align=True) + props = sub.operator("object.game_property_move", text="", icon='TRIA_UP') + props.index = i + props.direction = "UP" + props = sub.operator("object.game_property_move", text="", icon='TRIA_DOWN') + props.index = i + props.direction = "DOWN" row.operator("object.game_property_remove", text="", icon='X', emboss=False).index = i |