Add quit button to connection lost panel

This commit is contained in:
Gustas
2023-03-16 23:02:43 +02:00
committed by Matthias Mailänder
parent 482f2fc335
commit c4bd9fb7aa
6 changed files with 35 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
public class DisconnectWatcherLogic : ChromeLogic
{
[ObjectCreator.UseCtor]
public DisconnectWatcherLogic(Widget widget, OrderManager orderManager)
public DisconnectWatcherLogic(Widget widget, World world, OrderManager orderManager)
{
var disconnected = false;
widget.Get<LogicTickerWidget>("DISCONNECT_WATCHER").OnTick = () =>
@@ -34,6 +34,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{ "password", CurrentServerSettings.Password },
{ "connection", connection },
{ "onAbort", null },
{ "onQuit", () => IngameMenuLogic.OnQuit(world) },
{ "onRetry", null }
}));