2023-10-13 07:01:43 -04:00
|
|
|
<Defaults>
|
|
|
|
<Button class="downloadTab"
|
2023-10-16 18:29:07 -04:00
|
|
|
hoverClass="bGrey"
|
|
|
|
pressClass="bWhite"
|
2023-10-15 18:29:06 -04:00
|
|
|
onClick="onClick_tab"
|
2023-10-13 07:01:43 -04:00
|
|
|
color="#888888"
|
|
|
|
fontSize="24"
|
|
|
|
font="font_teutonic-arkham"/>
|
2023-10-16 18:29:07 -04:00
|
|
|
<Button class="bGrey"
|
2023-10-13 07:01:43 -04:00
|
|
|
color="grey"/>
|
2023-10-16 18:29:07 -04:00
|
|
|
<Button class="bWhite"
|
2023-10-15 18:29:06 -04:00
|
|
|
color="white"/>
|
2023-10-14 17:37:50 -04:00
|
|
|
<Button class="activeTab"
|
|
|
|
color="#ffffff"/>
|
2023-10-19 11:47:59 -04:00
|
|
|
<Button class="windowButton"
|
|
|
|
hoverClass="bGrey"
|
|
|
|
pressClass="bWhite"
|
|
|
|
selectClass="bWhite"
|
|
|
|
color="#888888"
|
|
|
|
font="font_teutonic-arkham"/>
|
2023-10-13 07:01:43 -04:00
|
|
|
</Defaults>
|
|
|
|
|
|
|
|
<!-- window to select downloadable content -->
|
|
|
|
<VerticalLayout id="downloadWindow"
|
|
|
|
color="black"
|
|
|
|
active="false"
|
2023-10-15 18:29:06 -04:00
|
|
|
height="800"
|
2023-10-16 18:29:07 -04:00
|
|
|
width="900"
|
|
|
|
outlineSize="2 2"
|
2023-10-13 07:01:43 -04:00
|
|
|
outline="#303030">
|
|
|
|
|
2023-10-16 18:29:07 -04:00
|
|
|
<!-- window header -->
|
2023-10-13 07:01:43 -04:00
|
|
|
<Panel preferredHeight="60"
|
2023-10-16 18:29:07 -04:00
|
|
|
padding="10 10 5 5"
|
2023-10-19 11:47:59 -04:00
|
|
|
spacing="10"
|
2023-10-16 18:29:07 -04:00
|
|
|
outlineSize="2 2"
|
|
|
|
outline="#303030"
|
|
|
|
color="black">
|
|
|
|
<Text fontSize="32"
|
|
|
|
font="font_teutonic-arkham"
|
2023-10-19 11:47:59 -04:00
|
|
|
preferredWidth="600"
|
2023-10-16 18:29:07 -04:00
|
|
|
alignment="MiddleLeft">Downloadable Content</Text>
|
2023-10-19 11:47:59 -04:00
|
|
|
<Button id="downloadAll_button"
|
|
|
|
class="windowButton"
|
|
|
|
visibility="Black"
|
|
|
|
onClick="onClick_downloadAll"
|
|
|
|
height="30"
|
|
|
|
preferredWidth="110"
|
|
|
|
fontSize="20"
|
|
|
|
tooltip="Very rough estimate: 400 MB"
|
|
|
|
tooltipPosition="Above"
|
|
|
|
tooltipBackgroundColor="rgba(0,0,0,1)">Download Everything</Button>
|
|
|
|
<Button id="spawnPlaceholder_button"
|
|
|
|
class="windowButton"
|
|
|
|
visibility="Black"
|
|
|
|
onClick="onClick_spawnPlaceholder"
|
|
|
|
height="30"
|
|
|
|
preferredWidth="110"
|
|
|
|
fontSize="20">Spawn Placeholder</Button>
|
|
|
|
<Panel preferredWidth="50">
|
2023-10-13 07:01:43 -04:00
|
|
|
<Button rectAlignment="MiddleRight"
|
|
|
|
width="50"
|
|
|
|
color="clear"
|
|
|
|
icon="close"
|
|
|
|
tooltip="Close"
|
2024-11-16 08:56:40 -05:00
|
|
|
tooltipOffset="20"
|
2023-10-16 18:29:07 -04:00
|
|
|
tooltipPosition="Right"
|
|
|
|
tooltipBackgroundColor="rgba(0,0,0,1)"
|
|
|
|
onClick="onClick_toggleUi(downloadWindow)"/>
|
2023-10-13 07:01:43 -04:00
|
|
|
</Panel>
|
|
|
|
</Panel>
|
|
|
|
|
2023-10-16 18:29:07 -04:00
|
|
|
<HorizontalLayout>
|
|
|
|
<VerticalLayout preferredWidth="600">
|
2024-10-07 17:49:27 -04:00
|
|
|
<!-- search bar and filter dropdown -->
|
|
|
|
<HorizontalLayout preferredHeight="40"
|
|
|
|
padding="5 5 10 0"
|
|
|
|
spacing="5">
|
|
|
|
<InputField id="searchField"
|
|
|
|
preferredWidth="290"
|
|
|
|
fontSize="22"
|
|
|
|
placeholder="Search by name..."
|
|
|
|
color="white"
|
|
|
|
textColor="Black"
|
|
|
|
textOffset="5 5 5 5"
|
|
|
|
font="font_teutonic-arkham"
|
2024-10-10 19:10:39 -04:00
|
|
|
onSubmit="onSearchValueSubmit"/>
|
2024-10-07 17:49:27 -04:00
|
|
|
<Dropdown id="authorDropdown"
|
|
|
|
preferredWidth="290"
|
|
|
|
fontSize="22"
|
2024-10-10 19:10:39 -04:00
|
|
|
scrollSensitivity="22"
|
2024-10-07 17:49:27 -04:00
|
|
|
font="font_teutonic-arkham"
|
|
|
|
onValueChanged="onAuthorFilterChanged">
|
|
|
|
<Option>All Authors</Option>
|
|
|
|
<!-- this will be filled via scripting -->
|
|
|
|
</Dropdown>
|
|
|
|
</HorizontalLayout>
|
|
|
|
|
2023-10-16 18:29:07 -04:00
|
|
|
<!-- tab selection -->
|
|
|
|
<HorizontalLayout preferredHeight="60"
|
|
|
|
padding="5"
|
|
|
|
spacing="5">
|
|
|
|
<Button class="downloadTab activeTab"
|
|
|
|
id="tab1">Official Campaigns</Button>
|
|
|
|
<Button class="downloadTab"
|
|
|
|
id="tab2">Official Scenarios</Button>
|
|
|
|
<Button class="downloadTab"
|
|
|
|
id="tab3">Fan-Made Campaigns</Button>
|
|
|
|
<Button class="downloadTab"
|
|
|
|
id="tab4">Fan-Made Scenarios</Button>
|
|
|
|
<Button class="downloadTab"
|
|
|
|
id="tab5">Fan-Made Player Cards</Button>
|
|
|
|
</HorizontalLayout>
|
2023-10-13 07:01:43 -04:00
|
|
|
|
2023-10-16 18:29:07 -04:00
|
|
|
<!-- content list -->
|
|
|
|
<VerticalScrollView color="transparent"
|
|
|
|
minHeight="100"
|
|
|
|
flexibleHeight="100"
|
|
|
|
scrollSensitivity="27"
|
|
|
|
scrollbarColors="grey|grey|#C8C8C8|rgba(0.78,0.78,0.78,0.5)"
|
|
|
|
horizontalScrollbarVisibility="AutohideAndExpandViewport"
|
|
|
|
raycastTarget="true">
|
|
|
|
<VerticalLayout id="contentList"
|
|
|
|
padding="10 25 0 0">
|
|
|
|
<!-- this will be filled via scripting -->
|
|
|
|
</VerticalLayout>
|
|
|
|
</VerticalScrollView>
|
2023-10-15 18:29:06 -04:00
|
|
|
</VerticalLayout>
|
2023-10-13 19:38:31 -04:00
|
|
|
|
2023-10-16 18:29:07 -04:00
|
|
|
<!-- content preview window -->
|
|
|
|
<VerticalLayout preferredWidth="300"
|
|
|
|
padding="15 15 15 5">
|
2023-10-13 19:38:31 -04:00
|
|
|
|
2023-10-16 18:29:07 -04:00
|
|
|
<!-- header -->
|
|
|
|
<VerticalLayout preferredHeight="110">
|
|
|
|
<Text id="previewTitle"
|
|
|
|
fontSize="28"
|
|
|
|
preferredHeight="70"
|
|
|
|
font="font_teutonic-arkham">PreviewTitle</Text>
|
|
|
|
<Text id="previewAuthor"
|
|
|
|
fontSize="20"
|
|
|
|
preferredHeight="40"
|
|
|
|
font="font_teutonic-arkham">by PreviewAuthor</Text>
|
|
|
|
</VerticalLayout>
|
2023-10-13 20:10:19 -04:00
|
|
|
|
2023-10-16 18:29:07 -04:00
|
|
|
<!-- box art -->
|
|
|
|
<Panel id="previewArtPanel"
|
|
|
|
preferredHeight="390">
|
|
|
|
<Mask id="previewArtMask">
|
|
|
|
<!-- image will be set via scripting -->
|
|
|
|
<Image id="previewArtImage" />
|
|
|
|
</Mask>
|
|
|
|
</Panel>
|
2023-10-13 19:38:31 -04:00
|
|
|
|
2023-10-16 18:29:07 -04:00
|
|
|
<!-- description -->
|
|
|
|
<Panel preferredHeight="160">
|
|
|
|
<Text id="previewDescription"
|
|
|
|
alignment="UpperLeft"
|
|
|
|
resizeTextForBestFit="true"
|
|
|
|
resizeTextMinSize="12"
|
|
|
|
resizeTextMaxSize="18">PreviewDescription</Text>
|
|
|
|
</Panel>
|
2023-10-13 19:38:31 -04:00
|
|
|
|
2024-10-07 17:49:27 -04:00
|
|
|
<!-- download button / progress bar (visibility handled by lua code) -->
|
2023-10-16 18:29:07 -04:00
|
|
|
<Panel preferredHeight="60">
|
|
|
|
<!-- download button -->
|
|
|
|
<Button id="download_button"
|
2023-10-19 11:47:59 -04:00
|
|
|
class="windowButton"
|
2023-10-16 18:29:07 -04:00
|
|
|
onClick="onClick_download"
|
|
|
|
height="50"
|
|
|
|
width="270"
|
2023-10-19 11:47:59 -04:00
|
|
|
fontSize="28">Download</Button>
|
2023-10-18 15:37:42 -04:00
|
|
|
<!-- download progress bar -->
|
|
|
|
<ProgressBar id="download_progress"
|
|
|
|
active="false"
|
|
|
|
height="50"
|
|
|
|
width="270"
|
|
|
|
percentage="0"
|
|
|
|
color="#111111"
|
|
|
|
textColor="#aaaaaa"
|
|
|
|
fillImageColor="#333333"/>
|
2023-10-16 18:29:07 -04:00
|
|
|
</Panel>
|
|
|
|
</VerticalLayout>
|
|
|
|
</HorizontalLayout>
|
2024-10-07 17:49:27 -04:00
|
|
|
</VerticalLayout>
|