mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
Minor change to party UI
This commit is contained in:
parent
56c776834f
commit
0287904371
BIN
public/images/ui/summary_moves.png
Normal file
BIN
public/images/ui/summary_moves.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
public/images/ui/summary_moves_effect.png
Normal file
BIN
public/images/ui/summary_moves_effect.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 463 B |
BIN
public/images/ui/summary_profile.png
Normal file
BIN
public/images/ui/summary_profile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
@ -687,7 +687,7 @@ export class SwitchPhase extends BattlePhase {
|
|||||||
start() {
|
start() {
|
||||||
super.start();
|
super.start();
|
||||||
|
|
||||||
this.scene.ui.setMode(Mode.PARTY, this.isModal ? PartyUiMode.SWITCH : PartyUiMode.FORCE_SWITCH, (slotIndex: integer) => {
|
this.scene.ui.setMode(Mode.PARTY, this.isModal ? PartyUiMode.SWITCH : PartyUiMode.FAINT_SWITCH, (slotIndex: integer) => {
|
||||||
if (slotIndex && slotIndex < 6)
|
if (slotIndex && slotIndex < 6)
|
||||||
this.scene.unshiftPhase(new SwitchSummonPhase(this.scene, slotIndex, this.doReturn));
|
this.scene.unshiftPhase(new SwitchSummonPhase(this.scene, slotIndex, this.doReturn));
|
||||||
this.scene.ui.setMode(Mode.MESSAGE);
|
this.scene.ui.setMode(Mode.MESSAGE);
|
||||||
|
@ -10,7 +10,8 @@ const defaultMessage = 'Choose a Pokémon.';
|
|||||||
|
|
||||||
export enum PartyUiMode {
|
export enum PartyUiMode {
|
||||||
SWITCH,
|
SWITCH,
|
||||||
FORCE_SWITCH,
|
FAINT_SWITCH,
|
||||||
|
POST_BATTLE_SWITCH,
|
||||||
MODIFIER
|
MODIFIER
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -193,13 +194,13 @@ export default class PartyUiHandler extends MessageUiHandler {
|
|||||||
if (this.cursor < 6) {
|
if (this.cursor < 6) {
|
||||||
this.showOptions();
|
this.showOptions();
|
||||||
ui.playSelect();
|
ui.playSelect();
|
||||||
} else if (this.partyUiMode === PartyUiMode.FORCE_SWITCH)
|
} else if (this.partyUiMode === PartyUiMode.FAINT_SWITCH)
|
||||||
ui.playError();
|
ui.playError();
|
||||||
else
|
else
|
||||||
this.processInput(keyCodes.X);
|
this.processInput(keyCodes.X);
|
||||||
return;
|
return;
|
||||||
} else if (keyCode === keyCodes.X) {
|
} else if (keyCode === keyCodes.X) {
|
||||||
if (this.partyUiMode !== PartyUiMode.FORCE_SWITCH) {
|
if (this.partyUiMode !== PartyUiMode.FAINT_SWITCH) {
|
||||||
if (this.selectCallback) {
|
if (this.selectCallback) {
|
||||||
const selectCallback = this.selectCallback;
|
const selectCallback = this.selectCallback;
|
||||||
this.selectCallback = null;
|
this.selectCallback = null;
|
||||||
@ -305,7 +306,9 @@ export default class PartyUiHandler extends MessageUiHandler {
|
|||||||
if (this.cursor)
|
if (this.cursor)
|
||||||
this.options.push(PartyOption.SHIFT);
|
this.options.push(PartyOption.SHIFT);
|
||||||
break;
|
break;
|
||||||
case PartyUiMode.FORCE_SWITCH:
|
case PartyUiMode.FAINT_SWITCH:
|
||||||
|
case PartyUiMode.POST_BATTLE_SWITCH:
|
||||||
|
if (this.cursor)
|
||||||
this.options.push(PartyOption.SEND_OUT);
|
this.options.push(PartyOption.SEND_OUT);
|
||||||
break;
|
break;
|
||||||
case PartyUiMode.MODIFIER:
|
case PartyUiMode.MODIFIER:
|
||||||
|
Loading…
Reference in New Issue
Block a user