helpers for drawing text
| 256 | |
| 257 | // helpers for drawing text |
| 258 | void drawLeft(float x, const float y, const char* const text, const int offset = 0) |
| 259 | { |
| 260 | const float width = (100.0f + offset) * fScale; |
| 261 | x += offset * fScale; |
| 262 | beginPath(); |
| 263 | fillColor(200, 200, 200); |
| 264 | textAlign(ALIGN_RIGHT|ALIGN_TOP); |
| 265 | textBox(x, y, width, text); |
| 266 | closePath(); |
| 267 | } |
| 268 | |
| 269 | void drawRight(float x, const float y, const char* const text, const int offset = 0) |
| 270 | { |