GAME KIT: DON|DOFF equip system — portal tooltips, kit bag sync, btn-disabled fix
- DON/DOFF buttons on left edge of game kit applet portal tooltip (mirroring FLIP/FYI) - equip-trinket/unequip-trinket/equip-deck/unequip-deck views + URLs - Portal stays open after DON/DOFF; buttons swap state in-place (_setEquipState) - _syncTokenButtons: updates all .tt DON/DOFF buttons after equip state change - _syncKitBagDialog (DOFF): replaces card with grayed placeholder icon in-place - _refreshKitDialog (DON): re-fetches kit content so newly-equipped card appears immediately - kit-content-refreshed event: game-kit.js re-attaches card listeners after re-fetch - Bounding box expanded 24px left so buttons at portal edge don't trigger close - mini-portal pinned with right (not left) so text width changes grow/shrink leftward - btn-disabled moved dead last in .btn block — wins by source order, no !important needed - Kit bag panel: trinket + token sections always render (placeholder when empty) - Backstage Pass in GameKitEquipTest setUp (is_staff, natural unequipped state) - Portal padding 0.75rem / 1.5rem; tt-description/shoptalk smaller; tt-expiry --priRd - Wallet tokens CSS hover rule for .tt removed (portal-only now) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if equipped_trinket %}
|
||||
<div class="kit-bag-section">
|
||||
<span class="kit-bag-label">Trinket</span>
|
||||
<div class="kit-bag-row">
|
||||
{% if equipped_trinket %}
|
||||
{% with token=equipped_trinket %}
|
||||
<div
|
||||
class="token"
|
||||
@@ -56,11 +56,14 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endwith %}
|
||||
{% else %}
|
||||
<div class="kit-bag-placeholder">
|
||||
<i class="fa-solid fa-medal"></i>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if free_token or tithe_token %}
|
||||
<div class="kit-bag-section kit-bag-section--tokens">
|
||||
<span class="kit-bag-label">Tokens</span>
|
||||
<div class="kit-bag-row kit-bag-row--scroll">
|
||||
@@ -97,6 +100,10 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if not free_token and not tithe_token %}
|
||||
<div class="kit-bag-placeholder">
|
||||
<i class="fa-solid fa-coins"></i>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user