Allow for more changable terminal screen colors

This commit is contained in:
2024-11-17 10:18:04 +00:00
parent a0431ff9a3
commit e7ea5d7fa9
11 changed files with 232 additions and 207 deletions
+10 -1
View File
@@ -80,7 +80,8 @@ mouseCursorType :: Universe -> Picture
mouseCursorType u = case u ^. uvWorld . input . mouseContext of
NoMouseContext -> drawEmptySet 5
MouseAiming -> rotate a (drawPlus 5)
MouseClick -> drawPlus 5
MouseMenuClick -> drawMenuClick 5
MouseInGame -> drawPlus 5
OverInvSelect {} -> drawSelect 5
OverInvFilt {} -> drawCombFilter 5
OverCombSelect {} -> drawSelect 5
@@ -117,6 +118,14 @@ drawReturn x = fold
drawPlus :: Float -> Picture
drawPlus x = fold [line [V2 (- x) 0, V2 x 0], line [V2 0 (- x), V2 0 x]]
drawMenuClick :: Float -> Picture
drawMenuClick x = line
[ V2 0 0
, V2 x (-x)
, V2 0 (-x)
, V2 0 0
]
drawCombFilterJump :: Float -> Picture
drawCombFilterJump x = rotate (0.25*pi)
$ fold [line [V2 0 0, V2 x 0], line [V2 0 0, V2 0 x]]