Start simplifying buttons
This commit is contained in:
@@ -27,8 +27,8 @@ flipSwitch oneff offeff bt
|
||||
doWdWd offeff . dosound
|
||||
. over (cWorld . lWorld . buttons . ix (_btID bt)) turnoff
|
||||
where
|
||||
turnon = (btState .~ BtOn) . (btText .~ "SWITCH\\")
|
||||
turnoff = (btState .~ BtOff) . (btText .~ "SWITCH/")
|
||||
turnon = (btState .~ BtOn)
|
||||
turnoff = (btState .~ BtOff)
|
||||
dosound = soundWithStatus ToStart (LeverSound 0) (_btPos bt) click1S Nothing
|
||||
|
||||
-- switchEffect b = case _btState b of
|
||||
|
||||
Reference in New Issue
Block a user