improve welcome page

This commit is contained in:
Jon Eugster
2023-09-01 11:52:11 +02:00
parent db5cfbc433
commit 73b80e714d
6 changed files with 41 additions and 10 deletions
+8
View File
@@ -47,6 +47,14 @@ elab "Introduction" t:str : command => do
| .World => modifyCurWorld fun world => pure {world with introduction := t.getString}
| .Game => modifyCurGame fun game => pure {game with introduction := t.getString}
/-- Define the info of the current game. Used for e.g. credits -/
elab "Info" t:str : command => do
match ← getCurLayer with
| .Level => pure ()
| .World => pure ()
| .Game => modifyCurGame fun game => pure {game with info := t.getString}
/-- Define the conclusion of the current game or current level if some
building a level. -/
elab "Conclusion" t:str : command => do
+2
View File
@@ -285,6 +285,8 @@ structure Game where
title : String := default
/-- Text displayed on the main landing page of the game. -/
introduction : String := default
/-- Text displayed on the main landing page of the game. -/
info : String := default
/-- TODO: currently unused. -/
conclusion : String := default
/-- TODO: currently unused. -/