Add playlist updated field
This commit is contained in:
1 parent
b7fe0feb94
commit
ae82ad4b28
8 files changed
+68
-16
No files matched your search
@@ -3,6 +3,7 @@ import "pkg:/source/utils/Types.bs"
|
||||
function Init()
|
||||
m.titleLabel = m.top.FindNode("titleLabel")
|
||||
m.authorLabel = m.top.FindNode("authorLabel")
|
||||
m.updatedLabel = m.top.FindNode("updatedLabel")
|
||||
m.videoCountRect = m.top.FindNode("videoCountRect")
|
||||
m.videoCountLabel = m.top.FindNode("videoCountLabel")
|
||||
m.thumbnail = m.top.FindNode("thumbnail")
|
||||
@@ -19,6 +20,7 @@ function OnContentSet() as void
|
||||
m.titleLabel.text = content.title
|
||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||
m.authorLabel.text = content._author
|
||||
m.updatedLabel.text = content.updatedText
|
||||
|
||||
m.thumbnail.uri = content.thumbnail
|
||||
|
||||
|
||||
@@ -7,30 +7,26 @@
|
||||
</interface>
|
||||
<children>
|
||||
<LayoutGroup
|
||||
itemSpacings="[24,5]"
|
||||
>
|
||||
itemSpacings="[24,5,5]">
|
||||
<Poster
|
||||
id="thumbnail"
|
||||
loadDisplayMode="scaleToZoom"
|
||||
width="350"
|
||||
height="196"
|
||||
>
|
||||
height="196">
|
||||
<Rectangle
|
||||
id="videoCountRect"
|
||||
width="60"
|
||||
height="26"
|
||||
color="0x000000"
|
||||
opacity="0.8"
|
||||
translation="[290, 162]"
|
||||
>
|
||||
translation="[290, 162]">
|
||||
<Label
|
||||
height="26"
|
||||
id="videoCountLabel"
|
||||
horizAlign="center"
|
||||
vertAlign="center"
|
||||
font="font:SmallestSystemFont"
|
||||
translation="[8, 0]"
|
||||
/>
|
||||
translation="[8, 0]" />
|
||||
</Rectangle>
|
||||
</Poster>
|
||||
|
||||
@@ -39,14 +35,17 @@
|
||||
width="350"
|
||||
font="font:SmallestBoldSystemFont"
|
||||
maxLines="2"
|
||||
wrap="true"
|
||||
/>
|
||||
wrap="true" />
|
||||
<Label
|
||||
id="authorLabel"
|
||||
width="350"
|
||||
height="25"
|
||||
font="font:SmallestSystemFont"
|
||||
/>
|
||||
font="font:SmallestSystemFont" />
|
||||
<Label
|
||||
id="updatedLabel"
|
||||
width="350"
|
||||
height="25"
|
||||
font="font:SmallestSystemFont" />
|
||||
</LayoutGroup>
|
||||
</children>
|
||||
</component>
|
||||
Reference in new issue
Block a user