//
// DialogLayer::handleDialogTap from 0x1400d3e70 to 0x1400d3f9e (302 bytes)
//
// 5 xrefs:
// > DialogLayer::ccTouchBegan @ 0x1400d40ad
// > DialogLayer::keyDown @ 0x1400d43e4
// > ??> @ 0x14066d72c
// > ??> @ 0x14066d73c
// > ??> @ 0x1406c8670
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void DialogLayer::handleDialogTap(DialogLayer *a1)
{
float m_animateTime; // xmm6_4
float v3; // xmm2_4
TextArea *m_textArea; // rax
TextArea *v5; // rbx
__int64 v6; // rdx
__int64 v7; // rdx
cocos2d::CCArray *m_dialogObjects; // rcx
m_animateTime = a1->m_animateTime;
v3 = sub_14003CF30() - m_animateTime;
if ( m_animateTime <= 0.0 || v3 >= 0.2 || a1->m_handleTap || v3 < 0.0 )
{
if ( a1->m_animating )
{
if ( !a1->m_skippable )
{
m_textArea = a1->m_textArea;
a1->m_animating = 0;
if ( m_textArea )
{
m_textArea->m_delegate = nullptr;
TextArea::stopAllCharacterActions(a1->m_textArea);
v5 = a1->m_textArea;
TextArea::stopAllCharacterActions(v5);
LOBYTE(v6) = -1;
v5->setOpacity(&v5->cocos2d::CCRGBAProtocol, v6);
v5->m_allShown = 1;
}
cocos2d::CCNode::stopAllActions(a1->m_navButtonSprite);
LOBYTE(v7) = -1;
a1->m_navButtonSprite->setOpacity(&a1->m_navButtonSprite->cocos2d::CCRGBAProtocol, v7);
DialogLayer::updateNavButtonFrame(a1);
}
}
else
{
m_dialogObjects = a1->m_dialogObjects;
if ( m_dialogObjects && cocos2d::CCArray::count(m_dialogObjects) )
DialogLayer::displayNextObject(a1);
else
DialogLayer::onClose(a1);
}
}
}