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