Display messages in the order they were sent

Rather than displaying messages most-recent-first in the message box,
display them most-recent-last (which feels more natural)
This commit is contained in:
Griffin Smith 2020-05-10 20:38:56 -04:00
parent ce3730ba3a
commit 296f73a4d6

View file

@ -43,7 +43,7 @@ cursorPosition game
= showCursor Resource.Character (game ^. characterPosition . loc) = showCursor Resource.Character (game ^. characterPosition . loc)
drawMessages :: MessageHistory -> Widget Name drawMessages :: MessageHistory -> Widget Name
drawMessages = txtWrap . (<> " ") . unwords . oextract drawMessages = txtWrap . (<> " ") . unwords . reverse . oextract
drawPromptState :: GamePromptState m -> Widget Name drawPromptState :: GamePromptState m -> Widget Name
drawPromptState NoPrompt = emptyWidget drawPromptState NoPrompt = emptyWidget