@@ -221,12 +221,6 @@ uint32_t getNextLineIndex(char *str)
221
221
222
222
void drawStringMultiline (float x, float y, const char *text, float scale)
223
223
{
224
- // Get the line increment amount
225
- // Round the value down
226
- float increment = (scale * 25 ) + 5 ;
227
- int32_t tempIncrementValue = static_cast <int32_t >(increment);
228
- increment = static_cast <float >(tempIncrementValue);
229
-
230
224
// Copy the text to a temporary array, as it will be modified
231
225
uint32_t textSize = strlen (text);
232
226
char tempText[textSize + 1 ];
@@ -254,7 +248,7 @@ void drawStringMultiline(float x, float y, const char *text, float scale)
254
248
index = getNextLineIndex (currentLine);
255
249
256
250
// Implement the new line space
257
- y -= increment ;
251
+ y -= 20 . f ;
258
252
}
259
253
while (index != 0 );
260
254
}
@@ -1633,7 +1627,7 @@ void drawMemoryChangeWatchPosition()
1633
1627
int32_t PosY = MemoryWatchPosition.PosY ;
1634
1628
uint32_t TextColor = 0xFFFFFFFF ;
1635
1629
uint8_t Alpha = 0xFF ;
1636
- float Scale = 0.75 ;
1630
+ float Scale = 0.65 ;
1637
1631
1638
1632
drawText (getValueString (tempMenuSelectedOption), PosX, PosY, Alpha, TextColor, Scale);
1639
1633
@@ -1648,7 +1642,7 @@ void drawMemoryChangeWatchPosition()
1648
1642
uint32_t WindowColor = 0x151515F6 ;
1649
1643
int32_t TextPosX = -135 ;
1650
1644
int32_t TextPosY = 140 ;
1651
- Scale = 0.6 ;
1645
+ Scale = 0.6 ;
1652
1646
1653
1647
const char *HelpText = " Press/Hold the D-Pad directions\n to move the watch\n\n Hold Y to hide this window\n\n Press A to confirm\n\n Press B to cancel" ;
1654
1648
int32_t Width = static_cast <int32_t >(getMessageWidth (HelpText, Scale));
@@ -3804,9 +3798,9 @@ void drawOnScreenTimer()
3804
3798
{
3805
3799
uint32_t TextColor = 0xFFFFFFFF ;
3806
3800
uint8_t Alpha = 0xFF ;
3807
- int32_t PosX = 105 ;
3801
+ int32_t PosX = 115 ;
3808
3802
int32_t PosY = -160 ;
3809
- float Scale = 0.8 ;
3803
+ float Scale = 0.7 ;
3810
3804
3811
3805
#ifdef TTYD_JP
3812
3806
PosX += 5 ;
@@ -3852,9 +3846,9 @@ void drawFrameCounter()
3852
3846
3853
3847
uint32_t TextColor = 0xFFFFFFFF ;
3854
3848
uint8_t Alpha = 0xFF ;
3855
- int32_t PosX = 105 ;
3849
+ int32_t PosX = 115 ;
3856
3850
int32_t PosY = -160 ;
3857
- float Scale = 0.8 ;
3851
+ float Scale = 0.7 ;
3858
3852
3859
3853
#ifdef TTYD_JP
3860
3854
PosX += 5 ;
@@ -3898,8 +3892,8 @@ void drawMarioCoordinates()
3898
3892
uint32_t TextColor = 0xFFFFFFFF ;
3899
3893
uint8_t Alpha = 0xFF ;
3900
3894
int32_t PosX = -232 ;
3901
- int32_t PosY = -162 ;
3902
- float Scale = 0.75 ;
3895
+ int32_t PosY = -160 ;
3896
+ float Scale = 0.65 ;
3903
3897
3904
3898
// Move the text up if the input display is active
3905
3899
if (Displays[BUTTON_INPUT_DISPLAY])
@@ -3922,8 +3916,8 @@ void drawMarioSpeedXZ()
3922
3916
uint32_t TextColor = 0xFFFFFFFF ;
3923
3917
uint8_t Alpha = 0xFF ;
3924
3918
int32_t PosX = -232 ;
3925
- int32_t PosY = -162 ;
3926
- float Scale = 0.75 ;
3919
+ int32_t PosY = -160 ;
3920
+ float Scale = 0.65 ;
3927
3921
3928
3922
// Move the text up if the input display is active
3929
3923
if (Displays[BUTTON_INPUT_DISPLAY])
@@ -3954,9 +3948,9 @@ void drawJumpStorageDetails()
3954
3948
{
3955
3949
uint32_t TextColor = 0xFFFFFFFF ;
3956
3950
uint8_t Alpha = 0xFF ;
3957
- int32_t PosX = 110 ;
3951
+ int32_t PosX = 140 ;
3958
3952
int32_t PosY = 120 ;
3959
- float Scale = 0.75 ;
3953
+ float Scale = 0.65 ;
3960
3954
3961
3955
ttyd::mario::Player *player = ttyd::mario::marioGetPtr ();
3962
3956
char *tempDisplayBuffer = DisplayBuffer;
@@ -3973,7 +3967,7 @@ void drawJumpStorageDetails()
3973
3967
const char *TextToDraw;
3974
3968
3975
3969
getOnOffTextAndColor (JumpStorageFlag, &TextToDraw, &TextColor);
3976
- drawText (TextToDraw, PosX + 38 , PosY, Alpha, TextColor, Scale);
3970
+ drawText (TextToDraw, PosX + 33 , PosY, Alpha, TextColor, Scale);
3977
3971
}
3978
3972
3979
3973
void drawButtonInputs ()
@@ -3982,7 +3976,7 @@ void drawButtonInputs()
3982
3976
uint8_t Alpha = 0xFF ;
3983
3977
int32_t PosX = -232 ;
3984
3978
int32_t PosY = -160 ;
3985
- float Scale = 0.75 ;
3979
+ float Scale = 0.65 ;
3986
3980
3987
3981
uint32_t ButtonInput = ttyd::system::keyGetButton (0 );
3988
3982
char *tempDisplayBuffer = DisplayBuffer;
@@ -4022,8 +4016,8 @@ void drawStickAngle()
4022
4016
uint32_t TextColor = 0xFFFFFFFF ;
4023
4017
uint8_t Alpha = 0xFF ;
4024
4018
int32_t PosX = -232 ;
4025
- int32_t PosY = -162 ;
4026
- float Scale = 0.75 ;
4019
+ int32_t PosY = -160 ;
4020
+ float Scale = 0.65 ;
4027
4021
4028
4022
// Move the text up if the input display is active
4029
4023
if (Displays[BUTTON_INPUT_DISPLAY])
@@ -4065,7 +4059,7 @@ void drawMemoryWatchesOnOverworld()
4065
4059
4066
4060
uint32_t Color = 0xFFFFFFFF ;
4067
4061
uint8_t Alpha = 0xFF ;
4068
- float Scale = 0.75 ;
4062
+ float Scale = 0.65 ;
4069
4063
4070
4064
for (uint32_t i = 0 ; i < Size; i++)
4071
4065
{
@@ -4092,8 +4086,8 @@ void drawYoshiSkipDetails()
4092
4086
uint32_t TextColor = 0xFFFFFFFF ;
4093
4087
uint8_t Alpha = 0xFF ;
4094
4088
int32_t PosX = -232 ;
4095
- int32_t PosY = -117 ;
4096
- float Scale = 0.75 ;
4089
+ int32_t PosY = -120 ;
4090
+ float Scale = 0.65 ;
4097
4091
4098
4092
// Move the text up if the input display is active
4099
4093
if (Displays[BUTTON_INPUT_DISPLAY])
@@ -4227,8 +4221,8 @@ void drawPalaceSkipDetails()
4227
4221
uint32_t TextColor = 0xFFFFFFFF ;
4228
4222
uint8_t Alpha = 0xFF ;
4229
4223
int32_t PosX = -232 ;
4230
- int32_t PosY = -70 ;
4231
- float Scale = 0.75 ;
4224
+ int32_t PosY = -80 ;
4225
+ float Scale = 0.65 ;
4232
4226
4233
4227
// Move the text up if the input display is active
4234
4228
if (Displays[BUTTON_INPUT_DISPLAY])
@@ -4277,8 +4271,8 @@ void drawBridgeSkipDetails()
4277
4271
uint32_t TextColor = 0xFFFFFFFF ;
4278
4272
uint8_t Alpha = 0xFF ;
4279
4273
int32_t PosX = -232 ;
4280
- int32_t PosY = -117 ;
4281
- float Scale = 0.75 ;
4274
+ int32_t PosY = -120 ;
4275
+ float Scale = 0.65 ;
4282
4276
4283
4277
// Move the text up if the input display is active
4284
4278
if (Displays[BUTTON_INPUT_DISPLAY])
@@ -4355,8 +4349,8 @@ void drawBlimpTicketSkipDetails()
4355
4349
uint32_t TextColor = 0xFFFFFFFF ;
4356
4350
uint8_t Alpha = 0xFF ;
4357
4351
int32_t PosX = -232 ;
4358
- int32_t PosY = -95 ;
4359
- float Scale = 0.75 ;
4352
+ int32_t PosY = -100 ;
4353
+ float Scale = 0.65 ;
4360
4354
4361
4355
// Move the text up if the input display is active
4362
4356
if (Displays[BUTTON_INPUT_DISPLAY])
@@ -4541,7 +4535,7 @@ void drawActionCommandsTiming()
4541
4535
int32_t TextPosY = -105 ;
4542
4536
// int32_t WindowWidth = 320;
4543
4537
int32_t WindowCurve = 10 ;
4544
- float Scale = 0.75 ;
4538
+ float Scale = 0.7 ;
4545
4539
4546
4540
int32_t WindowWidth = static_cast <int32_t >(getMessageWidth (TextToDraw, Scale));
4547
4541
@@ -4557,7 +4551,7 @@ void drawEffsActive()
4557
4551
uint8_t Alpha = 0xFF ;
4558
4552
int32_t PosX = -232 ;
4559
4553
int32_t PosY = 60 ;
4560
- float Scale = 0.75 ;
4554
+ float Scale = 0.65 ;
4561
4555
4562
4556
// Get the total amount of effs active
4563
4557
ttyd::effdrv::EffWork *EffWrk = ttyd::effdrv::effWorkPointer;
0 commit comments