winzik/skeleton-gui/AGENTS.md
David Nurdin 8ceaad03c7 Apps in apps/ beside games/, config/project.yaml beside config/game.yaml (both read)
Apps, CLI apps, graphic apps and IDE plugins are made in apps/<id>; bin/jumphp, the tools, the
workflows, the IDE and the docs find a project in games/ or apps/. New projects get
config/project.yaml (under project:); the engine, bin/jumphp, the tools and the IDE still read
config/game.yaml (under game:). JUMPHP_APP is read before JUMPHP_GAME.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01X3cUrphmz1MoDiCrUbAHuo
2026-11-03 23:30:23 +01:00

12 lines
685 B
Markdown

# {{GAME_ID}}
A graphic PHP app (no HTML): `JumPHP\Gui` forms, made from `skeleton-gui/` (`bin/jumphp gui:new`). Guide: `docs/gui.md`
of JumPHP (AGENTS.md §17).
- `forms/MainForm.form.yaml`: the main window's widgets (the IDE's visual editor writes it; YAML by hand too).
- `src/Form/MainForm.php`: the code behind it; `events: {click: onAddClick}` in the form file = the method called.
Keep one `@property <Widget> $<id>` docblock line per widget id.
- `config/project.yaml`: `kind: gui`, `view: window`, `touch: false`.
- Tests: `tests/MainFormTest.php` (GameTestCase: click, type, check). `bin/jumphp test {{GAME_ID}}`.
To do: replace the sample contacts window with the app.