Improve board object matching
This commit is contained in:
@@ -219,7 +219,7 @@ namespace ipl {
|
||||
|
||||
mMoveAnim.calc();
|
||||
|
||||
math::VEC2 finalPos = offsetPos + mBoardPos + mMoveSpeed + mMoveAnim.get();
|
||||
ipl::math::VEC2 finalPos = offsetPos + mBoardPos + mMoveSpeed + mMoveAnim.get2();
|
||||
finalPos.x *= locationAdjust;
|
||||
mpLayout->GetRootPane()->SetTranslate(finalPos);
|
||||
mpLayout->calc();
|
||||
|
||||
@@ -1486,7 +1486,13 @@ namespace ipl {
|
||||
mURLProc.setUnk_0x40(8.0f);
|
||||
}
|
||||
|
||||
nw4r::lyt::TextBox* textPane = nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(mpLayout->FindPaneByName("T_Letter"));
|
||||
nw4r::lyt::Pane* pane = mpLayout->FindPaneByName("T_Letter");
|
||||
nw4r::lyt::TextBox* textPane = NULL;
|
||||
const nw4r::ut::detail::RuntimeTypeInfo* paneType = pane->GetRuntimeTypeInfo();
|
||||
const nw4r::ut::detail::RuntimeTypeInfo* textBoxType = &nw4r::lyt::TextBox::typeInfo;
|
||||
if (paneType->IsDerivedFrom(textBoxType)) {
|
||||
textPane = static_cast<nw4r::lyt::TextBox*>(pane);
|
||||
}
|
||||
|
||||
if (System::getChannelManager()->isEnableUrlJump() && mpBoardObj->mLetterType != BoardObject::TYPE_PLAYTIME) {
|
||||
textPane->SetTagProcessor(&mURLProc);
|
||||
|
||||
Reference in New Issue
Block a user