private void PopulateScoreItems()
{
rtlScoreItems.Clear();
rtlScoreItems.PushAlign(RichTextLabel.Align.Center);
rtlScoreItems.PushTable(3);
foreach (var item in scoreList)
{
rtlScoreItems.PushCell();
rtlScoreItems.PushAlign(RichTextLabel.Align.Left);
rtlScoreItems.AppendBbcode("[rainbow freq=0.07 sat=0.5]");
rtlScoreItems.AppendBbcode( item["name"].ToString().PadRight(10));
rtlScoreItems.Pop(); // for rainbow
rtlScoreItems.Pop();
rtlScoreItems.Pop();
rtlScoreItems.PushCell();
rtlScoreItems.AppendBbcode("[rainbow freq=0.07 sat=0.5]");
rtlScoreItems.AppendBbcode( item["score"].ToString().PadZeros(6).PadRight(10));
rtlScoreItems.Pop(); // for rainbow
rtlScoreItems.Pop();
rtlScoreItems.PushCell();
rtlScoreItems.AppendBbcode("[rainbow freq=0.07 sat=0.5]" + item["date"].ToString());
rtlScoreItems.Pop(); // for rainbow
rtlScoreItems.Pop();
}
rtlScoreItems.Pop();
rtlScoreItems.Pop();
rtlScoreItems.RectClipContent = false;
}
This code works well, means adds rainbow effect to all 3 columns of the table. But applying effect to the 3rd column must be exactly as:
rtlScoreItems.AppendBbcode("[rainbow freq=0.07 sat=0.5]" + item["date"].ToString());
if the same approach as for previous 2 columns is applied:
rtlScoreItems.AppendBbcode("[rainbow freq=0.07 sat=0.5]");
rtlScoreItems.AppendBbcode(item["date"].ToString());
effect does not work. Rainbow colors are static, not continuously changing. Am I missing something ? Thanks for any clarification.