clintbellanger/flare-engine — pull request #147 by dorkster (2012-10-07 15:35:47+00:00)
Title: Create addText for tooltips

The purpose of this function is to prevent the need to manually increment lines when adding text to a tooltip. Plus it will make refactoring tooltips to use vectors internally easier. It supports new lines, so ```tip.addText("Hello\nWorld")``` will make a tooltip that looks like:
```
Hello
World
```
There's also an optional second parameter for defining the color of the text. So for doing item tooltips we can do something like:
```
tip.addText(item.name, color_quality);
tip.addText("Level: " + item.level +"\n" + item.type, color_normal);
etc...
```

In this pull request, I've used it in WidgetListBox and WidgetButton tooltips, which is also a great use of this function. Both those widgets only supported single-line tooltips before.