UI: Reorganize the UV/Image "Game Properties" Pannel

This uses the same amount of room while giving it a more clean look and adds a label for the mapping options so users can tell the purpose.
This commit is contained in:
Aaron Carlisle
2017-04-19 11:09:07 -04:00
parent 2dac8b3ee0
commit 8accea07f7

View File

@@ -617,7 +617,6 @@ class IMAGE_PT_game_properties(Panel):
ima = sima.image
split = layout.split()
col = split.column()
col.prop(ima, "use_animation")
sub = col.column(align=True)
@@ -626,17 +625,21 @@ class IMAGE_PT_game_properties(Panel):
sub.prop(ima, "frame_end", text="End")
sub.prop(ima, "fps", text="Speed")
col = split.column()
col.prop(ima, "use_tiles")
sub = col.column(align=True)
sub.active = ima.use_tiles or ima.use_animation
sub.prop(ima, "tiles_x", text="X")
sub.prop(ima, "tiles_y", text="Y")
split = layout.split()
col = split.column()
col.label(text="Clamp:")
col.prop(ima, "use_clamp_x", text="X")
col.prop(ima, "use_clamp_y", text="Y")
col.separator()
col = split.column()
col.label(text="Mapping:")
col.prop(ima, "mapping", expand=True)