Changing text wrapping property

Discussion and feedback on Construct 2

Post » Wed Jan 20, 2016 3:11 am

Hi there,
I wondered if anyone knew how we could change the text wrapping property of a text box (from word to character) in game?

The reason for this is language support. Our game is being developed in English and Japanese, we have the branching dialogue script as separate XML files and use the ajax plug in, this works fine with no problems.

The issue is that Japanese needs character wrapping and English needs word wrapping. There is not a text action to change the text wrapping property.

There are a few work arounds – using a separate (invisible) text box for Japanese and switching which is used based on language selection, or hard formatting the XML.

But the cleanest way would be to simply switch the text box wrapping feature from word to character.

Can anyone think of a way to do this? Am I missing something obvious? Or @Ashley could this be added as a text box action?

Thank you.
B
34
S
8
G
1
Posts: 39
Reputation: 2,322

Post » Wed Jan 20, 2016 8:51 am

You might try this 3rd party behavior to change the wrapping mode in event sheet.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Wed Jan 20, 2016 9:11 am

@rexrainbow Thank you! Your plugin would be fantastic, exactly what I'm looking for. But unfortunately I am getting an error on C2 start up after placing it in the plugin folder:

Unable to load plug in: `E:\Steam\steamapps\common\Construct2\Construct2-Win64\exporters\html5\plugins\rex_text_properties\` : Found `GetPluginSettings` global, but it is not a function. This plugin will not be available in the editor.


Do you know what might be causing that problem?
B
34
S
8
G
1
Posts: 39
Reputation: 2,322

Post » Wed Jan 20, 2016 9:13 am

Put it into behaviors folder, not plugins folder.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Wed Jan 20, 2016 9:24 am

@rexrainbow
D'oh! - been a long day! I hooked it up and it's a perfect fix to the problem. Works nicely. I really appreciate the help. Thank you.
B
34
S
8
G
1
Posts: 39
Reputation: 2,322

Post » Wed Aug 23, 2017 5:55 am

Life savior plugin. Very very big thanks.
B
23
S
5
Posts: 42
Reputation: 1,261


Return to Construct 2 General

Who is online

Users browsing this forum: Euduardo, Refeuh and 4 guests