fix formatting issues in settings

This commit is contained in:
Chris Forbes
2011-09-24 20:34:21 +12:00
parent 657e8ad250
commit 68801ba7b5

View File

@@ -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;
}; };