client: remember me, SVG affinity icons, card detail popup
Remember Me (login screen): - AES-256-CBC encrypted credential storage in user://creds.dat - Key XOR-obfuscated across two halves; random IV stored with ciphertext - Checkbox pre-fills email/password on next launch; unchecking clears saved creds SVG affinity icons (web-compatible): - Replace emoji art symbols (🔥💧⛰💨⚡✦★) with SVG TextureRect in CardWidget - 7 new icons/affinity_*.svg — monochrome white, modulate-tinted at runtime - ArtSymbol node changed from Label to TextureRect (stretch_mode = keep-aspect-centred) Card detail popup (collection screen): - Tap any card in Cards tab to see full stats + abilities overlay - CardDetailPopup added to viewport root (avoids VBoxContainer layout conflict) - Shows: name, affinity icon, foil badge, type/affinity/rarity, all 6 stats, and parsed ability list with names + descriptions - Dismiss by tapping ✕ or the dim background overlay Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -30,8 +30,8 @@ var _loading : bool = false
|
||||
var _search_timer : float = 0.0
|
||||
const _SEARCH_DEBOUNCE := 0.4
|
||||
|
||||
# Signals emitted to parent when a card is tapped (for future deck-editor use)
|
||||
signal card_selected(player_card_id: String, definition_id: String)
|
||||
# Emitted when the user taps a card — parent uses this to show the detail popup.
|
||||
signal card_selected(dto: Dictionary, def: Dictionary)
|
||||
|
||||
# ── Lifecycle ─────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -136,8 +136,8 @@ func _on_cards_response(payload: Variant, page: int) -> void:
|
||||
var def := ContentCache.get_definition(str(dto.get("cardDefinitionId", "")))
|
||||
var widget = CARD_WIDGET.instantiate() as PanelContainer
|
||||
widget.setup(dto, def)
|
||||
widget.card_pressed.connect(func(def_id: String):
|
||||
card_selected.emit(str(dto.get("playerCardId", "")), def_id))
|
||||
widget.card_pressed.connect(func(_def_id: String):
|
||||
card_selected.emit(dto, def))
|
||||
card_grid.add_child(widget)
|
||||
|
||||
if cards.is_empty() and page == 1:
|
||||
|
||||
Reference in New Issue
Block a user