@@ -115,7 +115,7 @@ void LooksBlocks::onInit(IEngine *engine)
115115 const auto &targets = engine->targets ();
116116
117117 for (auto target : targets) {
118- target->setBubbleText (" " );
118+ target->bubble ()-> setText (" " );
119119 target->clearGraphicsEffects ();
120120 }
121121 });
@@ -520,13 +520,13 @@ bool LooksBlocks::wait(VirtualMachine *vm)
520520 }
521521}
522522
523- void LooksBlocks::showBubble (VirtualMachine *vm, Target::BubbleType type, const std::string &text)
523+ void LooksBlocks::showBubble (VirtualMachine *vm, TextBubble::Type type, const std::string &text)
524524{
525525 Target *target = vm->target ();
526526
527527 if (target) {
528- target->setBubbleType (type);
529- target->setBubbleText (text);
528+ target->bubble ()-> setType (type);
529+ target->bubble ()-> setText (text);
530530 m_waitingBubbles.erase (target);
531531 }
532532}
@@ -536,7 +536,7 @@ void LooksBlocks::hideBubble(Target *target)
536536 if (!target)
537537 return ;
538538
539- target->setBubbleText (" " );
539+ target->bubble ()-> setText (" " );
540540 m_waitingBubbles.erase (target);
541541}
542542
@@ -545,7 +545,7 @@ unsigned int LooksBlocks::startSayForSecs(VirtualMachine *vm)
545545 Target *target = vm->target ();
546546
547547 if (target) {
548- showBubble (vm, Target::BubbleType ::Say, vm->getInput (0 , 2 )->toString ());
548+ showBubble (vm, TextBubble::Type ::Say, vm->getInput (0 , 2 )->toString ());
549549 m_waitingBubbles[target] = vm;
550550 startWait (vm, vm->getInput (1 , 2 )->toDouble ());
551551 }
@@ -572,7 +572,7 @@ unsigned int LooksBlocks::sayForSecs(VirtualMachine *vm)
572572
573573unsigned int LooksBlocks::say (VirtualMachine *vm)
574574{
575- showBubble (vm, Target::BubbleType ::Say, vm->getInput (0 , 1 )->toString ());
575+ showBubble (vm, TextBubble::Type ::Say, vm->getInput (0 , 1 )->toString ());
576576 return 1 ;
577577}
578578
@@ -581,7 +581,7 @@ unsigned int LooksBlocks::startThinkForSecs(VirtualMachine *vm)
581581 Target *target = vm->target ();
582582
583583 if (target) {
584- showBubble (vm, Target::BubbleType ::Think, vm->getInput (0 , 2 )->toString ());
584+ showBubble (vm, TextBubble::Type ::Think, vm->getInput (0 , 2 )->toString ());
585585 m_waitingBubbles[target] = vm;
586586 startWait (vm, vm->getInput (1 , 2 )->toDouble ());
587587 }
@@ -596,7 +596,7 @@ unsigned int LooksBlocks::thinkForSecs(VirtualMachine *vm)
596596
597597unsigned int LooksBlocks::think (VirtualMachine *vm)
598598{
599- showBubble (vm, Target::BubbleType ::Think, vm->getInput (0 , 1 )->toString ());
599+ showBubble (vm, TextBubble::Type ::Think, vm->getInput (0 , 1 )->toString ());
600600 return 1 ;
601601}
602602
0 commit comments