Add playlist updated field

This commit is contained in:
Brahim Hadriche committed 2023-09-11 13:47:44 -04:00
1 parent b7fe0feb94
commit ae82ad4b28
8 files changed
+68 -16

No files matched your search

@@ -17,6 +17,7 @@ function Init()
m.backgroundSmall = m.top.findNode("backgroundSmall")
m.titleLabel = m.top.findNode("titleLabel")
m.subtitleLabel = m.top.findNode("subtitleLabel")
m.updatedLabel = m.top.findNode("updatedLabel")
m.descriptionLabel = m.top.findNode("descriptionLabel")
m.list = m.top.findNode("list")
end function
@@ -43,6 +44,7 @@ function OnContentSet() as void
m.titleLabel.text = content.title
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
m.subtitleLabel.text = `${content._author} • ${content.videoCountText} • ${content.viewCountText}`
m.updatedLabel.text = content.updatedText
m.descriptionLabel.text = content.description
' TODO:P2 cross fade
@@ -22,7 +22,7 @@
height="720"
blendColor="0x323232">
<LayoutGroup
itemSpacings="[5,20]"
itemSpacings="[5,5,20]"
translation="[65,90]">
<Label
id="titleLabel"
@@ -35,6 +35,10 @@
id="subtitleLabel"
width="500"
font="font:SmallestBoldSystemFont" />
<Label
id="updatedLabel"
width="500"
font="font:SmallestSystemFont" />
<Label
id="descriptionLabel"
width="500"