public List <UDB> GetUIDetails() { var res = new List <UDB>(); res.Add(UDB.Create(this, UDBT.DText, IconId.CMissing, "example.key.test1".T()) // In translations item.text = "Foo bar {0} {1}" // would output "Foo bar 1 2" .WithText("item.text".T(1, 2))); return(res); }
public UDB GetUIBlock() { if (!Tile.IsConstructed) { return(null); } if (dataBlock == null) { dataBlock = UDB.Create(this, UDBT.IText, IconId.CQuestion, "example.translation.key".T()); } UpdateUIBlock(false); return(dataBlock); }