I`m experimenting with classes and trying to come up with a self contained chat window. I first created a class to handle game logic then another class to handle a chat window (different file). Both classes are attached to the main camera and the logic class calls a function in the chat class to add a string to the display.
THe logic class can display colored text in a label (status messages) but when I send the same text to the chat class the markup is visible and no color changes are applied. Even when I add text from within the chat class the markup is visible and no colors are changed.
the logic class uses guilayout area and a label while the chat class uses a window and a textarea…
I was thinking maybe richtext wasnt enabled in the chat class but that doesn
t really make sense since I don`t use a custom skin so if it was off it would have to be off for both classes.
Any ideas why one works and the other doesn’t.