summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCatobat <69204835+Catobat@users.noreply.github.com>2023-04-30 13:14:10 +0200
committerCatobat <69204835+Catobat@users.noreply.github.com>2023-04-30 13:14:10 +0200
commitd1d78ed018967130231a0ce9bb04819e9faef9ce (patch)
tree67c31d335cca78086f6e6fbdadd58100335278ea /src
parentfcfbd73dd26284d6b89bec62483502a9e13aecdc (diff)
Name members for button texts in struct_0200AF00
Diffstat (limited to 'src')
-rw-r--r--src/playerUtils.c2
-rw-r--r--src/subtask.c6
-rw-r--r--src/ui.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/playerUtils.c b/src/playerUtils.c
index b078f080..caad6878 100644
--- a/src/playerUtils.c
+++ b/src/playerUtils.c
@@ -659,7 +659,7 @@ bool32 (*const gPlayerChargeActions[])(ChargeState*) = {
};
const InteractableObject gNoInteraction = {
- 0, 0xFF, 0, 0, 0, 0,
+ 0, INTERACTION_NULL, 0, 0, NULL, NULL,
};
// for shifting the hitbox in which entities can be interacted with in Link's facing direction
diff --git a/src/subtask.c b/src/subtask.c
index 3661f8a6..6af46d94 100644
--- a/src/subtask.c
+++ b/src/subtask.c
@@ -114,13 +114,13 @@ void sub_080A70AC(const KeyButtonLayout* layout) {
gUnk_0200AF00.unk_14 = 0x7f;
gUnk_0200AF00.buttonX[0] = layout->aButtonX;
gUnk_0200AF00.buttonY[0] = (s8)layout->aButtonY;
- gUnk_0200AF00.unk_30[0] = layout->aButtonText;
+ gUnk_0200AF00.buttonText[0] = layout->aButtonText;
gUnk_0200AF00.buttonX[1] = layout->bButtonX;
gUnk_0200AF00.buttonY[1] = (s8)layout->bButtonY;
- gUnk_0200AF00.unk_30[1] = layout->bButtonText;
+ gUnk_0200AF00.buttonText[1] = layout->bButtonText;
gUnk_0200AF00.buttonX[2] = layout->rButtonX;
gUnk_0200AF00.buttonY[2] = (s8)layout->rButtonY;
- gUnk_0200AF00.unk_32 = layout->rButtonText;
+ gUnk_0200AF00.buttonText[2] = layout->rButtonText;
layout++;
do {
CreateUIElement(layout->aButtonX, layout->aButtonY);
diff --git a/src/ui.c b/src/ui.c
index 9d104798..f51fdfd6 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -756,9 +756,9 @@ void TextUIElement(UIElement* element) {
break;
}
}
- gUnk_0200AF00.unk_32 = tmp;
+ gUnk_0200AF00.buttonText[2] = tmp;
}
- tmp = gUnk_0200AF00.unk_30[element->buttonElementId];
+ tmp = gUnk_0200AF00.buttonText[element->buttonElementId];
element->unk_0_1 = 0;
if (tmp != 0) {
tmp += gUnk_080C9044[((SaveHeader*)0x2000000)->language];