Skip to content

feat(wait-movement-command): add movement command#772

Open
Menthx wants to merge 1 commit into
developfrom
562-wait-for-movement-command
Open

feat(wait-movement-command): add movement command#772
Menthx wants to merge 1 commit into
developfrom
562-wait-for-movement-command

Conversation

@Menthx

@Menthx Menthx commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator
  • Remove circular dependecies
  • Make export command file possible
  • Create folder to rearrange the flow
  • display the wait completion node

Thank you for your contribution to the Pokémon Studio repo.

Before submitting this PR into the develop branch, please make sure:

  • Your code builds clean without any errors or warnings
  • You are following the Code guidelines
  • You tested your code to make sure it does what it is supposed to do

Description

Add a node command who can:
Option to wait for all events
Option to wait for specific events
Timeout option
Integration with movement commands

Tests to perform

I want events to wait for movements to complete
So that I can add some timing between event movements
Add the node associated, try to update it, save it, reload, and do the same with the editor.

@Menthx Menthx linked an issue Jun 22, 2026 that may be closed by this pull request
5 tasks
@Menthx Menthx force-pushed the 562-wait-for-movement-command branch 2 times, most recently from 90168ea to 8563176 Compare June 25, 2026 21:09
- Remove circular dependecies
- Make export command file possible
- Create folder to rearrange the flow
- display the wait completion node
@Menthx Menthx force-pushed the 562-wait-for-movement-command branch from 8563176 to 6bf1dbd Compare June 25, 2026 22:49
@Aelysya Aelysya self-requested a review June 27, 2026 12:30
Comment thread assets/i18n/de.json
"event_command_wait_move_completion": "Wait for move completion",
"event_command_wait_move_completion_select": "Waiting",
"event_command_wait_move_completion_select_all": "All event",
"event_command_wait_move_completion_select_some": "Wait spécifics events",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"specific events" au lieu de "spécific events" (l'accent et le s en trop), pareil dans tous les CSV hors-FR

Comment thread assets/i18n/de.json
"event_command_wait_move_completion_select": "Waiting",
"event_command_wait_move_completion_select_all": "All event",
"event_command_wait_move_completion_select_some": "Wait spécifics events",
"event_command_wait_move_completion_multiselect_label": "Event to wait",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Events" au lieu de "Event", pareil dans tous les CSV hors-FR

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Faudrait renommer le dossier dans lequel tu as mis ce fichier, waitCommand c'est pas la même commande que waitMovementCompletionCommand, ça va être confusant à l'avenir.

import { COMMAND_CONNECTION_ID_VALIDATOR, EVENT_COMMAND_CONNECTION_VALIDATOR, EVENT_COMMAND_STUDIO_DATA_VALIDATOR } from '../globalCommand';

export const EVENT_COMMAND_WAIT_MOVEMENT_COMPLETION_VALIDATOR = z.object({
waitAllevent: z.boolean().default(false),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plutôt "waitAllEvents", pour respecter le camelCase et le pluriel

import type { StudioEventCommandCategory } from './category';

export const COMMAND_ID_VALIDATOR = z.string().brand('CommandId');
export type CommandId = z.infer<typeof COMMAND_ID_VALIDATOR>;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu as bougé les export de CommandId et ConnectionId mais tu n'as pas update les fichiers qui les importaient (ex: ShowMessageCommand, EventUtils, etc...)

<Input name="timeout" label={t('event_editor_wait_move_completion_timeout')} labelLeft defaultValue={command.timeout} ref={timeoutRef} />
</InputWithLeftLabelContainer>
<TimeoutInfo>{t('event_editor_wait_move_completion_timeout_info')}</TimeoutInfo>
</InputWithTopLabelContainer>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le champ pour le timeout est pas aligné à droite comme sur figma, il manque aussi l'unité "s":

Studio:
Image

Figma:
Image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si la node est pas sélectionné quand je clique sur un select, il se ferme directement.

20260627-1301-34.8028800.mp4

Et si je vide les options du multi-select, en sortant ça revient à l'état précédent. Dans l'éditeur ça marche bien de faire ça.

20260627-1303-12.1092883.mp4

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je peux fermer l'éditeur quand le multi-select n'a aucune option sélectionnée. Auquel cas ça revient à l'état précédent quand je re-ouvre l'éditeur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wait for Movement Command

2 participants