summaryrefslogtreecommitdiff
path: root/src/buy_menu_helpers.c
diff options
context:
space:
mode:
authorjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-08-29 03:00:08 +0800
committerjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-08-29 03:09:24 +0800
commit4b5195c9cb7afa4f7fd45d5381b258a0e7ee17cf (patch)
tree7c64a1fe5ceeeef620e7e35adc75f021108aed5e /src/buy_menu_helpers.c
parent2bd15329e07a23d3515dc1c9c9e5d8f75d3be429 (diff)
parent6c0fd9884cfa7eca6c2b2f0394efea1140d0feb1 (diff)
Merge branch 'master' into battle
Diffstat (limited to 'src/buy_menu_helpers.c')
-rw-r--r--src/buy_menu_helpers.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/buy_menu_helpers.c b/src/buy_menu_helpers.c
index 4cdf90e4e..cf8072977 100644
--- a/src/buy_menu_helpers.c
+++ b/src/buy_menu_helpers.c
@@ -148,23 +148,11 @@ static const struct WindowTemplate sShopBuyMenuYesNoWindowTemplate =
.baseBlock = 0xC1,
};
-static const struct TextColor sShopBuyMenuTextColors[] =
+static const u8 sShopBuyMenuTextColors[][3] =
{
- {
- .fgColor = 0,
- .bgColor = 1,
- .shadowColor = 2,
- },
- {
- .fgColor = 0,
- .bgColor = 2,
- .shadowColor = 3,
- },
- {
- .fgColor = 0,
- .bgColor = 3,
- .shadowColor = 2,
- },
+ {0, 1, 2},
+ {0, 2, 3},
+ {0, 3, 2}
};
void BuyMenuInitWindows(bool32 isSellingTM)
@@ -191,7 +179,7 @@ void BuyMenuDrawMoneyBox(void)
void BuyMenuPrint(u8 windowId, u8 font, const u8 *text, u8 x, u8 y, u8 letterSpacing, u8 lineSpacing, s8 speed, u8 color)
{
- AddTextPrinterParameterized4(windowId, font, x, y, letterSpacing, lineSpacing, &sShopBuyMenuTextColors[color], speed, text);
+ AddTextPrinterParameterized4(windowId, font, x, y, letterSpacing, lineSpacing, sShopBuyMenuTextColors[color], speed, text);
}
void BuyMenuDisplayMessage(u8 taskId, const u8 *text, TaskFunc callback)