Fix IDE0090

This commit is contained in:
RoosterDragon
2023-11-14 19:49:11 +00:00
committed by Gustas
parent cfde0d7867
commit b97d1a4c6c
35 changed files with 125 additions and 125 deletions

View File

@@ -167,7 +167,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var statsDropDownOptions = new StatsDropDownOption[]
{
new StatsDropDownOption
new()
{
Title = TranslationProvider.GetString(InformationNone),
IsSelected = () => activePanel == ObserverStatsPanel.None,

View File

@@ -280,7 +280,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
var botOptions = new List<DropDownOption>()
{
new DropDownOption()
new()
{
Title = TranslationProvider.GetString(Add),
IsSelected = () => false,

View File

@@ -63,8 +63,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
TranslationProvider.GetString(Slot), new List<SlotDropDownOption>
{
new SlotDropDownOption(open, "slot_open " + slot.PlayerReference, () => !slot.Closed && client == null),
new SlotDropDownOption(closed, "slot_close " + slot.PlayerReference, () => slot.Closed)
new(open, "slot_open " + slot.PlayerReference, () => !slot.Closed && client == null),
new(closed, "slot_close " + slot.PlayerReference, () => slot.Closed)
}
}
};
@@ -113,7 +113,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var options = new List<DropDownOption>
{
new DropDownOption
new()
{
Title = "Kick",
OnClick = onClick