Skip to content

Commit e819925

Browse files
committed
Update some error window positions
1 parent 41630b5 commit e819925

File tree

2 files changed

+32
-11
lines changed

2 files changed

+32
-11
lines changed

ttyd-tools/rel/source/draw.cpp

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2891,7 +2891,11 @@ void drawPartnerFollowerMessage(int32_t textPosY, bool drawForPartner)
28912891
return;
28922892
}
28932893

2894-
int32_t TextPosX = -172;
2894+
int32_t TextPosX = -158;
2895+
2896+
#ifdef TTYD_JP
2897+
TextPosX += 2;
2898+
#endif
28952899

28962900
// Get the text to use
28972901
const char *PartnerOrFollowerText;
@@ -2912,7 +2916,7 @@ void drawPartnerFollowerMessage(int32_t textPosY, bool drawForPartner)
29122916
char *tempDisplayBuffer = DisplayBuffer;
29132917

29142918
sprintf(tempDisplayBuffer,
2915-
"To spawn a %s, you must have a file\nloaded and not be in a battle nor a\nscreen transition.",
2919+
"To spawn a %s, you must have a\nfile loaded and not be in a battle nor\na screen transition.",
29162920
PartnerOrFollowerText);
29172921

29182922
drawErrorWindow(tempDisplayBuffer, TextPosX, textPosY);
@@ -2926,7 +2930,7 @@ void drawNotInBattleErrorMessage()
29262930
}
29272931

29282932
const char *CurrentLine = "You must be in a battle to use the Battles menu.";
2929-
int32_t TextPosX = -205;
2933+
int32_t TextPosX = -204;
29302934
int32_t TextPosY = 0;
29312935

29322936
#ifdef TTYD_JP
@@ -3025,11 +3029,11 @@ void drawWarpsErrorMessage(int32_t textPosY)
30253029
}
30263030

30273031
// Print error text if currently trying to warp when not able to
3028-
const char *CurrentLine = "To warp, you must have a file loaded and not\nbe in a battle nor a screen transition.";
3029-
int32_t TextPosX = -195;
3032+
const char *CurrentLine = "To warp, you must have a file loaded and\nnot be in a battle nor a screen transition.";
3033+
int32_t TextPosX = -175;
30303034

30313035
#ifdef TTYD_JP
3032-
TextPosX += 10;
3036+
TextPosX += 5;
30333037
#endif
30343038

30353039
drawErrorWindow(CurrentLine, TextPosX, textPosY);
@@ -3804,8 +3808,12 @@ void drawAddByIcon(uint32_t currentMenu)
38043808
else
38053809
{
38063810
const char *CurrentLine = "The inventory is currently full.";
3807-
int32_t TextPosX = -130;
3811+
int32_t TextPosX = -125;
38083812
int32_t TextPosY = 40;
3813+
3814+
#ifdef TTYD_JP
3815+
TextPosX += 3;
3816+
#endif
38093817
drawErrorWindowAutoCheckForClose(CurrentLine, TextPosX, TextPosY);
38103818
}
38113819
}
@@ -3819,8 +3827,12 @@ void drawAddById(uint32_t currentMenu)
38193827
else
38203828
{
38213829
const char *CurrentLine = "The inventory is currently full.";
3822-
int32_t TextPosX = -130;
3830+
int32_t TextPosX = -125;
38233831
int32_t TextPosY = 40;
3832+
3833+
#ifdef TTYD_JP
3834+
TextPosX += 3;
3835+
#endif
38243836
drawErrorWindowAutoCheckForClose(CurrentLine, TextPosX, TextPosY);
38253837
}
38263838
}

ttyd-tools/rel/source/menu.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4126,17 +4126,23 @@ void drawMenu()
41264126
{
41274127
// Inventory is currently full
41284128
const char *CurrentLine = "The inventory is currently full.";
4129-
int32_t TextPosX = -130;
4129+
int32_t TextPosX = -125;
41304130
int32_t TextPosY = 40;
4131+
#ifdef TTYD_JP
4132+
TextPosX += 3;
4133+
#endif
41314134
drawErrorWindowAutoCheckForClose(CurrentLine, TextPosX, TextPosY);
41324135
break;
41334136
}
41344137
case INVENTORY_EMPTY:
41354138
{
41364139
// Inventory is currently empty
41374140
const char *CurrentLine = "The inventory is currently empty.";
4138-
int32_t TextPosX = -130;
4141+
int32_t TextPosX = -138;
41394142
int32_t TextPosY = 40;
4143+
#ifdef TTYD_JP
4144+
TextPosX += 5;
4145+
#endif
41404146
drawErrorWindowAutoCheckForClose(CurrentLine, TextPosX, TextPosY);
41414147
break;
41424148
}
@@ -4167,8 +4173,11 @@ void drawMenu()
41674173
{
41684174
// Inventory is currently empty
41694175
const char *CurrentLine = "The inventory is currently empty.";
4170-
int32_t TextPosX = -130;
4176+
int32_t TextPosX = -138;
41714177
int32_t TextPosY = 40;
4178+
#ifdef TTYD_JP
4179+
TextPosX += 5;
4180+
#endif
41724181
drawErrorWindowAutoCheckForClose(CurrentLine, TextPosX, TextPosY);
41734182
break;
41744183
}

0 commit comments

Comments
 (0)