Fix IDE0004
This commit is contained in:
@@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
if (dropdownColumns.Count == 0)
|
||||
{
|
||||
row = dropdownRowTemplate.Clone() as Widget;
|
||||
row = dropdownRowTemplate.Clone();
|
||||
row.Bounds.Y = optionsContainer.Bounds.Height;
|
||||
optionsContainer.Bounds.Height += row.Bounds.Height;
|
||||
foreach (var child in row.Children)
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
.ToList();
|
||||
|
||||
// 'all game types' extra item
|
||||
categories.Insert(0, (null as string, tabMaps[tab].Length));
|
||||
categories.Insert(0, (null, tabMaps[tab].Length));
|
||||
|
||||
string ShowItem((string Category, int Count) x) => (x.Category ?? allMaps) + $" ({x.Count})";
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
throw new InvalidOperationException($"{group.GetType().Name} does not contain a preference type {pref}");
|
||||
|
||||
var ss = parent.Get<SliderWidget>(id);
|
||||
ss.Value = (float)(int)field.GetValue(group);
|
||||
ss.Value = (int)field.GetValue(group);
|
||||
ss.OnChange += x => field.SetValue(group, (int)x);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user