Versions in this module Expand all Collapse all v0 v0.3.5 Oct 8, 2021 Changes in this version + const DeviceMissingInfo + const DeviceUnknown + const InputPrimary + const InputSecondary + const NumInputs + const ProfileDefault + func GameBindsAsString(gameBindsByProfile GameBindsByProfile) string + func GenerateContextColours(contexts ContextToColours, config *Config) + func GenerateImageOverlays(overlaysByImage OverlaysByImage, input string, inputData InputData, ...) + func GenerateImages(overlaysByProfile OverlaysByProfile, categories map[string]string, ...) ([]bytes.Buffer, int) + func LoadDevicesInfo(file string, devices *Devices, log *Logger) + func LoadYaml(filename string, out interface{}, label string, log *Logger) + func YamlObjectAsString(in interface{}, label string) string + type Config struct + AlternateColours []string + AppName string + BackgroundColour string + DarkColour string + DebugOutput bool + DefaultImage Dimensions2d + DefaultLineHeight int + Devices Devices + DevicesFile string + FontsDir string + HotasImagesDir string + ImageHeader HeaderData + InputFont string + InputFontSize float64 + InputMinFontSize int + InputPixelXInset float64 + InputPixelYInset float64 + JpgQuality int + LightColour string + LogoImagesDir string + PixelMultiplier float64 + VerboseOutput bool + Version string + Watermark WatermarkData + type ContextToColours map[string]string + func (m ContextToColours) Keys() []string + type DeviceInputTypeMapping map[string]InputTypeMapping + type DeviceInputs map[string]InputData + type DeviceMap map[string]DeviceInputs + func FilterDevices(neededDevices Set, config *Config, log *Logger) DeviceMap + type DeviceNameFullToShort map[string]string + type Devices struct + DeviceLabelsByImage map[string]string + DeviceToShortNameMap DeviceNameFullToShort + GeneratedFile string + ImageMap ImageMap + ImageSizeOverride map[string]Dimensions2d + Index DeviceMap + type Dimensions2d struct + H int + W int + type FuncMatchGameInputToModel func(deviceName string, actionData GameInput, deviceInputs DeviceInputs, ...) (GameInput, string) + type FuncRequestHandler func(files [][]byte, config *Config, log *Logger) (GameData, GameBindsByProfile, Set, ContextToColours, string) + type GameActions map[string]GameInput + type GameBindsByProfile map[string]GameDeviceContextActions + type GameContextActions map[string]GameActions + type GameData struct + InputLabels map[string]string + InputMap DeviceInputTypeMapping + Logo string + Regexes map[string]string + func LoadGameModel(filename string, label string, debugOutput bool, log *Logger) GameData + type GameDeviceContextActions map[string]GameContextActions + type GameInput []string + type GeneratedDevices struct + ImageMap ImageMap + Index DeviceMap + type HeaderData struct + BackgroundColour string + BackgroundHeight float64 + Font string + FontSize float64 + Inset Point2d + TextColour string + TextHeight float64 + type ImageMap map[string]string + type InputData struct + H int + W int + X int + Y int + type InputTypeMapping map[string]map[string]string + type LogEntry struct + IsError bool + Msg string + type Logger []*LogEntry + func NewLog() *Logger + func (l *Logger) Dbg(format string, v ...interface{}) + func (l *Logger) Err(format string, v ...interface{}) + func (l *Logger) Fatal(format string, v ...interface{}) + func (l *Logger) Msg(format string, v ...interface{}) + type OverlayData struct + ContextToTexts map[string][]string + PosAndSize InputData + type OverlaysByImage map[string]map[string]OverlayData + type OverlaysByProfile map[string]OverlaysByImage + func PopulateImageOverlays(neededDevices Set, config *Config, log *Logger, ...) OverlaysByProfile + type Point2d struct + X float64 + Y float64 + type RegexByName map[string]*regexp.Regexp + type Set map[string]bool + func (m Set) Keys() []string + type WatermarkData struct + BackgroundColour string + Font string + FontSize float64 + Location Point2d + Text string + TextColour string