Added ability to add and remove text boxes back from Blender 2.4x. One on those small things missing.

This commit is contained in:
2010-06-21 23:20:44 +00:00
parent df6e5aeafc
commit 91deffc429
4 changed files with 127 additions and 13 deletions

View File

@@ -367,21 +367,36 @@ class DATA_PT_textboxes(DataButtonsPanel):
text = context.curve
wide_ui = context.region.width > narrowui
for box in text.textboxes:
split = layout.box().split()
col = split.column(align=True)
col.label(text="Dimensions:")
col.prop(box, "width", text="Width")
col.prop(box, "height", text="Height")
split = layout.split()
col = split.column()
col.operator("font.textbox_add", icon='ZOOMIN')
if wide_ui:
col = split.column()
for i, box in enumerate(text.textboxes):
boxy = layout.box()
split = boxy.split()
col = split.column()
col2 = col.column(align=True)
col2.label(text="Dimensions:")
col2.prop(box, "width", text="Width")
col2.prop(box, "height", text="Height")
if wide_ui:
col = split.column(align=True)
col.label(text="Offset:")
col.prop(box, "x", text="X")
col.prop(box, "y", text="Y")
col = split.column()
row = col.row()
row.label(text="Offset:")
row.operator("font.textbox_remove", text='', icon='X').index = i
col2 = col.column(align=True)
col2.prop(box, "x", text="X")
col2.prop(box, "y", text="Y")
classes = [
DATA_PT_context_curve,