add basic infos to inventory

pull/251/merge
Jon Eugster 8 months ago
parent 2896237772
commit 67090f53fa

@ -229,6 +229,16 @@ export function Documentation() {
<h1 className="doc">{docTile.displayName}</h1>
<p><code>{docEntry.data?.statement}</code></p>
<Markdown>{t(docEntry.data?.content, {ns: gameId})}</Markdown>
{/* TODO: The condition below should be updated so that the section
is displayed whenever it's non-empty. */}
{docTile.proven && <>
<h2>Further details</h2>
<ul>
{docTile.proven && <li>Proven in: <a href={`#/${gameId}/world/${docTile.world}/level/${docTile.level}`}>{docTile.world} level {docTile.level}</a></li>}
</ul>
</>
}
</div>
}

@ -109,7 +109,7 @@ structure InventoryTile where
hidden := false
/-- hover text -/
altTitle : String := default
deriving ToJson, FromJson, Repr, Inhabited
deriving ToJson, FromJson, Repr, Inhabited, BEq
def InventoryItem.toTile (item : InventoryItem) : InventoryTile := {
name := item.name,

Loading…
Cancel
Save