remove multiline
This commit is contained in:
@@ -201,9 +201,6 @@ def draw_text_input_section(layout, props):
|
||||
"""Draw the main text input field"""
|
||||
layout.prop(props, "text", text="")
|
||||
|
||||
# Note: Multiline text editor feature is not currently available
|
||||
# The operator "text_texture.edit_text" does not exist in the codebase
|
||||
|
||||
def draw_font_dropdown_section(layout, props):
|
||||
pass
|
||||
"""Draw basic font dropdown for top level"""
|
||||
@@ -706,47 +703,6 @@ def draw_text_fitting_section(layout, props):
|
||||
|
||||
info_box.label(text="• Respects min/max font size limits")
|
||||
|
||||
def draw_multiline_section(layout, props):
|
||||
pass
|
||||
"""Draw multiline text controls"""
|
||||
# Main toggle for multiline text
|
||||
layout.prop(props, "enable_multiline", text="Enable Multiline", icon='TEXT')
|
||||
|
||||
# Show controls only if multiline is enabled
|
||||
if props.enable_multiline:
|
||||
pass
|
||||
layout.separator()
|
||||
|
||||
# Line height and alignment settings
|
||||
col = layout.column(align=True)
|
||||
col.prop(props, "line_height", text="Line Height", slider=True)
|
||||
col.prop(props, "text_alignment", text="Alignment")
|
||||
|
||||
layout.separator()
|
||||
|
||||
# Auto wrap settings
|
||||
layout.prop(props, "auto_wrap", text="Auto Wrap")
|
||||
if props.auto_wrap:
|
||||
pass
|
||||
layout.prop(props, "wrap_width", text="Wrap Width (0 = texture width)")
|
||||
|
||||
layout.separator()
|
||||
|
||||
# Line limits and spacing
|
||||
col = layout.column(align=True)
|
||||
col.prop(props, "max_lines", text="Max Lines (0 = unlimited)")
|
||||
col.prop(props, "line_spacing_pixels", text="Line Spacing (px)")
|
||||
|
||||
# Info box with usage tips
|
||||
layout.separator()
|
||||
info_box = layout.box()
|
||||
info_box.scale_y = 0.8
|
||||
info_box.label(text="💡 Multiline text supports:", icon='INFO')
|
||||
info_box.label(text="• Use \\n for manual line breaks")
|
||||
info_box.label(text="• Auto-wrap fits text to width")
|
||||
info_box.label(text="• Alignment works per line")
|
||||
info_box.label(text="• Line height controls spacing")
|
||||
|
||||
def draw_stroke_section(layout, props):
|
||||
pass
|
||||
"""Draw stroke and outline controls"""
|
||||
@@ -789,7 +745,6 @@ def draw_stroke_section(layout, props):
|
||||
info_box.label(text="• Center: Stroke on text edge")
|
||||
|
||||
info_box.label(text="• Width 0 = no stroke")
|
||||
info_box.label(text="• Works with multiline text")
|
||||
|
||||
def draw_shadow_glow_section(layout, props):
|
||||
pass
|
||||
@@ -950,12 +905,6 @@ class TEXT_TEXTURE_PT_panel(Panel):
|
||||
|
||||
# === FREE FEATURES ===
|
||||
|
||||
# Multiline Section (collapsed by default)
|
||||
multiline_section = draw_collapsible_header(layout, "expand_multiline", "Multiline Text", 'TEXT')
|
||||
if multiline_section:
|
||||
pass
|
||||
draw_multiline_section(multiline_section, props)
|
||||
|
||||
# Font Settings Section (collapsed by default)
|
||||
font_section = draw_collapsible_header(layout, "expand_font_settings", "Font Settings", 'FONT_DATA')
|
||||
if font_section:
|
||||
@@ -1174,12 +1123,6 @@ class TEXT_TEXTURE_PT_panel_3d(Panel):
|
||||
|
||||
# === FREE FEATURES ===
|
||||
|
||||
# Multiline Section (collapsed by default)
|
||||
multiline_section = draw_collapsible_header(layout, "expand_multiline", "Multiline Text", 'TEXT')
|
||||
if multiline_section:
|
||||
pass
|
||||
draw_multiline_section(multiline_section, props)
|
||||
|
||||
# Font Settings Section (collapsed by default)
|
||||
font_section = draw_collapsible_header(layout, "expand_font_settings", "Font Settings", 'FONT_DATA')
|
||||
if font_section:
|
||||
@@ -1398,12 +1341,6 @@ class TEXT_TEXTURE_PT_panel_properties(Panel):
|
||||
|
||||
# === FREE FEATURES ===
|
||||
|
||||
# Multiline Section (collapsed by default)
|
||||
multiline_section = draw_collapsible_header(layout, "expand_multiline", "Multiline Text", 'TEXT')
|
||||
if multiline_section:
|
||||
pass
|
||||
draw_multiline_section(multiline_section, props)
|
||||
|
||||
# Font Settings Section (collapsed by default)
|
||||
font_section = draw_collapsible_header(layout, "expand_font_settings", "Font Settings", 'FONT_DATA')
|
||||
if font_section:
|
||||
@@ -1546,4 +1483,4 @@ class TEXT_TEXTURE_PT_panel_properties(Panel):
|
||||
|
||||
# Only show content if available and expanded
|
||||
if presets_expanded:
|
||||
draw_presets_section(presets_expanded, props)
|
||||
draw_presets_section(presets_expanded, props)
|
||||
|
||||
Reference in New Issue
Block a user