aboutsummaryrefslogtreecommitdiff
blob: c48b0fc749ae3ada3e2033267c4ef78486cc1f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module Update.SelectTab exposing (apply_to)
-- Elm -------------------------------------------------------------------------

-- Battlemap -------------------------------------------------------------------
import Struct.Model
import Struct.Event
import Struct.UI

--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
apply_to : (
      Struct.Model.Type ->
      Struct.UI.Tab ->
      (Struct.Model.Type, (Cmd Struct.Event.Type))
   )
apply_to model tab =
   (
      {model | ui = (Struct.UI.set_displayed_tab model.ui tab)},
      Cmd.none
   )