License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Sum types representing the Brick names for every referenceable widget.
Nesting of name types is utilized often to simplify case matching.
Synopsis
- data WorldEditorFocusable
- data FocusablePanel
- data ScenarioConfigPanel
- data ScenarioConfigPanelFocusable
- data GoalWidget
- data Button
- data Name
- = FocusablePanel FocusablePanel
- | WorldEditorPanelControl WorldEditorFocusable
- | REPLInput
- | REPLHistoryCache
- | WorldCache
- | WorldExtent
- | WorldPositionIndicator
- | EntityPaintList
- | EntityPaintListItem Int
- | TerrainList
- | TerrainListItem Int
- | InventoryList
- | InventoryListItem Int
- | MenuList
- | AchievementList
- | ScenarioConfigControl ScenarioConfigPanel
- | GoalWidgets GoalWidget
- | ScenarioList
- | InfoViewport
- | ModalViewport
- | REPLViewport
- | Button Button
Documentation
data WorldEditorFocusable Source #
Instances
data FocusablePanel Source #
REPLPanel | The panel containing the REPL. |
WorldPanel | The panel containing the world view. |
WorldEditorPanel | The panel containing the world editor controls. |
RobotPanel | The panel showing robot info and inventory on the top left. |
InfoPanel | The info panel on the bottom left. |
Instances
data ScenarioConfigPanel Source #
Instances
Read ScenarioConfigPanel Source # | |
Defined in Swarm.TUI.Model.Name | |
Show ScenarioConfigPanel Source # | |
Defined in Swarm.TUI.Model.Name showsPrec :: Int -> ScenarioConfigPanel -> ShowS # show :: ScenarioConfigPanel -> String # showList :: [ScenarioConfigPanel] -> ShowS # | |
Eq ScenarioConfigPanel Source # | |
Defined in Swarm.TUI.Model.Name (==) :: ScenarioConfigPanel -> ScenarioConfigPanel -> Bool # (/=) :: ScenarioConfigPanel -> ScenarioConfigPanel -> Bool # | |
Ord ScenarioConfigPanel Source # | |
Defined in Swarm.TUI.Model.Name compare :: ScenarioConfigPanel -> ScenarioConfigPanel -> Ordering # (<) :: ScenarioConfigPanel -> ScenarioConfigPanel -> Bool # (<=) :: ScenarioConfigPanel -> ScenarioConfigPanel -> Bool # (>) :: ScenarioConfigPanel -> ScenarioConfigPanel -> Bool # (>=) :: ScenarioConfigPanel -> ScenarioConfigPanel -> Bool # max :: ScenarioConfigPanel -> ScenarioConfigPanel -> ScenarioConfigPanel # min :: ScenarioConfigPanel -> ScenarioConfigPanel -> ScenarioConfigPanel # |
data ScenarioConfigPanelFocusable Source #
ScriptSelector | The file selector for launching a scenario with a script |
SeedSelector | |
StartGameButton |
Instances
data GoalWidget Source #
Instances
Clickable buttons in modal dialogs.
Name
represents names to uniquely identify various components
of the UI, such as forms, panels, caches, extents, lists, and buttons.
FocusablePanel FocusablePanel | |
WorldEditorPanelControl WorldEditorFocusable | An individual control within the world editor panel. |
REPLInput | The REPL input form. |
REPLHistoryCache | The REPL history cache. |
WorldCache | The render cache for the world view. |
WorldExtent | The cached extent for the world view. |
WorldPositionIndicator | The cursor/viewCenter display in the bottom left of the World view |
EntityPaintList | The list of possible entities to paint a map with. |
EntityPaintListItem Int | The entity paint item position in the EntityPaintList. |
TerrainList | The list of possible terrain materials. |
TerrainListItem Int | The terrain item position in the TerrainList. |
InventoryList | The list of inventory items for the currently focused robot. |
InventoryListItem Int | The inventory item position in the InventoryList. |
MenuList | The list of main menu choices. |
AchievementList | The list of achievements. |
ScenarioConfigControl ScenarioConfigPanel | An individual control within the scenario launch config panel |
GoalWidgets GoalWidget | The list of goals/objectives. |
ScenarioList | The list of scenario choices. |
InfoViewport | The scrollable viewport for the info panel. |
ModalViewport | The scrollable viewport for any modal dialog. |
REPLViewport | The scrollable viewport for the REPL. |
Button Button | A clickable button in a modal dialog. |