Update KickSpectators clientCount to be passed as int

This commit is contained in:
teinarss
2021-05-08 20:57:19 +02:00
committed by reaperrr
parent 10676be377
commit 0c50057220
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
class KickSpectatorsLogic : ChromeLogic class KickSpectatorsLogic : ChromeLogic
{ {
[ObjectCreator.UseCtor] [ObjectCreator.UseCtor]
public KickSpectatorsLogic(Widget widget, string clientCount, Action okPressed, Action cancelPressed) public KickSpectatorsLogic(Widget widget, int clientCount, Action okPressed, Action cancelPressed)
{ {
widget.Get<LabelWidget>("TEXT").GetText = () => $"Are you sure you want to kick {clientCount} spectators?"; widget.Get<LabelWidget>("TEXT").GetText = () => $"Are you sure you want to kick {clientCount} spectators?";

View File

@@ -510,7 +510,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{ {
Game.LoadWidget(null, "KICK_SPECTATORS_DIALOG", lobby.Get("TOP_PANELS_ROOT"), new WidgetArgs Game.LoadWidget(null, "KICK_SPECTATORS_DIALOG", lobby.Get("TOP_PANELS_ROOT"), new WidgetArgs
{ {
{ "clientCount", $"{spectatorCount}" }, { "clientCount", spectatorCount },
{ "okPressed", okPressed }, { "okPressed", okPressed },
{ "cancelPressed", after } { "cancelPressed", after }
}); });