File tree 2 files changed +10
-2
lines changed
Dungeoneer/src/com/interrupt/dungeoneer
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ public class NeoText extends DirectionalEntity {
15
15
@ EditorProperty
16
16
public DrawableText .TextAlignment textAlignment = DrawableText .TextAlignment .CENTER ;
17
17
18
+ @ EditorProperty
19
+ public boolean substituteControlLiterals ;
20
+
18
21
public NeoText () {
19
22
this .drawable = new DrawableText (this .text );
20
23
this .isDynamic = false ;
Original file line number Diff line number Diff line change @@ -34,10 +34,15 @@ public void update(Entity e) {
34
34
35
35
if (e instanceof NeoText ) {
36
36
NeoText parentNeoText = (NeoText )e ;
37
- text = parentNeoText .text ;
38
- text = text .replace ("\\ n" , "\n " ); // Hack in support for newlines in the editor.
37
+
39
38
color .set (parentNeoText .textColor );
40
39
40
+ text = parentNeoText .text ;
41
+
42
+ if (parentNeoText .substituteControlLiterals ) {
43
+ text = text .replace ("\\ n" , "\n " ); // Hack in support for newlines in the editor.
44
+ }
45
+
41
46
switch (parentNeoText .textAlignment ) {
42
47
case LEFT :
43
48
alignmentOffset = 0.0f ; break ;
You can’t perform that action at this time.
0 commit comments