artwork

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 12 Imported by: 0

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

func ApplyFromData(appID uint32, artworkType string, data []byte, contentType string) error

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

type ArtworkResult struct {
	Type  string `json:"type"`
	Error string `json:"error,omitempty"`
}

ArtworkResult contains the result of applying a single artwork type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL