Documentation
¶
Overview ¶
Package artwork provides Steam artwork application for the Agent.
Package artwork provides Steam artwork application for the Agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFromData ¶ added in v0.3.0
ApplyFromData applies raw image bytes as Steam artwork. Tries CEF API first (instant, no restart needed), falls back to filesystem. artworkType: "grid", "banner", "hero", "logo", "icon". contentType: "image/png", "image/jpeg", "image/webp".
Types ¶
type ApplyResult ¶
type ApplyResult struct {
Applied []string `json:"applied"`
Failed []ArtworkResult `json:"failed,omitempty"`
}
ApplyResult contains the result of applying artwork.
func Apply ¶
func Apply(userID string, appID uint32, cfg *protocol.ArtworkConfig) (*ApplyResult, error)
Apply downloads artwork from URLs and applies each via ApplyFromData (CEF API first, filesystem fallback).
type ArtworkResult ¶
ArtworkResult contains the result of applying a single artwork type.
Click to show internal directories.
Click to hide internal directories.