summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-06-28 10:38:43 -0400
committerscnorton <scnorton@biociphers.org>2017-06-28 10:38:43 -0400
commit7018449024766d1b24d3de4271f998d285e19cd0 (patch)
tree7d7b53167a1b4fd285ce74239532b477403222e9 /src
parentf01cdd2a380174613dc0da6e04dd19a1b0520b0a (diff)
sub_810C40C
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pokeblock.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/pokeblock.c b/src/pokeblock.c
index e62e8cf90..8ea8de838 100755
--- a/src/pokeblock.c
+++ b/src/pokeblock.c
@@ -777,3 +777,33 @@ void sub_810C368(u8 taskId)
gScriptItemId = gUnknown_02039248[0] + gUnknown_02039248[1];
gTasks[taskId].func = sub_810C40C;
}
+
+void sub_810C40C(u8 taskId)
+{
+ if (gMain.newAndRepeatedKeys & DPAD_UP)
+ {
+ if (GetMenuCursorPos())
+ {
+ PlaySE(SE_SELECT);
+ MoveMenuCursor(-1);
+ }
+ }
+ else if (gMain.newAndRepeatedKeys & DPAD_DOWN)
+ {
+ if (GetMenuCursorPos() != gUnknown_0203924C - 1)
+ {
+ PlaySE(SE_SELECT);
+ MoveMenuCursor(+1);
+ }
+ }
+ else if (gMain.newKeys & A_BUTTON)
+ {
+ PlaySE(SE_SELECT);
+ gUnknown_083F7EF4[gUnknown_03000758[GetMenuCursorPos()]].func(taskId);
+ }
+ else if (gMain.newKeys & B_BUTTON)
+ {
+ PlaySE(SE_SELECT);
+ sub_810C748(taskId);
+ }
+}