Fix Script Scrollable Multichoice Arrow Positions (#5884)
Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
parent
91c7bd9e53
commit
767e5a1f29
1 changed files with 4 additions and 2 deletions
|
@ -2766,10 +2766,12 @@ static void ScrollableMultichoice_UpdateScrollArrows(u8 taskId)
|
|||
struct ScrollArrowsTemplate template = sScrollableMultichoice_ScrollArrowsTemplate;
|
||||
if (task->tMaxItemsOnScreen != task->tNumItems)
|
||||
{
|
||||
u32 y0 = (8 * (task->tTop - 1));
|
||||
|
||||
template.firstX = (task->tWidth / 2) * 8 + 12 + (task->tLeft - 1) * 8;
|
||||
template.firstY = 8;
|
||||
template.firstY = 8 + y0;
|
||||
template.secondX = (task->tWidth / 2) * 8 + 12 + (task->tLeft - 1) * 8;
|
||||
template.secondY = task->tHeight * 8 + 10;
|
||||
template.secondY = task->tHeight * 8 + 10 + y0;
|
||||
template.fullyUpThreshold = 0;
|
||||
template.fullyDownThreshold = task->tNumItems - task->tMaxItemsOnScreen;
|
||||
task->tScrollArrowId = AddScrollIndicatorArrowPair(&template, &gScrollableMultichoice_ScrollOffset);
|
||||
|
|
Loading…
Reference in a new issue