steam_grid

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAssetsFilenames = map[Asset]string{
	Header:         "header.jpg",
	LibraryCapsule: "library_600x900.jpg",
	LibraryHero:    "library_hero.jpg",
	LibraryLogo:    "logo.png",
}

Functions

func AssetUrl added in v0.4.3

func AssetUrl(steamAppId, imageId string, asset Asset) *url.URL

func ImageFilename added in v0.4.3

func ImageFilename(shortcutId uint32, imageType Asset) string

func LogoPositionFilename added in v0.4.3

func LogoPositionFilename(shortcutId uint32) string

Types

type Asset

type Asset int
const (
	UnknownAsset Asset = iota

	ClientIcon   // 256x256, ar: 1
	ClientTga    // 16x16, ar: 1
	Icon         // 32x32, ar: 1
	LogoSmall    // 120x45, ar: 2.66
	SmallCapsule // 231x87, ar: 2.66
	Header       // 460x215
	Header2x     // 920x430

	LibraryCapsule   // 300x450
	LibraryCapsule2x // 600x900
	LibraryHero      // 1920x620
	LibraryHero2x    // 3840x1240
	LibraryLogo2x    // 1280x720

	MainCapsule       // 616x353
	PageBackground    // 1438x810
	HeroCapsule       // 374x448
	CommunityIcon     // 32x32
	RawPageBackground // 1438x810
)

func (Asset) Ext added in v0.4.3

func (a Asset) Ext() string

func (Asset) String added in v0.4.3

func (a Asset) String() string

Jump to

Keyboard shortcuts

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