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 21:31:02 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
# view/widgets/goth_dropdown.py
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
import tkinter as tk
|
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 PIL import Image, ImageChops, ImageDraw, ImageEnhance, ImageTk
|
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 21:31:02 +00:00
|
|
|
|
|
|
|
|
from resources.code_res.game_constants import (
|
|
|
|
|
BG_COLOR,
|
|
|
|
|
DROPDOWN_ITEM_TEXT_HOVER,
|
|
|
|
|
DROPDOWN_TEXT_CLOSED,
|
|
|
|
|
FONT_COLOR_DISABLED,
|
|
|
|
|
FONT_LETTER_SPACING_PX,
|
|
|
|
|
FONT_OUTLINE_COLOR,
|
|
|
|
|
FONT_OUTLINE_THICKNESS_PX,
|
|
|
|
|
FONT_SHADOW_COLOR,
|
|
|
|
|
FONT_SHADOW_ENABLED,
|
|
|
|
|
FONT_SHADOW_OFFSET_SMALL,
|
|
|
|
|
FONT_SIZE_DROPDOWN,
|
|
|
|
|
FONT_SIZE_SMALL_MIN,
|
|
|
|
|
FONT_VERTICAL_OFFSET_PX,
|
|
|
|
|
)
|
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.widgets.goth_dropdown_popup import GothDropdownPopup
|
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 21:31:02 +00:00
|
|
|
from view.widgets.image_button import _clean_outer_black_matte, _get_old_london
|
|
|
|
|
|
|
|
|
|
_TRIM_CACHE: dict[tuple[int, int, int], Image.Image] = {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _trim_outer_black_bbox(pil_img: Image.Image, threshold: int = 38) -> Image.Image:
|
2026-11-19 21:47:35 +00:00
|
|
|
"""C-beschleunigtes Trimmen schwarzer Außenränder via Pillow Lookup-Table (< 1 ms)."""
|
|
|
|
|
key = (id(pil_img), pil_img.width, pil_img.height, threshold)
|
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 21:31:02 +00:00
|
|
|
if key in _TRIM_CACHE:
|
|
|
|
|
return _TRIM_CACHE[key]
|
|
|
|
|
|
|
|
|
|
clean = _clean_outer_black_matte(pil_img)
|
2026-11-19 21:47:35 +00:00
|
|
|
r, g, b, _a = clean.split()
|
|
|
|
|
max_rgb = ImageChops.lighter(ImageChops.lighter(r, g), b)
|
|
|
|
|
mask = max_rgb.point(lambda p: 255 if p > threshold else 0)
|
|
|
|
|
bbox = mask.getbbox()
|
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 21:31:02 +00:00
|
|
|
|
2026-11-19 21:47:35 +00:00
|
|
|
cropped = clean.crop(bbox) if bbox else clean
|
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 21:31:02 +00:00
|
|
|
_TRIM_CACHE[key] = cropped
|
|
|
|
|
return cropped
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class GothDropdown(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
|
|
|
"""Zweiteiliges Gothic-Dropdown mit proportionaler Button-Kappe und eigenem Popup-Renderer."""
|
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 21:31:02 +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
|
|
|
_active_popup_owner: "GothDropdown | None" = None
|
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 21:31:02 +00:00
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
parent,
|
|
|
|
|
assets,
|
|
|
|
|
values: list[str] | tuple[str, ...] = (),
|
|
|
|
|
textvariable: tk.StringVar | None = None,
|
|
|
|
|
on_change=None,
|
|
|
|
|
sound_mgr=None,
|
|
|
|
|
width: int = 250,
|
|
|
|
|
height: int = 40,
|
|
|
|
|
font_size: int = FONT_SIZE_DROPDOWN,
|
|
|
|
|
max_visible_items: int = 7,
|
|
|
|
|
enabled: bool = True,
|
|
|
|
|
):
|
|
|
|
|
try:
|
|
|
|
|
parent_bg = parent.cget("bg")
|
|
|
|
|
except Exception:
|
|
|
|
|
parent_bg = BG_COLOR
|
|
|
|
|
|
|
|
|
|
super().__init__(
|
|
|
|
|
parent,
|
|
|
|
|
width=width,
|
|
|
|
|
height=height,
|
|
|
|
|
bg=parent_bg,
|
|
|
|
|
bd=0,
|
|
|
|
|
highlightthickness=0,
|
|
|
|
|
cursor="hand2" if enabled else "arrow",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
self.assets = assets
|
|
|
|
|
self.sounds = sound_mgr
|
|
|
|
|
self._on_change = on_change
|
|
|
|
|
self._width = max(110, int(width))
|
|
|
|
|
self._height = max(28, int(height))
|
|
|
|
|
self._font_px = max(FONT_SIZE_SMALL_MIN, min(int(font_size), int(self._height * 0.52)))
|
|
|
|
|
self._max_visible = max(3, int(max_visible_items))
|
|
|
|
|
self._values: list[str] = list(values)
|
|
|
|
|
self._var = textvariable if textvariable is not None else tk.StringVar()
|
|
|
|
|
self._enabled = bool(enabled)
|
|
|
|
|
self._hovered = False
|
|
|
|
|
|
|
|
|
|
self._closed_photo: ImageTk.PhotoImage | 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._popup_ctrl = GothDropdownPopup(self)
|
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 21:31:02 +00:00
|
|
|
|
|
|
|
|
if not self._var.get() and self._values:
|
|
|
|
|
self._var.set(self._values[0])
|
|
|
|
|
|
|
|
|
|
self._var.trace_add("write", lambda *_: self._render_closed())
|
|
|
|
|
|
|
|
|
|
self.bind("<Enter>", self._on_enter)
|
|
|
|
|
self.bind("<Leave>", self._on_leave)
|
|
|
|
|
self.bind("<Button-1>", self._toggle_popup)
|
|
|
|
|
self.bind("<Destroy>", lambda _e: self.close_popup())
|
|
|
|
|
|
|
|
|
|
self._render_closed()
|
|
|
|
|
|
|
|
|
|
def get(self) -> str:
|
|
|
|
|
return self._var.get()
|
|
|
|
|
|
|
|
|
|
def set(self, value: str):
|
|
|
|
|
self._var.set(value)
|
|
|
|
|
self._render_closed()
|
|
|
|
|
|
|
|
|
|
def current(self, newindex: int | None = None) -> int:
|
|
|
|
|
if newindex is not None and 0 <= newindex < len(self._values):
|
|
|
|
|
self.set(self._values[newindex])
|
|
|
|
|
cur = self._var.get()
|
|
|
|
|
return self._values.index(cur) if cur in self._values else -1
|
|
|
|
|
|
|
|
|
|
def set_values(self, values: list[str] | tuple[str, ...], keep_current: bool = True):
|
|
|
|
|
self._values = list(values)
|
|
|
|
|
if not keep_current or self._var.get() not in self._values:
|
|
|
|
|
self._var.set(self._values[0] if self._values else "")
|
|
|
|
|
self._render_closed()
|
|
|
|
|
|
|
|
|
|
def set_enabled(self, enabled: bool):
|
|
|
|
|
self._enabled = bool(enabled)
|
|
|
|
|
if not self._enabled:
|
|
|
|
|
self.close_popup()
|
|
|
|
|
self.configure(cursor="hand2" if self._enabled else "arrow")
|
|
|
|
|
self._render_closed()
|
|
|
|
|
|
|
|
|
|
def _compose_bar_pil(self, is_highlighted: bool) -> tuple[Image.Image | None, int]:
|
|
|
|
|
if is_highlighted:
|
|
|
|
|
raw_body = getattr(self.assets, "raw_dropdown_open", None) or getattr(self.assets, "raw_dropdown_closed", None)
|
|
|
|
|
raw_btn = getattr(self.assets, "raw_dropdown_open_btn", None) or getattr(self.assets, "raw_dropdown_closed_btn", None)
|
|
|
|
|
else:
|
|
|
|
|
raw_body = getattr(self.assets, "raw_dropdown_closed", None)
|
|
|
|
|
raw_btn = getattr(self.assets, "raw_dropdown_closed_btn", None)
|
|
|
|
|
|
|
|
|
|
if raw_body is None:
|
|
|
|
|
raw_body = getattr(self.assets, "raw_btn_default", None)
|
|
|
|
|
if raw_body is None:
|
|
|
|
|
return None, 36
|
|
|
|
|
|
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
|
|
|
w, h = self._width, self._height
|
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 21:31:02 +00:00
|
|
|
body_trim = _trim_outer_black_bbox(raw_body)
|
|
|
|
|
|
|
|
|
|
if raw_btn 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
|
|
|
return body_trim.resize((w, h), Image.Resampling.LANCZOS), max(34, h)
|
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 21:31:02 +00:00
|
|
|
|
|
|
|
|
btn_trim = _trim_outer_black_bbox(raw_btn)
|
|
|
|
|
btn_aspect = btn_trim.width / max(1, btn_trim.height)
|
|
|
|
|
btn_w = max(24, min(w // 2, int(round(h * btn_aspect))))
|
|
|
|
|
body_w = max(24, w - btn_w)
|
|
|
|
|
|
|
|
|
|
btn_scaled = btn_trim.resize((btn_w, h), Image.Resampling.LANCZOS)
|
|
|
|
|
left_cap_src_w = max(12, int(body_trim.height * 0.30))
|
|
|
|
|
left_cap_dst_w = min(body_w // 2, max(8, int(round(h * 0.30))))
|
|
|
|
|
stretch_dst_w = max(1, body_w - left_cap_dst_w)
|
|
|
|
|
|
|
|
|
|
left_cap = body_trim.crop((0, 0, left_cap_src_w, body_trim.height)).resize(
|
|
|
|
|
(left_cap_dst_w, h), Image.Resampling.LANCZOS
|
|
|
|
|
)
|
|
|
|
|
mid_stretch = body_trim.crop((left_cap_src_w, 0, body_trim.width, body_trim.height)).resize(
|
|
|
|
|
(stretch_dst_w, h), Image.Resampling.BILINEAR
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
combined = Image.new("RGBA", (w, h), (0, 0, 0, 0))
|
|
|
|
|
combined.paste(left_cap, (0, 0))
|
|
|
|
|
combined.paste(mid_stretch, (left_cap_dst_w, 0))
|
|
|
|
|
combined.paste(btn_scaled, (body_w, 0))
|
|
|
|
|
return combined, btn_w
|
|
|
|
|
|
|
|
|
|
def _draw_tracked_text_clipped(
|
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, img: Image.Image, text: str, x_left: int, x_right: int, color: str, font_px: int
|
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 21:31:02 +00:00
|
|
|
):
|
|
|
|
|
if not text:
|
|
|
|
|
return
|
|
|
|
|
draw = ImageDraw.Draw(img)
|
|
|
|
|
clean_txt = self.assets.sanitize_goth_case(str(text))
|
|
|
|
|
fnt = _get_old_london(font_px)
|
|
|
|
|
avail_w = max(20, x_right - x_left)
|
|
|
|
|
|
|
|
|
|
def _measure(s: str) -> float:
|
|
|
|
|
tot = 0.0
|
|
|
|
|
for i, ch in enumerate(s):
|
|
|
|
|
tot += draw.textlength(ch, font=fnt)
|
|
|
|
|
if i < len(s) - 1:
|
|
|
|
|
tot += FONT_LETTER_SPACING_PX
|
|
|
|
|
return tot
|
|
|
|
|
|
|
|
|
|
disp = clean_txt
|
|
|
|
|
if _measure(disp) > avail_w:
|
|
|
|
|
while len(disp) > 1 and _measure(disp + "...") > avail_w:
|
|
|
|
|
disp = disp[:-1]
|
|
|
|
|
disp = disp.rstrip() + "..."
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
asc, desc = fnt.getmetrics() # type: ignore[attr-defined]
|
|
|
|
|
th = asc + desc
|
|
|
|
|
except Exception:
|
|
|
|
|
th = font_px
|
|
|
|
|
|
|
|
|
|
cy = (img.height - th) / 2.0 + FONT_VERTICAL_OFFSET_PX
|
|
|
|
|
cx = float(x_left)
|
|
|
|
|
sx, sy = FONT_SHADOW_OFFSET_SMALL
|
|
|
|
|
|
|
|
|
|
for ch in disp:
|
|
|
|
|
if FONT_SHADOW_ENABLED and self._enabled:
|
|
|
|
|
draw.text((cx + sx, cy + sy), ch, font=fnt, fill=FONT_SHADOW_COLOR)
|
|
|
|
|
if FONT_OUTLINE_THICKNESS_PX > 0 and self._enabled:
|
|
|
|
|
draw.text(
|
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
|
|
|
(cx, cy), ch, font=fnt, fill=color,
|
|
|
|
|
stroke_width=FONT_OUTLINE_THICKNESS_PX, stroke_fill=FONT_OUTLINE_COLOR,
|
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 21:31:02 +00:00
|
|
|
)
|
|
|
|
|
else:
|
|
|
|
|
draw.text((cx, cy), ch, font=fnt, fill=color)
|
|
|
|
|
cx += draw.textlength(ch, font=fnt) + FONT_LETTER_SPACING_PX
|
|
|
|
|
|
|
|
|
|
def _render_closed(self):
|
|
|
|
|
if not self.winfo_exists():
|
|
|
|
|
return
|
|
|
|
|
self.delete("all")
|
|
|
|
|
|
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
|
|
|
use_highlight_art = self._enabled and (self._popup_ctrl.is_open() or self._hovered)
|
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 21:31:02 +00:00
|
|
|
bar_pil, btn_w = self._compose_bar_pil(is_highlighted=use_highlight_art)
|
|
|
|
|
if bar_pil is None:
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
if not self._enabled:
|
|
|
|
|
alpha = bar_pil.getchannel("A")
|
|
|
|
|
rgb = ImageEnhance.Color(bar_pil.convert("RGB")).enhance(0.10)
|
|
|
|
|
rgb = ImageEnhance.Brightness(rgb).enhance(0.58)
|
|
|
|
|
bar_pil = rgb.convert("RGBA")
|
|
|
|
|
bar_pil.putalpha(alpha)
|
|
|
|
|
|
|
|
|
|
txt_col = (
|
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
|
|
|
FONT_COLOR_DISABLED if not self._enabled
|
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 21:31:02 +00:00
|
|
|
else (DROPDOWN_ITEM_TEXT_HOVER if use_highlight_art else DROPDOWN_TEXT_CLOSED)
|
|
|
|
|
)
|
|
|
|
|
pad_left = max(14, int(self._height * 0.36))
|
|
|
|
|
self._draw_tracked_text_clipped(
|
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
|
|
|
bar_pil, self._var.get(), x_left=pad_left, x_right=self._width - btn_w - 8,
|
|
|
|
|
color=txt_col, font_px=self._font_px,
|
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 21:31:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
self._closed_photo = ImageTk.PhotoImage(bar_pil)
|
|
|
|
|
self.create_image(0, 0, image=self._closed_photo, anchor="nw")
|
|
|
|
|
|
|
|
|
|
def _on_enter(self, _e):
|
|
|
|
|
if self._enabled:
|
|
|
|
|
self._hovered = True
|
|
|
|
|
self._render_closed()
|
|
|
|
|
|
|
|
|
|
def _on_leave(self, _e):
|
|
|
|
|
self._hovered = False
|
|
|
|
|
self._render_closed()
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
|
def close_any_open_popup(cls):
|
|
|
|
|
if cls._active_popup_owner is not None:
|
|
|
|
|
cls._active_popup_owner.close_popup()
|
|
|
|
|
|
|
|
|
|
def close_popup(self):
|
|
|
|
|
if GothDropdown._active_popup_owner is self:
|
|
|
|
|
GothDropdown._active_popup_owner = 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._popup_ctrl.close()
|
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 21:31:02 +00:00
|
|
|
if self.winfo_exists():
|
|
|
|
|
self._render_closed()
|
|
|
|
|
|
|
|
|
|
def _toggle_popup(self, _event=None):
|
|
|
|
|
if not self._enabled or not self._values:
|
|
|
|
|
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
|
|
|
if self._popup_ctrl.is_open():
|
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 21:31:02 +00:00
|
|
|
self.close_popup()
|
|
|
|
|
return
|
|
|
|
|
GothDropdown.close_any_open_popup()
|
|
|
|
|
if self.sounds:
|
|
|
|
|
self.sounds.play("click")
|
|
|
|
|
GothDropdown._active_popup_owner = self
|
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._popup_ctrl.open()
|
|
|
|
|
self._render_closed()
|