summaryrefslogtreecommitdiff
path: root/src/d/d_msg_scrn_tree.cpp
diff options
context:
space:
mode:
authorMax Roncace <me@caseif.net>2025-09-19 14:32:05 -0400
committerGitHub <noreply@github.com>2025-09-19 21:32:05 +0300
commit11ebeb3fe04496ec46ab30a5aebb424f2b1175e3 (patch)
tree80683b3816d0944ed8275a8b39433fb6753cf3ff /src/d/d_msg_scrn_tree.cpp
parent818dec837f3370b4650476203f265b3b51cb82e6 (diff)
Link all oustanding US-matched TUs for JP (#2671)
Diffstat (limited to 'src/d/d_msg_scrn_tree.cpp')
-rw-r--r--src/d/d_msg_scrn_tree.cpp35
1 files changed, 35 insertions, 0 deletions
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();