Skip to content

Improve Character Sheet Display #48

Description

@FirebrickRed

Priority: MEDIUM
Status: TODO
Depends on: #31 (Character Persistence - need data to display)

Description

Expand the character sheet UI to show all relevant character information. Currently only displays HP, AC, and Initiative - needs to show resources, abilities, spells, equipment, and more.

Current State

ViewCharacterSheetMenu shows:

  • ✅ HP (current/max)
  • ✅ AC
  • ✅ Initiative
  • ✅ Class resources (we just added this!)

Missing:

  • ❌ Ability scores (STR, DEX, CON, WIS, INT, CHA with modifiers)
  • ❌ Proficiency bonus
  • ❌ Skills and proficiencies
  • ❌ Known spells/cantrips
  • ❌ Spell slots (current/max per level)
  • ❌ Equipment/inventory
  • Save & Close functionality

Proposed Layout

Row 1 (Stats):

  • HP | AC | Initiative | Proficiency Bonus

Row 2 (Class Resources):

  • Rage (2/2) | Ki Points (3/3) | etc.
  • Use item stack count to show current uses ✅ (already implemented)

Row 3-4 (Spell Slots):

  • 1st: ○○● (2/3) | 2nd: ○● (1/2) | 3rd: ●●● (3/3) | etc.
  • Show filled/empty indicators

Row 5-6 (Ability Scores):

  • STR 16 (+3) | DEX 14 (+2) | CON 15 (+2)
  • WIS 10 (+0) | INT 8 (-1) | CHA 12 (+1)

Row 7+ (Equipment, Spells, Skills):

  • Paginated or scrollable sections
  • Click to expand details

Bottom Right Corner (Save & Close):

  • Barrier or Bed icon
  • Click to close menu and save character state
  • Useful for switching between multiple characters

Acceptance Criteria

Display Additions

  • Show all 6 ability scores with modifiers
  • Show proficiency bonus
  • Show spell slots with current/max (per level)
  • Show known spells and cantrips (paginated if many)
  • Show equipment/inventory (paginated if many)
  • Show skills and proficiencies
  • Visual indicators for resource states (full/partial/depleted)

Save & Close Functionality

  • Add save & close button/icon (bottom right corner)
  • Click icon to close menu
  • Auto-save character on close
  • Alternative: /closesheet or /savecharacter command
  • TODO: Decide if icon, command, or both during implementation

Layout & UX

  • Clean, organized layout (not cluttered)
  • Consistent with existing menu style
  • Use LoreBuilder for all item lore
  • Color coding (green=full, yellow=partial, red=depleted)
  • Navigation if content doesn't fit (pagination/sections)

Visual Design Ideas

Resource Display (already implemented):

Item: Red Dye (stack of 2)
Name: "Rage (2/2)"
Lore: "Recovery: Long Rest"
      "Full" (green)

Spell Slot Display:

Item: Lapis Lazuli (stack of 2)
Name: "1st Level Slots (2/3)"
Lore: "3 slots available"
      "2 remaining" (yellow)

Ability Score Display:

Item: Iron Ingot
Name: "STR 16 (+3)"
Lore: "Strength modifier: +3"
      "Saving throw: +5" (proficiency)

Save & Close Button:

Item: Barrier or Red Bed
Name: "Save & Close"
Lore: "Click to save character"
      "and close this menu"

Save & Close - Command vs Icon

TODO during implementation: Decide which approach (or both):

Option A: Icon Only

  • Click barrier/bed icon in bottom right
  • Simple, visual, consistent with Minecraft UX

Option B: Command Only

  • /closesheet or /savecharacter
  • Good for players who prefer commands
  • Can close without clicking menu

Option C: Both (Recommended)

  • Icon for visual users
  • Command for keyboard users
  • Best of both worlds

Get user feedback during implementation!

Technical Notes

Related Issues

Future Enhancements

  • Click resources to consume them (like spell focus pattern)
  • Click spells to cast them (if in spell focus slot)
  • Character sheet "pages" (stats page, spells page, equipment page)
  • Export character sheet as image/PDF
  • Customizable layout per player preference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions