mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 09:03:57 -07:00
Add centralized Z-value management for Qt's stacking order system. This replaces scattered magic numbers with semantic constants, making the rendering hierarchy explicit and maintainable. The architecture defines three layers: - Zone layer (0-999): Zone backgrounds and containers - Card layer (1-40M): Cards on the table zone using position-based formula - Overlay layer (200M+): UI elements that always render above cards ZValueLayerManager provides validation utilities and the overlayZValue() function for computing overlay Z-values. ZValues namespace provides the semantic constants used throughout the codebase. The 5x gap between card max (40M) and overlay base (200M) provides safety margin for future table zone expansions. |
||
|---|---|---|
| .. | ||
| resources | ||
| sounds | ||
| src | ||
| themes | ||
| translations | ||
| .qdevelop | ||
| CMakeLists.txt | ||
| cockatrice.desktop | ||
| cockatrice.qrc | ||
| cockatrice.rc | ||
| cockatrice_en@source.ts | ||