@@ -873,6 +873,10 @@ void drawMarioSpecialMovesOptions()
873
873
PosX += 30 ;
874
874
PosY -= 25 ;
875
875
876
+ #ifdef TTYD_JP
877
+ PosX -= 1 ;
878
+ #endif
879
+
876
880
drawText (HelpText, PosX, PosY, Alpha, Color, Scale);
877
881
878
882
// Set the values for the text to use
@@ -959,11 +963,19 @@ void drawFollowersOptions()
959
963
PosX += 30 ;
960
964
PosY -= 25 ;
961
965
966
+ #ifdef TTYD_JP
967
+ PosX -= 1 ;
968
+ #endif
969
+
962
970
drawText (HelpText, PosX, PosY, Alpha, Color, Scale);
963
971
964
972
PosX += 45 ;
965
973
PosY -= 54 ;
966
974
975
+ #ifdef TTYD_JP
976
+ PosX += 4 ;
977
+ #endif
978
+
967
979
// Draw the main text
968
980
uint32_t tempStatsFollowerOptionsLinesSize = StatsFollowerOptionsLinesSize;
969
981
uint32_t tempSecondaryMenuOption = MenuVar.SecondaryMenuOption ;
@@ -1331,13 +1343,21 @@ void drawPartnerChangeYoshiColorOptions()
1331
1343
PosX += 30 ;
1332
1344
PosY -= 25 ;
1333
1345
1346
+ #ifdef TTYD_JP
1347
+ PosX -= 1 ;
1348
+ #endif
1349
+
1334
1350
drawText (HelpText, PosX, PosY, Alpha, Color, Scale);
1335
1351
1336
1352
// Set the values for the text to use
1337
1353
uint32_t tempSecondaryMenuOption = MenuVar.SecondaryMenuOption ;
1338
1354
PosX += 47 ;
1339
1355
PosY -= 54 ;
1340
1356
1357
+ #ifdef TTYD_JP
1358
+ PosX += 2 ;
1359
+ #endif
1360
+
1341
1361
uint32_t Size = StatsYoshiColorOptionsLinesSize;
1342
1362
for (uint32_t i = 0 ; i < Size; i++)
1343
1363
{
@@ -1720,10 +1740,18 @@ void drawMemoryTypeList()
1720
1740
PosX += 30 ;
1721
1741
PosY -= 25 ;
1722
1742
1743
+ #ifdef TTYD_JP
1744
+ PosX -= 1 ;
1745
+ #endif
1746
+
1723
1747
drawText (HelpText, PosX, PosY, Alpha, Color, Scale);
1724
1748
PosX += 42 ;
1725
1749
PosY -= 50 ;
1726
1750
1751
+ #ifdef TTYD_JP
1752
+ PosX += 3 ;
1753
+ #endif
1754
+
1727
1755
// Draw the main text
1728
1756
uint32_t Size = MemoryTypeLinesSize;
1729
1757
uint32_t tempSecondaryMenuOption = MenuVar.SecondaryMenuOption ;
@@ -1779,9 +1807,14 @@ void drawMemoryWatchChangeAddressListWindow(int32_t posY)
1779
1807
uint32_t WindowColor = 0x151515E0 ;
1780
1808
int32_t WindowPosX = -245 ;
1781
1809
int32_t WindowPosY = posY;
1782
- int32_t Width = 373 ;
1810
+ int32_t Width = 379 ;
1783
1811
int32_t Height = 15 ;
1784
1812
int32_t Curve = 0 ;
1813
+
1814
+ #ifdef TTYD_JP
1815
+ Width -= 16 ;
1816
+ #endif
1817
+
1785
1818
drawWindow (WindowColor, WindowPosX, WindowPosY, Width, Height, Curve);
1786
1819
}
1787
1820
@@ -2119,30 +2152,36 @@ void drawPartnerFollowerMessage(int32_t textPosY, bool drawForPartner)
2119
2152
return ;
2120
2153
}
2121
2154
2155
+ int32_t TextPosX = -172 ;
2156
+ int32_t WindowWidth = 375 ;
2157
+
2122
2158
// Get the text to use
2123
2159
const char *PartnerOrFollowerText;
2124
2160
if (drawForPartner)
2125
2161
{
2126
2162
PartnerOrFollowerText = " partner" ;
2163
+
2164
+ #ifdef TTYD_JP
2165
+ TextPosX += 3 ;
2166
+ WindowWidth -= 7 ;
2167
+ #endif
2127
2168
}
2128
2169
else
2129
2170
{
2130
2171
PartnerOrFollowerText = " follower" ;
2172
+
2173
+ #ifdef TTYD_JP
2174
+ WindowWidth -= 1 ;
2175
+ #endif
2131
2176
}
2132
2177
2178
+ // Print error text if currently trying to spawn a partner/follower when not able to
2133
2179
char *tempDisplayBuffer = DisplayBuffer;
2180
+
2134
2181
sprintf (tempDisplayBuffer,
2135
2182
" To spawn a %s, you must have a file\n loaded and not be in a battle nor a\n screen transition." ,
2136
2183
PartnerOrFollowerText);
2137
2184
2138
- // Print error text if currently trying to spawn a partner/follower when not able to
2139
- int32_t TextPosX = -172 ;
2140
- int32_t WindowWidth = 375 ;
2141
-
2142
- #ifdef TTYD_JP
2143
- WindowWidth -= 1 ;
2144
- #endif
2145
-
2146
2185
drawErrorWindow (tempDisplayBuffer, TextPosX, textPosY, WindowWidth);
2147
2186
}
2148
2187
}
@@ -2420,6 +2459,11 @@ void drawAdjustableValue(bool changingItem, uint32_t currentMenu)
2420
2459
int32_t curve = 10 ;
2421
2460
int32_t height;
2422
2461
2462
+ #ifdef TTYD_JP
2463
+ PosX += 4 ;
2464
+ width -= 6 ;
2465
+ #endif
2466
+
2423
2467
uint32_t tempCurrentMenuOption = MenuVar.CurrentMenuOption ;
2424
2468
2425
2469
if (changingItem)
@@ -2572,7 +2616,14 @@ void drawAdjustableValue(bool changingItem, uint32_t currentMenu)
2572
2616
2573
2617
x += 166 ;
2574
2618
y -= 30 ;
2619
+
2620
+ #ifdef TTYD_JP
2621
+ scale = 1 ;
2622
+ x -= 1 ;
2623
+ y += 3 ;
2624
+ #else
2575
2625
scale = 0.9 ;
2626
+ #endif
2576
2627
2577
2628
// Calculate the X offset
2578
2629
int32_t tempPosX = 0 ;
@@ -2586,7 +2637,13 @@ void drawAdjustableValue(bool changingItem, uint32_t currentMenu)
2586
2637
if (NumberIsNegative)
2587
2638
{
2588
2639
// Draw the negative sign
2589
- drawText (" -" , (x - 10 ), y, alpha, color, scale);
2640
+ int32_t NegativeSignOffset = 10 ;
2641
+
2642
+ #ifdef TTYD_JP
2643
+ NegativeSignOffset += 2 ;
2644
+ #endif
2645
+
2646
+ drawText (" -" , (x - NegativeSignOffset), y, alpha, color, scale);
2590
2647
}
2591
2648
2592
2649
// Draw each digit of the number
@@ -2631,6 +2688,11 @@ void drawMemoryWatchAdjustableValue(uint32_t currentMenu)
2631
2688
int32_t curve = 10 ;
2632
2689
int32_t height = 148 ;
2633
2690
2691
+ #ifdef TTYD_JP
2692
+ PosX += 4 ;
2693
+ width -= 6 ;
2694
+ #endif
2695
+
2634
2696
drawWindow (color, PosX, y, width, height, curve);
2635
2697
2636
2698
// Draw the help text
@@ -2684,8 +2746,15 @@ void drawMemoryWatchAdjustableValue(uint32_t currentMenu)
2684
2746
// Set up array for each digit of the number
2685
2747
uint8_t AdjustableValue[AmountOfNumbers];
2686
2748
2687
- x += 173 ;
2688
- scale = 0.9 ;
2749
+ x += 180 ;
2750
+
2751
+ #ifdef TTYD_JP
2752
+ scale = 1 ;
2753
+ x -= 1 ;
2754
+ y += 2 ;
2755
+ #else
2756
+ scale = 0.9 ;
2757
+ #endif
2689
2758
2690
2759
// Calculate the X offset
2691
2760
int32_t tempPosX = 0 ;
@@ -2708,7 +2777,13 @@ void drawMemoryWatchAdjustableValue(uint32_t currentMenu)
2708
2777
}
2709
2778
2710
2779
// Draw the negative sign
2711
- drawText (" -" , (x - 40 ), y, alpha, color, scale);
2780
+ int32_t NegativeSignOffset = 40 ;
2781
+
2782
+ #ifdef TTYD_JP
2783
+ NegativeSignOffset += 2 ;
2784
+ #endif
2785
+
2786
+ drawText (" -" , (x - NegativeSignOffset), y, alpha, color, scale);
2712
2787
}
2713
2788
else
2714
2789
{
@@ -2774,6 +2849,11 @@ void drawAddByIconMain(uint32_t currentMenu)
2774
2849
PosY = 145 ;
2775
2850
Color = 0xFFFFFFFF ;
2776
2851
const char *HelpText = " Press A to confirm\n Press B to cancel" ;
2852
+
2853
+ #ifdef TTYD_JP
2854
+ PosX -= 2 ;
2855
+ #endif
2856
+
2777
2857
drawText (HelpText, PosX, PosY, Alpha, Color, Scale);
2778
2858
2779
2859
// Draw the window for the current menu option
@@ -3132,10 +3212,11 @@ void drawChangeButtonCombo(uint16_t ¤tButtonCombo)
3132
3212
// Draw the help text
3133
3213
uint8_t Alpha = 0xFF ;
3134
3214
float Scale = 0.6 ;
3135
- PosX += 60 ;
3215
+ PosX += 65 ;
3136
3216
PosY -= 30 ;
3137
3217
Color = 0xFFFFFFFF ;
3138
3218
const char *HelpText = " Hold the button(s) for 3 seconds to set the\n new button combo\n\n Press B three times in succession to cancel" ;
3219
+
3139
3220
drawText (HelpText, PosX, PosY, Alpha, Color, Scale);
3140
3221
3141
3222
// Draw the timer
0 commit comments