ColourTell("silver", "", string.format(" %-15s %3d %4d ", name, self.vials[name] or 0, self.sips[name] or 0))Can someone help me break apart the string format so that I could colour the variables "name" and "self.sips[name]" differently?
This forum is a read-only archive of the Gammon Software forum (2000–2026). No new posts can be made. Search the archive.
Posted by Rivius on Sat 08 Jan 2011 03:46 AM — 3 posts, 14,591 views.
ColourTell("silver", "", string.format(" %-15s %3d %4d ", name, self.vials[name] or 0, self.sips[name] or 0))
ColourTell ("silver", "", name,
"gold", "", self.vials[name] or 0,
"blue", "", self.sips[name] or 0)