From 11ebeb3fe04496ec46ab30a5aebb424f2b1175e3 Mon Sep 17 00:00:00 2001 From: Max Roncace Date: Fri, 19 Sep 2025 14:32:05 -0400 Subject: Link all oustanding US-matched TUs for JP (#2671) --- src/d/d_msg_scrn_tree.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/d/d_msg_scrn_tree.cpp') diff --git a/src/d/d_msg_scrn_tree.cpp b/src/d/d_msg_scrn_tree.cpp index 88674b87e6..c23e503a81 100644 --- a/src/d/d_msg_scrn_tree.cpp +++ b/src/d/d_msg_scrn_tree.cpp @@ -60,8 +60,42 @@ dMsgScrnTree_c::dMsgScrnTree_c(JUTFont* param_0, JKRExpHeap* param_1) { field_0xc8->getPanePtr()->setAnimation(field_0xd0); mpScreen->search('white_m')->setAnimation(field_0xd4); + +#if VERSION == VERSION_GCN_JPN + if (dComIfGs_getOptUnk0() != 0) { + for (int i = 0; i < 3; i++) { + static u64 const t_tag[3] = {'mg_3line', 't3_w', 't3_s'}; + + mpTm_c[i] = new CPaneMgr(mpScreen, t_tag[i], 0, NULL); + ((J2DTextBox*)mpTm_c[i]->getPanePtr())->setFont(field_0x54); + ((J2DTextBox*)mpTm_c[i]->getPanePtr())->setString(0x210, ""); + } + + mpScreen->search('n_3line')->show(); + mpScreen->search('n_3fline')->hide(); + mpScreen->search('n_e4line')->hide(); + } else { + for (int i = 0; i < 3; i++) { + static u64 const t_tag[3] = {'t3fline', 't3f_w', 't3f_s'}; + static u64 const tr_tag[3] = {'mg_3f', 'mg_3f_w', 'mg_3f_s'}; + + mpTm_c[i] = new CPaneMgr(mpScreen, t_tag[i], 0, NULL); + ((J2DTextBox*)mpTm_c[i]->getPanePtr())->setFont(field_0x54); + ((J2DTextBox*)mpTm_c[i]->getPanePtr())->setString(0x210, ""); + + mpTmr_c[i] = new CPaneMgr(mpScreen, tr_tag[i], 0, NULL); + ((J2DTextBox*)mpTmr_c[i]->getPanePtr())->setFont(field_0x54); + ((J2DTextBox*)mpTmr_c[i]->getPanePtr())->setString(0x210, ""); + } + + mpScreen->search('n_3line')->hide(); + mpScreen->search('n_3fline')->show(); + mpScreen->search('n_e4line')->hide(); + } +#else for (int i = 0; i < 3; i++) { static u64 const t_tag[3] = {'mg_e4lin', 'f4_w', 't4_s'}; + mpTm_c[i] = new CPaneMgr(mpScreen, t_tag[i], 0, NULL); ((J2DTextBox*)mpTm_c[i]->getPanePtr())->setFont(field_0x54); ((J2DTextBox*)mpTm_c[i]->getPanePtr())->setString(0x200, ""); @@ -70,6 +104,7 @@ dMsgScrnTree_c::dMsgScrnTree_c(JUTFont* param_0, JKRExpHeap* param_1) { mpScreen->search('n_3line')->hide(); mpScreen->search('n_3fline')->hide(); mpScreen->search('n_e4line')->show(); +#endif ((J2DTextBox*)mpTm_c[0]->getPanePtr())->getFontSize(mFontSize); mTBoxWidth = mpTm_c[0]->getSizeX(); -- cgit v1.2.3