Search found 3 matches
- Fri Nov 03, 2023 5:22 am
- Forum: Dialogue System for Unity
- Topic: Scrolling accumulated text - old text gray
- Replies: 5
- Views: 408
Re: Scrolling accumulated text - old text gray
Indeed, I just needed more time I couldn't find the correct Regex. Here is my solution for anyone stumbling on this that wants to keep color in the accumulated grey text : string pattern = @"^(<color=[#]?\w+>)|(</color>)(?!\n.?|</color>)"; subtitlePanel.accumulatedText = Regex.Replace(subt...
- Thu Nov 02, 2023 4:36 pm
- Forum: Dialogue System for Unity
- Topic: Scrolling accumulated text - old text gray
- Replies: 5
- Views: 408
Re: Scrolling accumulated text - old text gray
Hello, Thanks for fast reply. But I'm already using GrayAccumulatedText class with provided code. // Remove color tags from old accumulated text: const string pattern = @"<color=[#]?\w+>|</color>"; subtitlePanel.accumulatedText = Regex.Replace(subtitlePanel.accumulatedText, pattern, string...
- Thu Nov 02, 2023 3:10 pm
- Forum: Dialogue System for Unity
- Topic: Scrolling accumulated text - old text gray
- Replies: 5
- Views: 408
Scrolling accumulated text - old text gray
Hello, I followed the examples on how to setup a scrolling text like Disco Elysium and it works perfectly. Now I'm trying to change the logic that puts all old text as gray to keep already set colors but I'm having trouble. For example in this picture, the line "Virtue check success ! [Medium: ...