local
DownloadBar_Gamepad
=
ZO_InitializingObject
:
Subclass
(
)
function
Initialize
control
self
.
bar
GetNamedChild
"BarContainer"
label
"PercentLabel"
sceneFragment
ZO_FadeSceneFragment
New
GAMEPAD_DOWNLOAD_BAR_FRAGMENT
end
Update
TOTAL_DOWNLOAD_PERCENTAGE
100
downloadPercentage
zo_clamp
GetInstallationProgress
,
0
ZO_StatusBar_SmoothTransition
SetText
ZO_FastFormatDecimalNumber
string
format
"%.2f%%"
DownloadBar_Gamepad_Initialize
GAMEPAD_DOWNLOAD_BAR