McRogueFace/tests/cookbook/compound/__init__.py
John McCardle 55f6ea9502 Add cookbook examples with updated callback signatures for #229, #230
Cookbook structure:
- lib/: Reusable component library (Button, StatBar, AnimationChain, etc.)
- primitives/: Demo apps for individual components
- features/: Demo apps for complex features (animation chaining, shaders)
- apps/: Complete mini-applications (calculator, dialogue system)
- automation/: Screenshot capture utilities

API signature updates applied:
- on_enter/on_exit/on_move callbacks now only receive (pos) per #230
- on_cell_enter/on_cell_exit callbacks only receive (cell_pos) per #230
- Animation chain library uses Timer-based sequencing (unaffected by #229)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 18:58:25 -05:00

11 lines
346 B
Python

# McRogueFace Cookbook - Compound Widget Demos
"""
Complex UI patterns combining multiple widgets.
Demos:
shop_demo.py - Multi-grid item transfer with equipment slots
inventory_demo.py - Grid-based inventory with drag & drop
These demos build on the primitives and lib/ widgets to show
how to compose sophisticated game interfaces.
"""