mirror of https://github.com/ungstein/OG-Steam.git
347 lines
7.6 KiB
Plaintext
347 lines
7.6 KiB
Plaintext
"resource/layout/downloadsummarypanel.layout"
|
|
{
|
|
controls
|
|
{
|
|
"downloadsummarypanel"
|
|
{
|
|
style=CDownloadSummaryPanel
|
|
tall="130"
|
|
}
|
|
|
|
"header"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "#steam_downloads_networkusage"
|
|
style=bigtext
|
|
}
|
|
|
|
"download_rate"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "#steam_downloads_downloadrate"
|
|
style=bigtextlabel
|
|
}
|
|
|
|
"download_rate_value"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "%CurrentDLRate%"
|
|
style=bigtextNonUpper
|
|
}
|
|
|
|
"peak_download_rate"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "#steam_downloads_peakdownloadrate"
|
|
style="bigtextlabel"
|
|
}
|
|
|
|
"peak_download_rate_value"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "%PeakDLRate%"
|
|
style="bigtextNonUpper"
|
|
}
|
|
|
|
"total_downloaded"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "#steam_downloads_totaldownloaded"
|
|
style="bigtextlabel"
|
|
}
|
|
"total_downloaded_value"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "%TotalDownloaded%"
|
|
style="bigtextNonUpper"
|
|
}
|
|
|
|
"disk_status_value"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "%DiskUsage%"
|
|
style="bigtextNonUpper"
|
|
}
|
|
|
|
"disk_status_label"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "#steam_downloads_diskusage"
|
|
style="bigtextlabel"
|
|
}
|
|
|
|
"pauseresumeallbutton"
|
|
{
|
|
"ControlName" "Button"
|
|
style=PauseButton
|
|
}
|
|
|
|
"throttling_label"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "#steam_downloads_throttling"
|
|
style="throttleLabel"
|
|
group = "ShowWhenThrottled"
|
|
}
|
|
|
|
"throttling_value"
|
|
{
|
|
"ControlName" "URLLabel"
|
|
"URLText" "steam://settings/downloads"
|
|
"labelText" "%throttle_value%"
|
|
style="throttleValue"
|
|
group = "ShowWhenThrottled"
|
|
}
|
|
|
|
"blackout_label"
|
|
{
|
|
"ControlName" "Label"
|
|
"labelText" "#steam_downloads_autoupdate_window_label"
|
|
style="throttleLabel"
|
|
group = "ShowWhenAutoUpdateWindow"
|
|
}
|
|
|
|
"blackout_value"
|
|
{
|
|
"ControlName" "URLLabel"
|
|
"URLText" "steam://settings/downloads"
|
|
"labelText" "#steam_downloads_autoupdate_window_value"
|
|
style="throttleValue"
|
|
group = "ShowWhenAutoUpdateWindow"
|
|
}
|
|
|
|
net_graphpanel { controlname="GraphPanel" style="NetGraphPanel" group="HideOnCompletion" zpos="-2" }
|
|
disc_graphpanel { controlname="GraphPanel" style="DiscGraphPanel" group="HideOnCompletion" zpos="-1" }
|
|
|
|
"disk_legend_label" { ControlName="Label" labelText="#steam_downloads_legenddisk" style="throttleLabel" }
|
|
"net_legend_label" { ControlName="Label" labelText="#steam_downloads_legendnet" style="throttleLabel" }
|
|
"disk_legend_panel" { ControlName="Panel" style="diskLegendPanel" }
|
|
"net_legend_panel" { ControlName="Panel" style="netLegendPanel" }
|
|
}
|
|
|
|
|
|
colors
|
|
{
|
|
panelBackground = "DarkGreenBG"
|
|
panelBackgroundTransparent = "12 27 38 0"
|
|
}
|
|
|
|
styles
|
|
{
|
|
CDownloadSummaryPanel
|
|
{
|
|
bgcolor=panelBackground
|
|
inset="0 0 0 0"
|
|
}
|
|
|
|
throttleLabel
|
|
{
|
|
bgcolor none
|
|
font-size "15"
|
|
textcolor "OffWhite"
|
|
padding-top "0"
|
|
font-style="uppercase"
|
|
}
|
|
throttleValue
|
|
{
|
|
bgcolor none
|
|
font-size "15"
|
|
textcolor "White"
|
|
padding-top "0"
|
|
}
|
|
|
|
container
|
|
{
|
|
bgcolor="none"
|
|
}
|
|
|
|
bigtext
|
|
{
|
|
font-family=basefont
|
|
font-size=17
|
|
font-style="uppercase"
|
|
textcolor="White"
|
|
}
|
|
|
|
bigtextNonUpper
|
|
{
|
|
font-family=basefont
|
|
font-size=17
|
|
textcolor="White"
|
|
}
|
|
|
|
bigtextlabel
|
|
{
|
|
font-family=basefont
|
|
font-size=17
|
|
font-style="uppercase"
|
|
textcolor="Maize"
|
|
}
|
|
|
|
bigtextHeader
|
|
{
|
|
font-family=basefont
|
|
font-size=17
|
|
font-style="uppercase"
|
|
textcolor="OffWhite"
|
|
}
|
|
|
|
|
|
bigTextNumbers
|
|
{
|
|
font-family=basefont
|
|
font-size="17"
|
|
textcolor="White"
|
|
font-style="uppercase"
|
|
}
|
|
|
|
PauseButton
|
|
{
|
|
|
|
font-family = basefont
|
|
font-size="16"
|
|
inset = "4 0 0 0"
|
|
textcolor=White
|
|
bgcolor=GreenBG
|
|
render_bg
|
|
{
|
|
1="fill( x0, y0, x1, y0 + 1, BorderBright )" // top
|
|
2="fill( x0, y1 - 1, x1, y1, BorderDark )" // bottom
|
|
3="fill( x0, y0, x0 + 1, y1 - 1, BorderBright )" // left
|
|
4="fill( x1 - 1, y0, x1, y1, BorderDark )" // right
|
|
}
|
|
}
|
|
|
|
PauseButton:Hover
|
|
{
|
|
font-family = basefont
|
|
font-size="16"
|
|
inset = "4 0 0 0"
|
|
textcolor=White
|
|
bgcolor=GreenBG
|
|
render_bg
|
|
{
|
|
1="fill( x0, y0, x1, y0 + 1, BorderBright )" // top
|
|
2="fill( x0, y1 - 1, x1, y1, BorderDark )" // bottom
|
|
3="fill( x0, y0, x0 + 1, y1 - 1, BorderBright )" // left
|
|
4="fill( x1 - 1, y0, x1, y1, BorderDark )" // right
|
|
}
|
|
}
|
|
|
|
ResumeButton
|
|
{
|
|
|
|
font-family = basefont
|
|
font-size="16"
|
|
inset = "4 0 0 0"
|
|
textcolor=White
|
|
bgcolor=GreenBG
|
|
render_bg
|
|
{
|
|
1="fill( x0, y0, x1, y0 + 1, BorderBright )" // top
|
|
2="fill( x0, y1 - 1, x1, y1, BorderDark )" // bottom
|
|
3="fill( x0, y0, x0 + 1, y1 - 1, BorderBright )" // left
|
|
4="fill( x1 - 1, y0, x1, y1, BorderDark )" // right
|
|
}
|
|
}
|
|
|
|
ResumeButton:Hover
|
|
{
|
|
font-family = basefont
|
|
font-size="16"
|
|
inset = "4 0 0 0"
|
|
textcolor=White
|
|
bgcolor=GreenBG
|
|
render_bg
|
|
{
|
|
1="fill( x0, y0, x1, y0 + 1, BorderBright )" // top
|
|
2="fill( x0, y1 - 1, x1, y1, BorderDark )" // bottom
|
|
3="fill( x0, y0, x0 + 1, y1 - 1, BorderBright )" // left
|
|
4="fill( x1 - 1, y0, x1, y1, BorderDark )" // right
|
|
}
|
|
}
|
|
|
|
NetGraphPanel
|
|
{
|
|
bgcolor "none"
|
|
textcolor "Maize"
|
|
render_bg
|
|
{
|
|
// no background
|
|
// 0="fill( x0, y0, x1, y1, red )"
|
|
}
|
|
}
|
|
|
|
DiscGraphPanel
|
|
{
|
|
bgcolor "none"
|
|
textcolor="White"
|
|
render_bg
|
|
{
|
|
// no background
|
|
// 0="fill( x0, y0, x1, y1, red )"
|
|
}
|
|
}
|
|
|
|
DiskLegendPanel
|
|
{
|
|
render_bg
|
|
{
|
|
// background fill
|
|
0="fill( x0, y0, x1,y1, White )"
|
|
}
|
|
}
|
|
|
|
NetLegendPanel
|
|
{
|
|
render_bg
|
|
{
|
|
// background fill
|
|
0="fill( x0, y0, x1,y1, Maize )"
|
|
}
|
|
}
|
|
}
|
|
|
|
layout
|
|
{
|
|
|
|
//set aside some room for the header section
|
|
region { name=head dir=down x=10 y=10 height=max width=max margin-right=0 }
|
|
|
|
region { name=legend align=right width=90 margin-top=60 }
|
|
|
|
region { name=left_column x=0 y=21 width=max region=head }
|
|
region { name=middle_column x=200 y=0 width=max region=head }
|
|
|
|
// graph
|
|
place { control="net_graphpanel" region=head x=182 y=0 width="max" height="104" margin-right=112 }
|
|
place { control="disc_graphpanel" region=head x=182 y=0 width="max" height="104" margin-right=112 }
|
|
|
|
// graph legend
|
|
place { control="net_legend_panel" region=legend y=3 x=0 width=9 height=9 }
|
|
place { control="net_legend_label" region=legend y=1 x=12 }
|
|
|
|
place { control="disk_legend_panel" region=legend y=16 x=0 width=9 height=9 }
|
|
place { control="disk_legend_label" region=legend y=14 x=12 }
|
|
|
|
// put NETWORK USAGE in the top left
|
|
place { control="header" region=head dir=down x=0 y=0 }
|
|
|
|
// top right
|
|
place { control="pauseresumeallbutton" region=head align=right margin-right=10 margin-top=0 }
|
|
|
|
// three rows of network usage underneath the header
|
|
place { region=left_column control="download_rate_value,download_rate" spacing=4 }
|
|
place { region=left_column control="peak_download_rate_value, peak_download_rate" spacing=4 y=22 align=top }
|
|
place { region=left_column control="total_downloaded_value, total_downloaded" spacing=4 y=44 align=top }
|
|
place { region=left_column control="disk_status_value, disk_status_label" spacing=4 y=66 align=top }
|
|
|
|
// throttling info
|
|
place { region=middle_column controls="blackout_label, blackout_value" spacing=4 }
|
|
place { region=middle_column control="throttling_label" start=blackout_label dir=down margin-top=4 }
|
|
place { region=middle_column control="throttling_value" start=throttling_label dir=right margin-left=4 }
|
|
|
|
|
|
}
|
|
}
|