Logic Editor: Buttons for moving game properties up/down

D1163 by @panzergame, with minor edits by me (@Severin)
This commit is contained in:
Tristan Porteries
2015-04-21 23:33:24 +02:00
committed by Julian Eisel
parent b35743d39f
commit a8adeeb6fb
4 changed files with 73 additions and 0 deletions

View File

@@ -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