about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/Menu
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-26 11:17:52 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-26 11:17:52 -0400
commit3df389e9beb6b73d0f1a68475a112fb9c3e65b72 (patch)
tree9f4bd6e3ebd6cf2cfb40fc8fb16ae170787c4141 /AnodyneArchipelago/Menu
parent7ecc9027eb4fa8dea5a50bc9847a9cb5257b91ca (diff)
downloadanodyne-archipelago-3df389e9beb6b73d0f1a68475a112fb9c3e65b72.tar.gz
anodyne-archipelago-3df389e9beb6b73d0f1a68475a112fb9c3e65b72.tar.bz2
anodyne-archipelago-3df389e9beb6b73d0f1a68475a112fb9c3e65b72.zip
Honor endgame_card_requirement value
Diffstat (limited to 'AnodyneArchipelago/Menu')
-rw-r--r--AnodyneArchipelago/Menu/ConnectionState.cs10
-rw-r--r--AnodyneArchipelago/Menu/MenuState.cs6
2 files changed, 15 insertions, 1 deletions
diff --git a/AnodyneArchipelago/Menu/ConnectionState.cs b/AnodyneArchipelago/Menu/ConnectionState.cs index 877213f..3eac618 100644 --- a/AnodyneArchipelago/Menu/ConnectionState.cs +++ b/AnodyneArchipelago/Menu/ConnectionState.cs
@@ -50,6 +50,16 @@ namespace AnodyneArchipelago.Menu
50 { 50 {
51 if (_connectionTask != null && _connectionTask.IsCompleted) 51 if (_connectionTask != null && _connectionTask.IsCompleted)
52 { 52 {
53 if (_connectionTask.IsFaulted)
54 {
55 _text = _connectionTask.Exception.ToString();
56 _connectionTask = null;
57
58 UpdateDisplay();
59
60 return;
61 }
62
53 LoginResult result = _connectionTask.Result; 63 LoginResult result = _connectionTask.Result;
54 64
55 if (result.Successful) 65 if (result.Successful)
diff --git a/AnodyneArchipelago/Menu/MenuState.cs b/AnodyneArchipelago/Menu/MenuState.cs index c7be02a..7e8020e 100644 --- a/AnodyneArchipelago/Menu/MenuState.cs +++ b/AnodyneArchipelago/Menu/MenuState.cs
@@ -135,7 +135,11 @@ namespace AnodyneArchipelago.Menu
135 { 135 {
136 if (!_hide) 136 if (!_hide)
137 { 137 {
138 _selector.Draw(); 138 if (_substate == null)
139 {
140 _selector.Draw();
141 }
142
139 _versionLabel1.Draw(); 143 _versionLabel1.Draw();
140 _versionLabel2.Draw(); 144 _versionLabel2.Draw();
141 _serverLabel.Draw(); 145 _serverLabel.Draw();