57 XElement node =
ContentManager.
Get<XElement>(
"Screens/OriginalCommunityContentScreen");
70 m_listPanel.ItemWidgetFactory = delegate(
object item) {
76 containerWidget.Children.Find<
LabelWidget>(
"CommunityContentItem.Text").Text = communityContentEntry.
Name;
77 containerWidget.Children.Find<
LabelWidget>(
"CommunityContentItem.Details").Text =
78 $
"{ExternalContentManager.GetEntryTypeDescription(communityContentEntry.Type)} {DataSizeFormatter.Format(communityContentEntry.Size)}";
79 containerWidget.Children.Find<
StarRatingWidget>(
"CommunityContentItem.Rating").Rating = communityContentEntry.RatingsAverage;
81 communityContentEntry.RatingsAverage > 0f;
82 containerWidget.Children.Find<
LabelWidget>(
"CommunityContentItem.ExtraText").Text = communityContentEntry.ExtraText;
83 return containerWidget;
85 XElement node3 =
ContentManager.
Get<XElement>(
"Widgets/CommunityContentItemMore");
88 m_moreLink.Tag = item as string;
89 return containerWidget2;
91 m_searchTextBox.TextChanged += delegate {
95 m_listPanel.SelectionChanged += delegate {
98 m_listPanel.SelectedItem =
null;
112 m_downloadButton.IsEnabled = communityContentEntry !=
null;
114 && communityContentEntry !=
null
140 delegate(
object item) {
148 List<object> list = [
string.Empty];
150 .GetEnumValues<OriginalExternalContentType>()
159 list.Add(communityContentEntry2.Url);
168 delegate(
object item) {
180 && communityContentEntry !=
null) {
184 && communityContentEntry !=
null) {
198 if (
Input.Hold.HasValue
199 &&
Input.HoldTime > 2f
200 &&
Input.Hold.Value.Y < 20f) {
202 Task.Delay(250).Wait();