pokemon tab x value change

pull/572/head
Jean-Michel Levesque 2024-05-07 15:17:08 -03:00
parent 5fd0b298e5
commit 51e09b41ab
1 changed files with 6 additions and 3 deletions

View File

@ -85,7 +85,7 @@ function getValueReductionCandyCounts(baseValue: integer): [integer, integer] {
} }
} }
const tabX = [172, 259]; const tabX = [174, 259];
const tabs = { const tabs = {
POKEMON: 0, POKEMON: 0,
@ -1448,10 +1448,13 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
if(0 > tabNumber || tabNumber >= tabX.length) if(0 > tabNumber || tabNumber >= tabX.length)
return false return false
const offTint = 0xD3D3D3;
const onTint = 0x000000;
this.tabCursor = tabNumber; this.tabCursor = tabNumber;
this.tabCursorObj.setX(tabX[tabNumber]); this.tabCursorObj.setX(tabX[tabNumber]);
this.tabWindowObjs.forEach((tabWindowObj) => tabWindowObj.setAlpha(0.5)); this.tabWindowObjs.forEach((tabWindowObj) => tabWindowObj.setTint(offTint));
this.tabWindowObjs[tabNumber].setAlpha(1); this.tabWindowObjs[tabNumber].setTint(onTint);
return true; return true;
} }