fix formatting issues in settings
This commit is contained in:
@@ -120,13 +120,14 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
Widget.CloseWindow();
|
Widget.CloseWindow();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
string open = null;
|
string open = null;
|
||||||
|
|
||||||
bool FlipToTab(string id)
|
bool FlipToTab(string id)
|
||||||
{
|
{
|
||||||
if (open != null)
|
if (open != null)
|
||||||
bg.GetWidget(open).Visible = false;
|
bg.GetWidget(open).Visible = false;
|
||||||
|
|
||||||
open = id;
|
open = id;
|
||||||
bg.GetWidget(open).Visible = true;
|
bg.GetWidget(open).Visible = true;
|
||||||
return true;
|
return true;
|
||||||
@@ -144,8 +145,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
Func<string, ScrollItemWidget, ScrollItemWidget> setupItem = (o, itemTemplate) =>
|
Func<string, ScrollItemWidget, ScrollItemWidget> setupItem = (o, itemTemplate) =>
|
||||||
{
|
{
|
||||||
var item = ScrollItemWidget.Setup(itemTemplate,
|
var item = ScrollItemWidget.Setup(itemTemplate,
|
||||||
() => s.Mode == options[o],
|
() => s.Mode == options[o],
|
||||||
() => s.Mode = options[o]);
|
() => s.Mode = options[o]);
|
||||||
item.GetWidget<LabelWidget>("LABEL").GetText = () => o;
|
item.GetWidget<LabelWidget>("LABEL").GetText = () => o;
|
||||||
return item;
|
return item;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user