Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SpriteLists = []SpriteList{
{
Path: "Art/UIImages1.txt",
NamePrefix: "Art/2DArt/UIImages/",
SpritePrefix: "Art/Textures/Interface/2D/",
},
{
Path: "Art/UIDivinationImages.txt",
NamePrefix: "Art/2DItems/Divination/Images/",
SpritePrefix: "Art/Textures/Interface/2D/DivinationCards/",
},
{
Path: "Art/UIShopImages.txt",
NamePrefix: "Art/2DArt/Shop/",
SpritePrefix: "Art/Textures/Interface/2D/Shop/",
},
}
SpriteLists contains all known sprite sheet definitions
Functions ¶
func ConvertDDSToPNG ¶
func ConvertDDSToPNG(ddsData []byte, crop *CropParams, outputPath string) error
ConvertDDSToPNG converts a DDS image to PNG format using ImageMagick Optionally crops the image if crop parameters are provided Returns an error if ImageMagick is not installed or conversion fails
func DecodeUTF16LE ¶
DecodeUTF16LE decodes UTF-16LE byte data to a string
func IsInsideSprite ¶
IsInsideSprite checks if the given path is inside a sprite sheet
Types ¶
type CropParams ¶
CropParams defines optional crop parameters for image extraction
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter handles exporting files from bundles to disk
func NewExporter ¶
func NewExporter(loader FileLoader, outputDir string) *Exporter
NewExporter creates a new file exporter
func (*Exporter) ExportFiles ¶
func (e *Exporter) ExportFiles(files []string, progressCallback ProgressCallback) error
ExportFiles exports the specified files from bundles to the output directory Handles sprite extraction and DDS conversion as needed
type FileLoader ¶
FileLoader defines the interface for loading files from bundles
type ProgressCallback ¶
ProgressCallback is called to report export progress
type SpriteImage ¶
SpriteImage represents a single image within a sprite sheet
func ParseSpriteIndex ¶
func ParseSpriteIndex(data []byte) ([]SpriteImage, error)
ParseSpriteIndex parses a sprite index file (UTF-16LE encoded) Returns a slice of SpriteImage entries
type SpriteList ¶
SpriteList defines a sprite sheet configuration