diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-25 14:09:54 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-25 14:09:54 -0400 |
| commit | 955399d1d873a68fafd703c878533d330a720e5b (patch) | |
| tree | 0fa5227af10c59b1fbd7456a4df60e8b68b11c4d /AnodyneArchipelago/Menu/BoxedConfigState.cs | |
| parent | 7cb1dd18f8b2367992cf13a8fa48c9eefd5d9ec0 (diff) | |
| download | anodyne-archipelago-955399d1d873a68fafd703c878533d330a720e5b.tar.gz anodyne-archipelago-955399d1d873a68fafd703c878533d330a720e5b.tar.bz2 anodyne-archipelago-955399d1d873a68fafd703c878533d330a720e5b.zip | |
Enabled settings screen from main menu
Diffstat (limited to 'AnodyneArchipelago/Menu/BoxedConfigState.cs')
| -rw-r--r-- | AnodyneArchipelago/Menu/BoxedConfigState.cs | 31 |
1 files changed, 31 insertions, 0 deletions
| diff --git a/AnodyneArchipelago/Menu/BoxedConfigState.cs b/AnodyneArchipelago/Menu/BoxedConfigState.cs new file mode 100644 index 0000000..229b82c --- /dev/null +++ b/AnodyneArchipelago/Menu/BoxedConfigState.cs | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | using AnodyneSharp.States; | ||
| 2 | using AnodyneSharp.States.MenuSubstates; | ||
| 3 | |||
| 4 | namespace AnodyneArchipelago.Menu | ||
| 5 | { | ||
| 6 | internal class BoxedConfigState : State | ||
| 7 | { | ||
| 8 | private ConfigSubstate _substate = new(true); | ||
| 9 | |||
| 10 | public BoxedConfigState() | ||
| 11 | { | ||
| 12 | _substate.GetControl(); | ||
| 13 | } | ||
| 14 | |||
| 15 | public override void Update() | ||
| 16 | { | ||
| 17 | if (_substate.Exit) | ||
| 18 | { | ||
| 19 | Exit = true; | ||
| 20 | } | ||
| 21 | |||
| 22 | _substate.Update(); | ||
| 23 | _substate.HandleInput(); | ||
| 24 | } | ||
| 25 | |||
| 26 | public override void DrawUI() | ||
| 27 | { | ||
| 28 | _substate.DrawUI(); | ||
| 29 | } | ||
| 30 | } | ||
| 31 | } | ||
