mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-29 11:42:21 +02:00
Pokerus cursor is now treated as decoration
This commit is contained in:
parent
8174e1284a
commit
05e97806b5
@ -1418,29 +1418,26 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
|||||||
|
|
||||||
this.starterSelectScrollBar.setScrollCursor(this.scrollCursor);
|
this.starterSelectScrollBar.setScrollCursor(this.scrollCursor);
|
||||||
|
|
||||||
|
this.pokerusCursorObjs.forEach(cursorObj => cursorObj.setVisible(false));
|
||||||
|
|
||||||
let pokerusCursorIndex = 0;
|
let pokerusCursorIndex = 0;
|
||||||
this.filteredStarterContainers.forEach((container, i) => {
|
this.filteredStarterContainers.forEach((container, i) => {
|
||||||
const pos = calcStarterPosition(i, this.scrollCursor);
|
const pos = calcStarterPosition(i, this.scrollCursor);
|
||||||
container.setPosition(pos.x, pos.y);
|
container.setPosition(pos.x, pos.y);
|
||||||
if (i < onScreenFirstIndex || i > onScreenLastIndex) {
|
if (i < onScreenFirstIndex || i > onScreenLastIndex) {
|
||||||
container.setVisible(false);
|
container.setVisible(false);
|
||||||
|
|
||||||
if (this.pokerusSpecies.includes(container.species)) {
|
|
||||||
this.pokerusCursorObjs[pokerusCursorIndex].setPosition(pos.x - 1, pos.y + 1);
|
|
||||||
this.pokerusCursorObjs[pokerusCursorIndex].setVisible(false);
|
|
||||||
pokerusCursorIndex++;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
container.setVisible(true);
|
container.setVisible(true);
|
||||||
|
|
||||||
if (this.pokerusSpecies.includes(container.species)) {
|
|
||||||
this.pokerusCursorObjs[pokerusCursorIndex].setPosition(pos.x - 1, pos.y + 1);
|
|
||||||
this.pokerusCursorObjs[pokerusCursorIndex].setVisible(true);
|
|
||||||
pokerusCursorIndex++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.showDecorations) {
|
if (this.showDecorations) {
|
||||||
|
|
||||||
|
if (this.pokerusSpecies.includes(container.species)) {
|
||||||
|
this.pokerusCursorObjs[pokerusCursorIndex].setPosition(pos.x - 1, pos.y + 1);
|
||||||
|
this.pokerusCursorObjs[pokerusCursorIndex].setVisible(true);
|
||||||
|
pokerusCursorIndex++;
|
||||||
|
}
|
||||||
|
|
||||||
const speciesId = container.species.speciesId;
|
const speciesId = container.species.speciesId;
|
||||||
this.updateStarterValueLabel(container);
|
this.updateStarterValueLabel(container);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user