mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 22:58:01 +03:00
Workshop item preview image
This commit is contained in:
parent
430c24df08
commit
49df734392
@ -17,6 +17,7 @@ namespace Facepunch.Steamworks
|
|||||||
public string Title { get; set; } = null;
|
public string Title { get; set; } = null;
|
||||||
public string Description { get; set; } = null;
|
public string Description { get; set; } = null;
|
||||||
public string Folder { get; set; } = null;
|
public string Folder { get; set; } = null;
|
||||||
|
public string PreviewImage { get; set; } = null;
|
||||||
public List<string> Tags { get; set; } = new List<string>();
|
public List<string> Tags { get; set; } = new List<string>();
|
||||||
public bool Publishing { get; internal set; }
|
public bool Publishing { get; internal set; }
|
||||||
public ItemType? Type { get; set; }
|
public ItemType? Type { get; set; }
|
||||||
@ -148,10 +149,12 @@ namespace Facepunch.Steamworks
|
|||||||
if ( Visibility.HasValue )
|
if ( Visibility.HasValue )
|
||||||
workshop.ugc.SetItemVisibility( UpdateId, (uint)Visibility.Value );
|
workshop.ugc.SetItemVisibility( UpdateId, (uint)Visibility.Value );
|
||||||
|
|
||||||
|
if ( PreviewImage != null )
|
||||||
|
workshop.ugc.SetItemPreview( UpdateId, PreviewImage ); // change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size
|
||||||
|
|
||||||
/*
|
/*
|
||||||
workshop.ugc.SetItemUpdateLanguage( UpdateId, const char *pchLanguage ) = 0; // specify the language of the title or description that will be set
|
workshop.ugc.SetItemUpdateLanguage( UpdateId, const char *pchLanguage ) = 0; // specify the language of the title or description that will be set
|
||||||
workshop.ugc.SetItemMetadata( UpdateId, const char *pchMetaData ) = 0; // change the metadata of an UGC item (max = k_cchDeveloperMetadataMax)
|
workshop.ugc.SetItemMetadata( UpdateId, const char *pchMetaData ) = 0; // change the metadata of an UGC item (max = k_cchDeveloperMetadataMax)
|
||||||
workshop.ugc.SetItemPreview( UpdateId, const char *pszPreviewFile ) = 0; // change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size
|
|
||||||
workshop.ugc.RemoveItemKeyValueTags( UpdateId, const char *pchKey ) = 0; // remove any existing key-value tags with the specified key
|
workshop.ugc.RemoveItemKeyValueTags( UpdateId, const char *pchKey ) = 0; // remove any existing key-value tags with the specified key
|
||||||
workshop.ugc.AddItemKeyValueTag( UpdateId, const char *pchKey, const char *pchValue ) = 0; // add new key-value tags for the item. Note that there can be multiple values for a tag.
|
workshop.ugc.AddItemKeyValueTag( UpdateId, const char *pchKey, const char *pchValue ) = 0; // add new key-value tags for the item. Note that there can be multiple values for a tag.
|
||||||
workshop.ugc.AddItemPreviewFile( UpdateId, const char *pszPreviewFile, EItemPreviewType type ) = 0; // add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size
|
workshop.ugc.AddItemPreviewFile( UpdateId, const char *pszPreviewFile, EItemPreviewType type ) = 0; // add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size
|
||||||
|
@ -46,6 +46,9 @@ namespace Facepunch.Steamworks
|
|||||||
/// Page starts at 1 !!
|
/// Page starts at 1 !!
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Page { get; set; } = 1;
|
public int Page { get; set; } = 1;
|
||||||
|
|
||||||
|
public int PerPage { get; set; } = 50;
|
||||||
|
|
||||||
internal Workshop workshop;
|
internal Workshop workshop;
|
||||||
|
|
||||||
public unsafe void Run()
|
public unsafe void Run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user