Skip to content

Commit

Permalink
Add Custom Widget Names. (#1977)
Browse files Browse the repository at this point in the history
Add Custom Widget Names.

Closes #1976.
  • Loading branch information
noahyor authored Jun 23, 2024
1 parent 8403cce commit 56299ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/swarm-tui/Swarm/TUI/Model/Name.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
-- case matching.
module Swarm.TUI.Model.Name where

import Data.Text (Text)

data WorldEditorFocusable
= BrushSelector
| EntitySelector
Expand Down Expand Up @@ -110,4 +112,6 @@ data Name
REPLViewport
| -- | A clickable button in a modal dialog.
Button Button
| -- | A custom widget name, for use in applications built on top of the Swarm library.
CustomName Text
deriving (Eq, Ord, Show, Read)

0 comments on commit 56299ea

Please sign in to comment.