Refactor text input

This commit is contained in:
2022-10-30 11:57:53 +00:00
parent 9779b6fa39
commit 6123795c7a
7 changed files with 49 additions and 74 deletions
+1 -5
View File
@@ -28,11 +28,8 @@ data Input = Input
, _lSelect :: Point2
, _rSelect :: Point2
, _clickMousePos :: Point2
, _backspaceTimer :: Int
, _textInput :: TextInput
, _textInput :: T.Text
}
data TextInput = RejectTextInput
| AcceptTextInput {_textInputText :: T.Text}
data WorldHammer
= SubInvHam
@@ -40,4 +37,3 @@ data WorldHammer
deriving (Eq, Ord, Show, Read, Enum, Bounded)
makeLenses ''Input
makeLenses ''TextInput