BUTR/Bannerlord.BLSE

View on GitHub
src/Bannerlord.LauncherEx/Resources/Prefabs/Launcher.Options.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<Prefab>
  <Window>
    <Widget HeightSizePolicy="StretchToParent" WidthSizePolicy="StretchToParent" VerticalAlignment="Top" HorizontalAlignment="Left">
      <Children>

        <ScrollablePanel Id="ScrollablePanel" HeightSizePolicy="StretchToParent" WidthSizePolicy="StretchToParent" InnerPanel="MyClipRect\InnerPanel" ClipRect="MyClipRect" MarginLeft="30" VerticalScrollbar="..\Scrollbar" AutoHideScrollBars="true">
          <Children>
            <Widget Id="MyClipRect" WidthSizePolicy="StretchToParent" HeightSizePolicy="StretchToParent" HorizontalAlignment="Center" ClipContents="true">
              <Children>
                <TextWidget Text="@NeedsGameLaunchMessage" WidthSizePolicy="StretchToParent" HeightSizePolicy="CoverChildren" Brush="Launcher.Mods.ModNameText" Brush.TextHorizontalAlignment="Left" IsVisible="@NeedsGameLaunch" />
                <ListPanel Id="InnerPanel" DataSource="{SettingProperties}" HeightSizePolicy="CoverChildren" WidthSizePolicy="StretchToParent" LayoutImp.LayoutMethod="VerticalBottomToTop" VerticalAlignment="Top">
                  <ItemTemplate>
                    <Launcher.Options.OptionTuple />
                  </ItemTemplate>
                </ListPanel>
              </Children>
            </Widget>
          </Children>
        </ScrollablePanel>

        <Launcher.Scrollbar Id="Scrollbar" MarginTop="46" MarginBottom="23" MarginRight="@ScrollbarOffset" />

      </Children>
    </Widget>
  </Window>
</Prefab>