allow lower case

- allow strPrompt to accept lower case letters
- implemented ucStrPrompt which forces characters to upper case
This commit is contained in:
Jonathan Lamothe
2019-11-30 11:52:06 -05:00
parent cc495fa589
commit f7cfd5d835
2 changed files with 30 additions and 19 deletions

View File

@@ -599,13 +599,13 @@ instance ToJSON GameStats where
-- | Defines a user prompt
data Prompt = Prompt
{ promptDrawer :: ProgState -> C.Update ()
{ promptDrawer :: ProgState -> C.Update ()
-- ^ Draws the prompt to the screen
, promptCharCheck :: Char -> Bool
-- ^ Determines whether or not the character is valid
, promptAction :: String -> Action ()
, promptProcessChar :: Char -> String -> String
-- ^ Modifies the string based on the character entered
, promptAction :: String -> Action ()
-- ^ Action to perform when the value is entered
, promptSpecialKey :: C.Key -> Action ()
, promptSpecialKey :: C.Key -> Action ()
-- ^ Action to perform when a special key is pressed
}