Add text field support for wrap
This commit is contained in:
@@ -69,8 +69,12 @@ namespace Dialogue.Editor
|
||||
// Draw the appropriate field based on content type
|
||||
if (contentTypeProperty.enumValueIndex == (int)DialogueContentType.Text)
|
||||
{
|
||||
// Create a custom style with word wrap enabled
|
||||
GUIStyle wordWrapStyle = new GUIStyle(EditorStyles.textArea);
|
||||
wordWrapStyle.wordWrap = true;
|
||||
|
||||
// Text field with word wrap for multi-line input
|
||||
textProperty.stringValue = EditorGUI.TextArea(contentFieldRect, textProperty.stringValue);
|
||||
textProperty.stringValue = EditorGUI.TextArea(contentFieldRect, textProperty.stringValue, wordWrapStyle);
|
||||
}
|
||||
else // Image
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user