Commit before making terminals there own entities

This commit is contained in:
2022-06-06 11:17:11 +01:00
parent 384a16851b
commit 8e9f33d038
6 changed files with 56 additions and 37 deletions
+17 -2
View File
@@ -220,6 +220,7 @@ defaultMachine = Machine
, _mcLSs = []
, _mcType = StaticMachine
, _mcName = ""
, _mcTermMID = Nothing
}
defaultMachineUpdate :: Machine -> World -> World
defaultMachineUpdate mc
@@ -241,7 +242,21 @@ defaultDrawButton col bt =
| otherwise = rectNSEW 2 (-1) width (-width)
width = 8
defaultTerminal :: Terminal
defaultTerminal = Terminal 0 (\_ _ -> NoTerminalParams) 0 0 "TESTTERMINAL"
defaultTerminal = Terminal
{ _tmID = 0
, _tmProgram = (\_ _ -> NoTerminalParams)
, _tmButtonID = 0
, _tmMachineID = 0
, _tmName = "TESTTERMINAL"
, _tmDisplayedLines = []
, _tmFutureLines = []
, _tmTitle = "TERMINAL IN LOCATION"
, _tmSel = Nothing
, _tmInput = Nothing
, _tmScrollCommands = []
, _tmWriteCommands = []
, _tmDeathEffect = const id
}
defaultButton :: Button
defaultButton = Button
@@ -253,7 +268,7 @@ defaultButton = Button
, _btID = 0
, _btText = "Button"
, _btState = BtOff
, _btTerminal = Nothing
, _btTermMID = Nothing
, _btName = ""
}
defaultPT :: Prop