mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
updated cursor position to be off screen
- selected pokemon cursor position is currently off screen - I don't fully understand cursor position setting so i'll leave it open for another contributor
This commit is contained in:
parent
d517b4fb9e
commit
d10d734d36
@ -1923,6 +1923,11 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
// The value is guaranteed to be less than the value limit so no need to check, simple call suffices
|
// The value is guaranteed to be less than the value limit so no need to check, simple call suffices
|
||||||
this.tryUpdateValue(this.scene.gameData.getSpeciesStarterValue(species.speciesId));
|
this.tryUpdateValue(this.scene.gameData.getSpeciesStarterValue(species.speciesId));
|
||||||
|
|
||||||
|
// set cursor position for selected pokemon
|
||||||
|
const cursorObj = this.starterCursorObjs[this.starterCursors.length];
|
||||||
|
// set's the cursor off screen
|
||||||
|
cursorObj.setPosition(-100, -100);
|
||||||
|
|
||||||
// Generate the nature, ability, and moveset for the pokemon
|
// Generate the nature, ability, and moveset for the pokemon
|
||||||
this.speciesStarterDexEntry = species ? this.scene.gameData.dexData[species.speciesId] : null;
|
this.speciesStarterDexEntry = species ? this.scene.gameData.dexData[species.speciesId] : null;
|
||||||
this.dexAttrCursor = species ? this.scene.gameData.getSpeciesDefaultDexAttr(species, false, true) : 0n;
|
this.dexAttrCursor = species ? this.scene.gameData.getSpeciesDefaultDexAttr(species, false, true) : 0n;
|
||||||
|
Loading…
Reference in New Issue
Block a user