From 51e09b41abc69423ba6f5c1ad2894109c504fa29 Mon Sep 17 00:00:00 2001 From: Jean-Michel Levesque Date: Tue, 7 May 2024 15:17:08 -0300 Subject: [PATCH] pokemon tab x value change --- src/ui/starter-select-ui-handler.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index 51980e72f..0a5aef9ce 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -85,7 +85,7 @@ function getValueReductionCandyCounts(baseValue: integer): [integer, integer] { } } -const tabX = [172, 259]; +const tabX = [174, 259]; const tabs = { POKEMON: 0, @@ -1448,10 +1448,13 @@ export default class StarterSelectUiHandler extends MessageUiHandler { if(0 > tabNumber || tabNumber >= tabX.length) return false + const offTint = 0xD3D3D3; + const onTint = 0x000000; + this.tabCursor = tabNumber; this.tabCursorObj.setX(tabX[tabNumber]); - this.tabWindowObjs.forEach((tabWindowObj) => tabWindowObj.setAlpha(0.5)); - this.tabWindowObjs[tabNumber].setAlpha(1); + this.tabWindowObjs.forEach((tabWindowObj) => tabWindowObj.setTint(offTint)); + this.tabWindowObjs[tabNumber].setTint(onTint); return true; }