ui changes
This commit is contained in:
parent
7d36aaf241
commit
ce38acca4f
@ -717,6 +717,16 @@ function downloadCoroutine()
|
||||
return 1
|
||||
end
|
||||
|
||||
-- spawns a bag that contains every object from the library
|
||||
function onClick_downloadAll()
|
||||
|
||||
end
|
||||
|
||||
-- spawns a placeholder box for the selected object
|
||||
function onClick_spawnPlaceholder()
|
||||
|
||||
end
|
||||
|
||||
-- toggles the visibility of the respective UI
|
||||
---@param player LuaPlayer Player that triggered this
|
||||
---@param title String Name of the UI to toggle
|
||||
|
@ -12,6 +12,12 @@
|
||||
color="white"/>
|
||||
<Button class="activeTab"
|
||||
color="#ffffff"/>
|
||||
<Button class="windowButton"
|
||||
hoverClass="bGrey"
|
||||
pressClass="bWhite"
|
||||
selectClass="bWhite"
|
||||
color="#888888"
|
||||
font="font_teutonic-arkham"/>
|
||||
</Defaults>
|
||||
|
||||
<!-- window to select downloadable content -->
|
||||
@ -27,13 +33,32 @@
|
||||
<!-- window header -->
|
||||
<Panel preferredHeight="60"
|
||||
padding="10 10 5 5"
|
||||
spacing="10"
|
||||
outlineSize="2 2"
|
||||
outline="#303030"
|
||||
color="black">
|
||||
<Text fontSize="32"
|
||||
font="font_teutonic-arkham"
|
||||
preferredWidth="600"
|
||||
alignment="MiddleLeft">Downloadable Content</Text>
|
||||
<Panel>
|
||||
<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">
|
||||
<Button rectAlignment="MiddleRight"
|
||||
width="50"
|
||||
color="clear"
|
||||
@ -116,15 +141,11 @@
|
||||
<Panel preferredHeight="60">
|
||||
<!-- download button -->
|
||||
<Button id="download_button"
|
||||
hoverClass="bGrey"
|
||||
pressClass="bWhite"
|
||||
selectClass="bWhite"
|
||||
class="windowButton"
|
||||
onClick="onClick_download"
|
||||
color="#888888"
|
||||
height="50"
|
||||
width="270"
|
||||
fontSize="28"
|
||||
font="font_teutonic-arkham">Download</Button>
|
||||
fontSize="28">Download</Button>
|
||||
<!-- download progress bar -->
|
||||
<ProgressBar id="download_progress"
|
||||
active="false"
|
||||
|
Loading…
Reference in New Issue
Block a user