271
void PointerAgent::makeNewSpeechBubble() {
272
if (engine.version != 1) return; // TODO: C2 support
274
bool leftside = false;
275
// TODO: cope with wrap
276
if (x - world.camera.getX() < world.camera.getWidth() / 2) leftside = true;
278
// TODO: are 1/0 good colours?
279
Bubble *ourSpeechBubble = new Bubble(2, 1, 1, 9000, "syst", leftside ? 12 : 11, 1, 6, 3, 144, 12, 1, 0);
280
ourSpeechBubble->finishInit();
282
ourSpeechBubble->attr = 32; // floating
283
ourSpeechBubble->floatTo(this);
285
// TODO: fix positioning
287
ourSpeechBubble->moveTo(x + getWidth() - 2, y - ourSpeechBubble->getHeight());
289
ourSpeechBubble->moveTo(x - ourSpeechBubble->getWidth() + 2, y - ourSpeechBubble->getHeight());
291
ourSpeechBubble->setEditing(true);
269
294
/* vim: set noet: */