2026-11-21 01:20:50 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
# view/unified_stats_view.py
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
import tkinter as tk
|
|
|
|
|
from PIL import Image, ImageTk
|
|
|
|
|
|
|
|
|
|
from models.database import Database
|
|
|
|
|
from resources.code_res.game_constants import (
|
|
|
|
|
BG_COLOR,
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
STAT_CATEGORIES,
|
|
|
|
|
STAT_CAT_LUCK,
|
|
|
|
|
STAT_FOLDER_CATEGORY_MAP,
|
2026-11-21 01:20:50 +00:00
|
|
|
STAT_GAME_GROUPS,
|
|
|
|
|
)
|
|
|
|
|
from resources.code_res.i18n import t
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
from view.stats_detail_renderer import StatsDetailRenderer
|
|
|
|
|
from view.stats_hub_renderer import StatsHubRenderer
|
2026-11-21 01:20:50 +00:00
|
|
|
from view.widgets.goth_dropdown import GothDropdown
|
|
|
|
|
from view.widgets.image_button import ImageButton
|
|
|
|
|
|
|
|
|
|
SHORT_VARIANT_TAB_KEYS: dict[str, str] = {
|
|
|
|
|
"klondike_1": "kl_draw_toggle_1",
|
|
|
|
|
"klondike_3": "kl_draw_toggle_3",
|
|
|
|
|
"spider_1suit": "sp_suit_toggle_1",
|
|
|
|
|
"spider_2suit": "sp_suit_toggle_2",
|
|
|
|
|
"spider_4suit": "sp_suit_toggle_4",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ENDPOINT_ALIASES: dict[str, str | None] = {
|
|
|
|
|
"": None,
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
"hub": None,
|
2026-11-21 01:20:50 +00:00
|
|
|
"blackjack": "blackjack",
|
|
|
|
|
"poker": "poker",
|
|
|
|
|
"klondike": "solitaire/klondike",
|
|
|
|
|
"solitaire/klondike": "solitaire/klondike",
|
|
|
|
|
"freecell": "solitaire/freecell",
|
|
|
|
|
"solitaire/freecell": "solitaire/freecell",
|
|
|
|
|
"spider": "solitaire/spider_solitaire",
|
|
|
|
|
"spider_solitaire": "solitaire/spider_solitaire",
|
|
|
|
|
"solitaire/spider_solitaire": "solitaire/spider_solitaire",
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
"pyramid": "solitaire/pyramid",
|
|
|
|
|
"solitaire/pyramid": "solitaire/pyramid",
|
2026-11-24 19:50:08 +00:00
|
|
|
"zehner_raus": "party/zehner_raus",
|
|
|
|
|
"party/zehner_raus": "party/zehner_raus",
|
|
|
|
|
"tripeaks": "solitaire/tripeaks",
|
|
|
|
|
"solitaire/tripeaks": "solitaire/tripeaks",
|
2026-11-25 21:55:44 +00:00
|
|
|
"watten": "party/watten",
|
|
|
|
|
"party/watten": "party/watten",
|
2026-11-21 01:20:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def resolve_stats_endpoint(endpoint: str | None) -> str | None:
|
|
|
|
|
if endpoint is None:
|
|
|
|
|
return None
|
|
|
|
|
clean = str(endpoint).strip().lower()
|
|
|
|
|
if clean in ENDPOINT_ALIASES:
|
|
|
|
|
return ENDPOINT_ALIASES[clean]
|
|
|
|
|
|
|
|
|
|
valid_folders = [folder for folder, _tkey in STAT_GAME_GROUPS]
|
|
|
|
|
if clean in valid_folders:
|
|
|
|
|
return clean
|
|
|
|
|
for f in valid_folders:
|
|
|
|
|
if f.endswith(f"/{clean}") or clean in f:
|
|
|
|
|
return f
|
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UnifiedStatsView(tk.Canvas):
|
|
|
|
|
"""
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
Zentrale Statistik-Ansicht:
|
|
|
|
|
- Ohne `game_endpoint` (z. B. aus dem Hauptmenü): Kategorisierter Spielauswahl-Hub
|
|
|
|
|
(Glück, Solitaire, Bayerische Spiele, Gesellschaft - keine Gesamt-Statistik!).
|
|
|
|
|
- Mit `game_endpoint` (Klick auf Spiel-Kachel oder Direktaufruf aus GothTopbar):
|
|
|
|
|
Einzelspiel-Statistik inkl. Goldbeuteln (Blackjack/Poker) bzw. Varianten-Tabs.
|
2026-11-21 01:20:50 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
@classmethod
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
def open(cls, context, game_endpoint: str | None = None, on_back=None) -> "UnifiedStatsView":
|
2026-11-21 01:20:50 +00:00
|
|
|
GothDropdown.close_any_open_popup()
|
|
|
|
|
root = context.root
|
|
|
|
|
existing = getattr(root, "_unified_stats_overlay", None)
|
|
|
|
|
if existing is not None and existing.winfo_exists():
|
|
|
|
|
existing.destroy()
|
|
|
|
|
|
|
|
|
|
view = cls(context, game_endpoint=game_endpoint, on_back=on_back)
|
|
|
|
|
setattr(root, "_unified_stats_overlay", view)
|
|
|
|
|
return view
|
|
|
|
|
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
def __init__(self, context, game_endpoint: str | None = None, on_back=None):
|
|
|
|
|
super().__init__(context.root, bg=BG_COLOR, bd=0, highlightthickness=0)
|
2026-11-21 01:20:50 +00:00
|
|
|
self.ctx = context
|
|
|
|
|
self.on_back = on_back
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
self._opened_from_hub: bool = (resolve_stats_endpoint(game_endpoint) is None)
|
2026-11-21 01:20:50 +00:00
|
|
|
|
|
|
|
|
self._active_folder: str | None = resolve_stats_endpoint(game_endpoint)
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
saved_cat = Database.load_setting("last_stats_category", STAT_CAT_LUCK)
|
|
|
|
|
valid_cats = {c[0] for c in STAT_CATEGORIES}
|
|
|
|
|
self._selected_cat: str = (
|
|
|
|
|
STAT_FOLDER_CATEGORY_MAP.get(self._active_folder, saved_cat)
|
|
|
|
|
if self._active_folder
|
|
|
|
|
else (saved_cat if saved_cat in valid_cats else STAT_CAT_LUCK)
|
|
|
|
|
)
|
2026-11-21 01:20:50 +00:00
|
|
|
self._active_variant_id: int | None = None
|
|
|
|
|
self._active_account_id: int | None = None
|
|
|
|
|
|
|
|
|
|
self._bg_photo: ImageTk.PhotoImage | None = None
|
|
|
|
|
self._photo_refs: list = []
|
|
|
|
|
self._child_buttons: list[ImageButton] = []
|
|
|
|
|
self._esc_bind_id: str | None = None
|
|
|
|
|
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
self._back_btn: ImageButton | None = None
|
|
|
|
|
self._hub_or_settings_btn: ImageButton | None = None
|
|
|
|
|
self._cat_btns: list[tuple[ImageButton, int]] = []
|
|
|
|
|
self._var_btns: list[tuple[ImageButton, int]] = []
|
|
|
|
|
self._acc_btns: list[tuple[ImageButton, int]] = []
|
|
|
|
|
|
|
|
|
|
self._game_title: str = ""
|
|
|
|
|
self._rank_line: str = ""
|
|
|
|
|
self._xp_ratio: float = 0.0
|
|
|
|
|
self._board_heading: str = ""
|
|
|
|
|
self._stats_data: dict = {}
|
|
|
|
|
|
2026-11-21 01:20:50 +00:00
|
|
|
self.place(relx=0.0, rely=0.0, relwidth=1.0, relheight=1.0)
|
|
|
|
|
tk.Widget.tkraise(self)
|
|
|
|
|
|
|
|
|
|
self.bind("<Configure>", self._on_configure)
|
|
|
|
|
self.bind("<Destroy>", self._on_destroy)
|
|
|
|
|
try:
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
self._esc_bind_id = self.ctx.root.bind("<Escape>", self._handle_back_action, add="+")
|
2026-11-21 01:20:50 +00:00
|
|
|
except tk.TclError:
|
|
|
|
|
self._esc_bind_id = None
|
|
|
|
|
|
|
|
|
|
self._rebuild_view()
|
|
|
|
|
|
|
|
|
|
def _on_destroy(self, event=None):
|
|
|
|
|
if event is not None and event.widget is not self:
|
|
|
|
|
return
|
|
|
|
|
if self._esc_bind_id is not None:
|
|
|
|
|
try:
|
|
|
|
|
self.ctx.root.unbind("<Escape>", self._esc_bind_id)
|
|
|
|
|
except Exception:
|
|
|
|
|
pass
|
|
|
|
|
self._esc_bind_id = None
|
|
|
|
|
if getattr(self.ctx.root, "_unified_stats_overlay", None) is self:
|
|
|
|
|
setattr(self.ctx.root, "_unified_stats_overlay", None)
|
|
|
|
|
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
def _close_and_return(self):
|
2026-11-21 01:20:50 +00:00
|
|
|
back_cb = self.on_back
|
|
|
|
|
if self.winfo_exists():
|
|
|
|
|
self.destroy()
|
|
|
|
|
if callable(back_cb):
|
|
|
|
|
back_cb()
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
|
|
|
|
|
def _handle_back_action(self, _event=None):
|
|
|
|
|
if self._active_folder is not None and self._opened_from_hub:
|
|
|
|
|
self._active_folder = None
|
|
|
|
|
self._active_variant_id = None
|
|
|
|
|
self._active_account_id = None
|
|
|
|
|
self._rebuild_view()
|
|
|
|
|
return "break"
|
|
|
|
|
self._close_and_return()
|
2026-11-21 01:20:50 +00:00
|
|
|
return "break"
|
|
|
|
|
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
def _select_hub_category(self, cat_id: str):
|
|
|
|
|
self._selected_cat = cat_id
|
|
|
|
|
Database.save_setting("last_stats_category", cat_id)
|
|
|
|
|
self._rebuild_view()
|
|
|
|
|
|
|
|
|
|
def _open_game_from_hub(self, folder: str):
|
|
|
|
|
self._selected_cat = STAT_FOLDER_CATEGORY_MAP.get(folder, self._selected_cat)
|
2026-11-21 01:20:50 +00:00
|
|
|
self._active_folder = folder
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
self._active_variant_id = None
|
|
|
|
|
self._active_account_id = None
|
|
|
|
|
self._rebuild_view()
|
|
|
|
|
|
|
|
|
|
def _switch_detail_filter(self, variant_id: int | None, account_id: int | None):
|
2026-11-21 01:20:50 +00:00
|
|
|
self._active_variant_id = variant_id
|
|
|
|
|
self._active_account_id = account_id
|
|
|
|
|
self._rebuild_view()
|
|
|
|
|
|
|
|
|
|
def _clear_buttons(self):
|
|
|
|
|
for b in self._child_buttons:
|
|
|
|
|
try:
|
|
|
|
|
if b.winfo_exists():
|
|
|
|
|
b.destroy()
|
|
|
|
|
except Exception:
|
|
|
|
|
pass
|
|
|
|
|
self._child_buttons.clear()
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
self._cat_btns.clear()
|
|
|
|
|
self._var_btns.clear()
|
|
|
|
|
self._acc_btns.clear()
|
2026-11-21 01:20:50 +00:00
|
|
|
|
|
|
|
|
def _render_full_bg(self, w: int, h: int):
|
|
|
|
|
if hasattr(self.ctx.assets, "get_bg_patch_photo"):
|
|
|
|
|
self._bg_photo = self.ctx.assets.get_bg_patch_photo(w, h, 0, 0, w, h)
|
|
|
|
|
else:
|
|
|
|
|
src = (
|
|
|
|
|
self.ctx.assets.raw_bg_vertical
|
|
|
|
|
if (h > w and self.ctx.assets.raw_bg_vertical is not None)
|
|
|
|
|
else (self.ctx.assets.raw_bg_horizontal or self.ctx.assets.raw_bg)
|
|
|
|
|
)
|
|
|
|
|
if src is not None:
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
self._bg_photo = ImageTk.PhotoImage(src.resize((w, h), Image.Resampling.BILINEAR))
|
2026-11-21 01:20:50 +00:00
|
|
|
if self._bg_photo is not None:
|
|
|
|
|
self.delete("stats_bg")
|
|
|
|
|
self.create_image(0, 0, image=self._bg_photo, anchor="nw", tags="stats_bg")
|
|
|
|
|
self.tag_lower("stats_bg")
|
|
|
|
|
|
|
|
|
|
def _on_configure(self, event):
|
|
|
|
|
if event.widget is not self or event.width < 200 or event.height < 200:
|
|
|
|
|
return
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
self._draw_active_mode(event.width, event.height)
|
2026-11-21 01:20:50 +00:00
|
|
|
|
|
|
|
|
def _rebuild_view(self):
|
|
|
|
|
if not self.winfo_exists():
|
|
|
|
|
return
|
|
|
|
|
self._clear_buttons()
|
|
|
|
|
|
|
|
|
|
btn_norm = self.ctx.assets.raw_btn_default
|
|
|
|
|
btn_purp = self.ctx.assets.raw_btn_purple
|
|
|
|
|
btn_fire = self.ctx.assets.raw_btn_fire or btn_purp
|
|
|
|
|
|
|
|
|
|
if self._active_folder is None:
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
# --- HUB-MODUS (Spiel-Auswahl nach Kategorien) ---
|
|
|
|
|
self._back_btn = ImageButton(
|
|
|
|
|
self, t("btn_back_main"), btn_norm, btn_purp,
|
|
|
|
|
self._close_and_return, sound_mgr=self.ctx.sounds, width=142, height=36, style="amethyst",
|
|
|
|
|
)
|
|
|
|
|
self._hub_or_settings_btn = ImageButton(
|
|
|
|
|
self, t("btn_settings"), btn_norm, btn_purp,
|
|
|
|
|
lambda: self.ctx.open_settings(on_lang_refresh=self._rebuild_view),
|
|
|
|
|
sound_mgr=self.ctx.sounds, width=126, height=36, style="amethyst",
|
|
|
|
|
)
|
|
|
|
|
self._child_buttons.extend([self._back_btn, self._hub_or_settings_btn])
|
|
|
|
|
|
|
|
|
|
for cid, title_key, _dkey in STAT_CATEGORIES:
|
|
|
|
|
is_sel = (cid == self._selected_cat)
|
|
|
|
|
b_cat = ImageButton(
|
|
|
|
|
self, t(title_key),
|
|
|
|
|
btn_fire if is_sel else btn_norm,
|
|
|
|
|
btn_fire if is_sel else btn_purp,
|
|
|
|
|
lambda c=cid: self._select_hub_category(c),
|
|
|
|
|
sound_mgr=self.ctx.sounds, width=164, height=38,
|
|
|
|
|
style="fire" if is_sel else "amethyst",
|
|
|
|
|
)
|
|
|
|
|
self._child_buttons.append(b_cat)
|
|
|
|
|
self._cat_btns.append((b_cat, b_cat.pixel_width))
|
2026-11-21 01:20:50 +00:00
|
|
|
else:
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
# --- DETAIL-MODUS (Einzelspiel-Auswertung) ---
|
|
|
|
|
self._build_detail_controls_and_data(btn_norm, btn_purp, btn_fire)
|
2026-11-21 01:20:50 +00:00
|
|
|
|
|
|
|
|
self.ctx.root.update_idletasks()
|
|
|
|
|
w = max(900, self.winfo_width(), self.ctx.root.winfo_width())
|
|
|
|
|
h = max(620, self.winfo_height(), self.ctx.root.winfo_height())
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
self._draw_active_mode(w, h)
|
2026-11-21 01:20:50 +00:00
|
|
|
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
def _build_detail_controls_and_data(self, btn_norm, btn_purp, btn_fire):
|
|
|
|
|
pid = self.ctx.profile["id"]
|
|
|
|
|
back_lbl = t("btn_back_stats_hub") if self._opened_from_hub else t("btn_back")
|
|
|
|
|
self._back_btn = ImageButton(
|
|
|
|
|
self, back_lbl, btn_fire, btn_fire,
|
|
|
|
|
self._handle_back_action, sound_mgr=self.ctx.sounds, width=142, height=34, style="fire",
|
|
|
|
|
)
|
|
|
|
|
self._child_buttons.append(self._back_btn)
|
|
|
|
|
|
|
|
|
|
self._hub_or_settings_btn = None
|
|
|
|
|
if not self._opened_from_hub:
|
|
|
|
|
self._hub_or_settings_btn = ImageButton(
|
|
|
|
|
self, t("btn_back_stats_hub"), btn_norm, btn_purp,
|
|
|
|
|
lambda: (setattr(self, "_opened_from_hub", True), self._handle_back_action()),
|
|
|
|
|
sound_mgr=self.ctx.sounds, width=148, height=34, style="amethyst",
|
|
|
|
|
)
|
|
|
|
|
self._child_buttons.append(self._hub_or_settings_btn)
|
|
|
|
|
|
|
|
|
|
accounts = (
|
|
|
|
|
Database.get_blackjack_accounts(pid) if self._active_folder == "blackjack"
|
|
|
|
|
else (Database.get_poker_accounts(pid) if self._active_folder == "poker" else [])
|
|
|
|
|
)
|
|
|
|
|
active_acc = next((a for a in accounts if a["id"] == self._active_account_id), None)
|
|
|
|
|
if self._active_account_id is not None and active_acc is None:
|
|
|
|
|
self._active_account_id = None
|
|
|
|
|
|
|
|
|
|
if accounts:
|
|
|
|
|
b_prof = ImageButton(
|
|
|
|
|
self, t("stats_profile_total_tab"),
|
|
|
|
|
btn_fire if active_acc is None else btn_norm,
|
|
|
|
|
btn_fire if active_acc is None else btn_purp,
|
|
|
|
|
lambda: self._switch_detail_filter(self._active_variant_id, None),
|
|
|
|
|
sound_mgr=self.ctx.sounds, width=142, height=32,
|
|
|
|
|
style="fire" if active_acc is None else "amethyst",
|
|
|
|
|
)
|
|
|
|
|
self._child_buttons.append(b_prof)
|
|
|
|
|
self._acc_btns.append((b_prof, b_prof.pixel_width))
|
|
|
|
|
for acc in accounts:
|
|
|
|
|
is_a = (active_acc is not None and acc["id"] == active_acc["id"])
|
|
|
|
|
a_lbl = f"{acc['account_name']} ({acc['gold']}g)"
|
|
|
|
|
bw_a = max(134, min(192, len(a_lbl) * 8 + 28))
|
|
|
|
|
b_acc = ImageButton(
|
|
|
|
|
self, a_lbl,
|
|
|
|
|
btn_fire if is_a else btn_norm, btn_fire if is_a else btn_purp,
|
|
|
|
|
lambda aid=acc["id"]: self._switch_detail_filter(self._active_variant_id, aid),
|
|
|
|
|
sound_mgr=self.ctx.sounds, width=bw_a, height=32,
|
|
|
|
|
style="fire" if is_a else "amethyst",
|
|
|
|
|
)
|
|
|
|
|
self._child_buttons.append(b_acc)
|
|
|
|
|
self._acc_btns.append((b_acc, b_acc.pixel_width))
|
|
|
|
|
|
|
|
|
|
variants = Database.get_variants_for_filter(self._active_folder)
|
|
|
|
|
if len(variants) > 1:
|
|
|
|
|
v_tabs: list[tuple[int | None, str]] = [(None, t("sol_stats_tab_all"))]
|
|
|
|
|
for v in variants:
|
|
|
|
|
vk = v["variant_key"]
|
|
|
|
|
v_tabs.append((v["id"], t(SHORT_VARIANT_TAB_KEYS[vk]) if vk in SHORT_VARIANT_TAB_KEYS else v["translated_name"]))
|
|
|
|
|
for vid, v_txt in v_tabs:
|
|
|
|
|
is_v = (self._active_variant_id == vid)
|
|
|
|
|
bw_v = 108 if vid is None else max(134, min(186, len(v_txt) * 8 + 26))
|
|
|
|
|
b_v = ImageButton(
|
|
|
|
|
self, v_txt,
|
|
|
|
|
btn_fire if is_v else btn_norm, btn_fire if is_v else btn_purp,
|
|
|
|
|
lambda tv=vid: self._switch_detail_filter(tv, self._active_account_id),
|
|
|
|
|
sound_mgr=self.ctx.sounds, width=bw_v, height=32,
|
|
|
|
|
style="fire" if is_v else "amethyst",
|
|
|
|
|
)
|
|
|
|
|
self._child_buttons.append(b_v)
|
|
|
|
|
self._var_btns.append((b_v, b_v.pixel_width))
|
|
|
|
|
|
|
|
|
|
group_map = dict(STAT_GAME_GROUPS)
|
|
|
|
|
self._game_title = t(group_map.get(self._active_folder, self._active_folder))
|
|
|
|
|
prog = Database.get_game_progress(pid, self._active_folder)
|
|
|
|
|
self._xp_ratio = float(prog["current_xp"]) / max(1.0, float(prog["needed_xp"]))
|
|
|
|
|
self._rank_line = t(
|
|
|
|
|
"stats_game_rank_info",
|
|
|
|
|
self._game_title, prog["title"], prog["level"], prog["current_xp"], prog["needed_xp"],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var_lbl = next(
|
|
|
|
|
(v["translated_name"] for v in variants if v["id"] == self._active_variant_id),
|
|
|
|
|
t("stats_all_variants_of_game", self._game_title),
|
|
|
|
|
)
|
|
|
|
|
if active_acc is not None and self._active_folder == "blackjack":
|
|
|
|
|
self._board_heading = f"{t('bj_stats_acc_title', active_acc['account_name'])} | {var_lbl}"
|
|
|
|
|
self._stats_data = Database.get_bj_account_stats_overview(active_acc["id"], self._active_variant_id)
|
|
|
|
|
elif active_acc is not None and self._active_folder == "poker":
|
|
|
|
|
self._board_heading = f"{t('bj_stats_acc_title', active_acc['account_name'])} | {var_lbl}"
|
|
|
|
|
self._stats_data = Database.get_pk_account_stats_overview(active_acc["id"], self._active_variant_id)
|
|
|
|
|
else:
|
|
|
|
|
self._board_heading = t("stats_game_board_title", var_lbl)
|
|
|
|
|
self._stats_data = Database.get_stats_overview(
|
|
|
|
|
pid, variant_id=self._active_variant_id,
|
|
|
|
|
folder_path=self._active_folder if self._active_variant_id is None else None,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
def _draw_active_mode(self, w: int, h: int):
|
2026-11-21 01:20:50 +00:00
|
|
|
self._render_full_bg(w, h)
|
|
|
|
|
self.delete("fg")
|
|
|
|
|
self._photo_refs.clear()
|
|
|
|
|
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
if self._active_folder is None:
|
|
|
|
|
StatsHubRenderer.draw_hub(
|
|
|
|
|
self, self.ctx.assets, self.ctx.sounds, self.ctx.profile,
|
|
|
|
|
self._selected_cat, self._cat_btns, self._back_btn, self._hub_or_settings_btn,
|
|
|
|
|
self._open_game_from_hub, self._photo_refs, w, h,
|
2026-11-21 01:20:50 +00:00
|
|
|
)
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
else:
|
2026-11-24 19:50:08 +00:00
|
|
|
show_time_fields = (self._active_folder or "").startswith("solitaire/")
|
refactor(arch,ui,stats): modularize codebase (<500 LOC/file), unify stats hub & refine win FX
Großes Architektur-, Deduplizierungs- & UI-Release:
- Strikte Modularisierung (<500 Zeilen pro Datei, 1 Klasse pro Modul, pyscn Health Score 97/100).
- Gemeinsame Basis-Klassen extrahiert: SolitaireMenuBase, SolitaireTableController, SolitaireSessionGuard, SolitaireCanvasInput, SolitaireOutcomeFlow, LuckPouchMenuBase, CasinoArenaBase & CasinoResultDialogBase.
- UnifiedStatsView: kategorisierter Statistik-Hub (Glück, Solitaire, Bayerische Spiele, Gesellschaft) ohne Äpfel-mit-Birnen-Gesamtansicht.
- PokerResultDialog auf das Gothic-Canvas-Rahmendesign gehoben.
- EndgameFxOverlay: Feuerwerksraketen entfernt, direkter Spawn von Fledermaus- und Kürbis-Explosionen.
2026-11-22 22:07:57 +00:00
|
|
|
StatsDetailRenderer.draw_detail(
|
|
|
|
|
self, self.ctx.assets, self._game_title, self._rank_line, self._xp_ratio,
|
|
|
|
|
self._board_heading, self._stats_data, self._back_btn, self._hub_or_settings_btn,
|
|
|
|
|
self._var_btns, self._acc_btns, self._photo_refs, w, h,
|
2026-11-24 19:50:08 +00:00
|
|
|
show_time=show_time_fields,
|
2026-11-21 01:20:50 +00:00
|
|
|
)
|