yasuki_gui.ui.info_box.PlayerInfoBox#
- class PlayerInfoBox(master, field, owner, on_deck_activated=None)[source]#
The off-board panel for one seat: avatar, name, editable honor, and a 3×3 grid of the seat’s decks, discard and banish piles, and hand count.
Reads every count and top card from the field’s active render source (the redacted projection in rules mode), so the opponent’s box shows only what the viewer is entitled to — counts, never hidden identities. Honor edits dispatch a
SetHonorintent and so apply only in the manual sandbox; the rules engine owns honor during play.Methods
PlayerInfoBox.__init__(master, field, owner)Construct a frame widget with the parent MASTER.
The count shown in each grid cell, keyed by a stable cell name, read from the field's active source.
Resync the honor header and every pile count with the field's current source.
PlayerInfoBox.set_profile(name, avatar_path)