Commit Graph

16 Commits

Author SHA1 Message Date
thw 42bf545b35 feat(settings,db,auth,ui): add portable DB relocation, online account login, full-screen SettingsView & error overlay
Architektur-, UI- & Aufräum-Update:
- DbLocator + Database: freie Speicherortwahl beim Erstnutzer, Live-Laden & atomarer Umzug (SQLite Backup API) inkl. Selbst-Speicherung des Pfads in settings.
- OnlineSessionClient & LoginView: Modus-Weiche zwischen lokalem Profil und Online-Einzelaccount (URL inkl. Port oder IP + Port, REST/JSON & TCP/JSON).
- SettingsView: AudioSettingsDialog durch vollflächige, responsive 1-/2-Spalten-Ansicht ersetzt (inkl. verlustfreiem In-Game-Modus) und redundante Sprach-Buttons entfernt.
- ErrorReportOverlay: globaler Crash-Handler für unbehandelte Exceptions mit Copy-to-Clipboard und crash_errors.log.
- i18n & Cleanup: nicht unterstützte Sonderzeichen/Glyphen aus allen SQL-Dateien entfernt und verwaiste Altdateien bereinigt.
2026-11-22 04:26:44 +01:00
thw 22aef15efc feat(blackjack,poker): integrate EndgameFxOverlay, fix split-pot tie handling, and reveal showdown bot cards
Blackjack & Poker Endgame-Integration:
- EndgameFxOverlay vor BlackjackResultDialog (inkl. Instant-777-Sieg) und PokerResultDialog eingebunden.
- Echten Split-Pot ohne Netto-Gewinn/Verlust in Poker sauber als Unentschieden (player_won = None) behandelt, sodass keine fehlerhafte Niederlagen-Animation auslöst.
- Aufgedeckte Bot-Hole-Cards im Poker-Showdown direkt in den Tisch-Boxen während der Vorschalt-Animation eingeblendet und Hand-Referenz-Button im Showdown ausgeblendet.
- play_fx=False bei Sprachwechsel und Resume-Ständen gesetzt, um doppelte Animationen zu verhindern.
2026-11-22 00:28:06 +01:00
thw 547c13ce7f feat(solitaire,ui): add Z-order card hover peek, single-tap move setting, ModalVeil, and EndgameFxOverlay
Solitaire UX & Bedienhilfen:
- CardHoverZoom (games/solitaire/base/card_hover_zoom.py) eingeführt: Hebt offene Karten beim Überfahren dezent an und vergrößert sie leicht unter Beibehaltung der exakten Z-Order im Stapel, sodass aufliegende Folgekarten sichtbar bleiben (inkl. 3er-Ablagefächer in Klondike und blockierter Zwischenkarten in FreeCell/Spider).
- Persistente Einstellung "Einfacher Klick zum Schieben" / "Single tap to move" (games/solitaire/base/solitaire_tap_prefs.py) ergänzt: Kurze Einzelklicks (<= 0.28s) führen automatisch Züge aus, während längeres Halten ignoriert wird und Drag & Drop uneingeschränkt erhalten bleibt.
- AudioSettingsDialog (view/dialogs/audio_settings_dialog.py) um den neuen GothSwitch erweitert, Layout auf 768p-Kompatibilität (DLG_H = 656) optimiert und alle Dialogtexte sauber auf base_i18n (01_allgemein.sql) umgestellt.
- FreeCellTableView, KlondikeTableView und SpiderTableView auf CardHoverZoom, Single-Tap-Steuerung, zentrale GothTopbar-Statistik-Endpunkte und SolitaireBottomBar-Overflow-Buttons aktualisiert.

Überarbeitetes Spielende & Modal-Architektur:
- ModalVeil (view/widgets/modal_veil.py) implementiert: Dunkelt das gesperrte Spielfeld halbtransparent ab, hebt aktive Dialoge garantiert über alle UI-Leisten und blockiert Eingaben sowie Tastenkürzel im Hintergrund.
- EndgameFxOverlay (view/widgets/endgame_fx_overlay.py) implementiert: Spielt vor dem Ergebnis-Dialog auf dem gesperrten Tisch Alpha-Kanal-Animationen ab (Sieg: firework_start.gif unten links + zufällig verteilte bat_explosion.gif / pumpkin_explosion.gif; Niederlage: zufällig verteilte foul_pumpkin.gif) und wechselt erst per Klick zum Result-Screen.
- ResourceManager und AssetManager um den Pfad resources/images/win_lose/, RGBA-GIF-Sequenz-Caching inkl. Original-Frame-Dauern, abgedunkelte Veil-Texturen und Startup-Preloading erweitert.
- Eingebettete GIF-Animationen aus SolitaireModalDialog, BlackjackResultDialog und PokerResultDialog vollständig entfernt und alle drei Ergebnis-Fenster auf ModalVeil umgestellt.
2026-11-22 00:02:21 +01:00
thw 3bccab12fa feat(ui): Top-/Bottom-Bar zentralisieren, Poker & Blackjack überarbeiten & 1-Klasse-pro-Datei durchsetzen
- GothTopbar ausgelagert & entschlackt (ohne Spieltitel/Spielmenü-Button, Sprachwechsel in kombinierten Einstellungs-Dialog verschoben, zentriertes Level/XP-Badge)
- SolitaireBottomBar um dynamische Links-/Rechts-Overflow-Flügel, Pipe-Trenner, zentriertes HUD und sauberes Button-Cleanup erweitert
- Zentrale Vollbild-Statistikansicht (UnifiedStatsView) für alle Spiele inkl. Goldbeutel- und Varianten-Umschalter eingeführt
- Animiertes GothSwitch-Widget implementiert und optionale Button-Hover-Tooltips (Helvetica) an Settings gekoppelt
- Blackjack- & Poker-Tische auf Vollbild-Canvas umgebaut (kompakter Pot, dynamische Boxbreiten, spoilerfreie Poker-Kartenreferenz neben Spieler-Hand)
- Architektur-Cleanup (strikt 1 Klasse pro Datei: PokerHandsOverlay & SolitaireCard separiert) sowie AST-Prüfskripte für i18n und Multi-Class-Checks ergänzt
2026-11-21 02:20:50 +01:00
thw 4c29eda3c3 perf(ui): optimize Crostini/XWayland rendering and refactor Gothic UI layout
- Centralize compact GothTopbar title and 8-char/8-digit user badge within background safe-area

- Split solitaire_menu_chrome into MenuBodyCanvas, SolitaireModalDialog (with GIF support), and SolitaireBottomBar

- Remove general_table.jpg and render solitaire tables seamlessly over shared background cache

- Keep ResizingBG persistent across clear_window() to eliminate black-screen flickering

- Add C-accelerated PIL matte cleaning, lazy button state caching, pre-scaled card cache, and startup preloader
2026-11-19 22:50:58 +01:00
thw 6f614c8595 feat(ui): overhaul menus, stats & dialogs to custom canvas-based Gothic UI
- Add ui_typography.py and update game_constants.py for Old London typography and new image assets
- Upgrade AssetManager with downscaled 9-slice box rendering and PIL Old London text engine
- Convert ResizingBG to full-window Canvas with automatic horizontal/vertical background switching
- Add GothEntry and two-part GothDropdown with proportional arrow cap, mousewheel scrolling, and scroll indicators
- Update ImageButton with 3-slice side caps, frame-aware auto-width, and automatic icon stripping
- Refactor GothTopbar, LoginView, MainMenuView (hover zoom), StatisticsView, StatsBoardWidget, BotSetupWidget, and AudioSettingsDialog
- Migrate Blackjack, Poker, FreeCell, Klondike, and Spider menu/stats views plus BlackjackResultDialog to frameless canvas layouts
- Fix Crostini shelf icon matching via exact X11 WM_CLASS and absolute pixmap path
2026-11-17 22:31:02 +01:00
thw 4caed5bc15 fix(blackjack,crostini): fix card fan TclError, add missing gold i18n keys & auto-setup Crostini shelf icon 2026-11-16 21:07:01 +01:00
thw 4c9b098fcb fix(blackjack): adjust oval table layout and fix text clipping 2026-11-16 00:22:24 +01:00
thw b91ba789d7 docs(readme): add Solitaire module READMEs & update main documentation
- Add dedicated README.md files for solitaire base framework, Klondike, FreeCell, and Spider Solitaire
- Update root README.md (DE/EN) with playable Solo modules, solver details, game icons, and framed table renderer
2026-11-15 23:16:56 +01:00
thw aad8a2f0d6 feat(solitaire): add Spider Solitaire, game tile icons & framed table background
- Add complete Spider Solitaire module (1/2/4 suits, strict 10-column deal rule & constructive deal generator)
- Render custom game icons on main menu cards with automatic badge cropping & rounded corners
- Add responsive general_table.jpg background renderer with frame-aware card insets across all Solitaire tables
- Rebuild internal_base.db with Spider Solitaire translations (DE/EN)
2026-11-15 23:06:29 +01:00
thw 304e288987 feat(solitaire): add FreeCell, card flight animations, save/resume & deadlock handling
- Add complete FreeCell module (8 cascades, Supermove capacity, solver & 4 difficulty tiers)
- Add shared CardFlightAnimator for smooth 60fps card transitions, undo flights & snap-back
- Delay game timer start until first actual card/stock/hint interaction
- Add unlimited Undo to move 0, Undo All (Ctrl+Shift+Z), 3-cycle stock lock & deadlock modal
- Implement persistent auto-save/resume across restarts and clean shutdown on X / Ctrl+C
- Update playing card assets, responsive aspect-ratio scaling and i18n entries (DE/EN)
2026-11-15 21:03:27 +01:00
thw 5929831402 feat(build,blackjack,docs): add cross-platform single-file build scripts, full Blackjack showdown reveal & updated READMEs 2026-11-15 00:28:01 +01:00
thw 4e96cf8b56 feat(poker,ui): add 6-max Texas Hold'em module, Old London font loader, window persistence & custom art assets 2026-11-14 22:47:38 +01:00
thw 80fdb0aa3b readme update 2026-11-14 06:51:41 +01:00
thw 8c9db3631e feat(blackjack): implement 3-step Devil's Gambit auto-showdown, Deity AI & UI overhaul 2026-11-14 06:46:46 +01:00
thw 163a3665d2 first commit 2026-11-14 05:25:51 +01:00