Versions in this module Expand all Collapse all v0 v0.0.4 Aug 13, 2026 Changes in this version + const BOARD_ALPHA + const BOARD_DEC + const BOARD_HEX + const BOARD_KEYBIND + const BUTTON_WIDTH + const MAX_DIALOG_LEN + const MENU_ABOUT + const MENU_GB + const MENU_GBA + const MENU_GENERAL + const MENU_NDS + const MENU_RETURN + const MENU_UI + const MIN_HEIGHT + const TICKS_PER_TOAST + var DEC_KEYS = []string + var HEX_KEYS = []string + var KEYS_KEY_CONTROLLER = []string + func ColorNdsValidation() func(string) (bool, *string) + func HexValidation(maxValue int) func(string) (bool, *string) + func MaskedColorTint(src img.Image, clrWhite, clrBlack color.Color) *img.RGBA + func NewAboutMenu(g *Game) *widget.Container + func NewApplyPalettesMenu(focusGroups *[][]widget.Focuser, pals map[string][4]string, ...) widget.PreferredSizeLocateableWidget + func NewCenteredButton(text string, f func(*widget.ButtonClickedEventArgs)) *widget.Button + func NewCenteredPage(bg *image.NineSlice, buttons ...*widget.Button) *widget.Container + func NewCheckbox(value *bool) widget.PreferredSizeLocateableWidget + func NewColorInput(ui *Ui, label string, v *color.Color, ...) widget.PreferredSizeLocateableWidget + func NewDecimalInput(ui *Ui, label string, value any, maxValue int) *widget.TextInput + func NewDirectoryInput(v *string, defaultPath string) widget.PreferredSizeLocateableWidget + func NewFileInput(v *string) widget.PreferredSizeLocateableWidget + func NewGamepadInput(ui *Ui, v *[]ebiten.StandardGamepadButton) widget.PreferredSizeLocateableWidget + func NewGbMenu(g *Game) *widget.Container + func NewGbaMenu(g *Game) *widget.Container + func NewGeneralMenu(g *Game) *widget.Container + func NewHeader(text string, res *Resources) *widget.Text + func NewHexInput(ui *Ui, label string, value any, maxValue int) *widget.TextInput + func NewHome(g *Game) + func NewKeybindInput(ui *Ui, v *[]ebiten.Key) widget.PreferredSizeLocateableWidget + func NewLabel(text string) *widget.Text + func NewLinkText(text string) *widget.Text + func NewNdsMenu(g *Game) *widget.Container + func NewPause(g *Game) + func NewRadioButton(label string, ptr *int, value int, res *Resources) *widget.Button + func NewRadioInput(focusRadios *[][]widget.Focuser, ptr *int, values []string, res *Resources) widget.PreferredSizeLocateableWidget + func NewSaveButton(text string, f func(*widget.ButtonClickedEventArgs)) widget.PreferredSizeLocateableWidget + func NewScrollableContainer(ui *Ui) *widget.Container + func NewSeparator() *widget.Container + func NewSettings(g *Game, oldId PageId, initMenu int) + func NewSidebarButton(g *Game, label string, f func(g *Game)) *widget.Button + func NewTextBoxInput(ui *Ui, board int, label string, value any, ...) *widget.TextInput + func NewTheme(r *Resources) *widget.Theme + func NewUiMenu(g *Game) *widget.Container + func NumberValidation(maxValue int) func(string) (bool, *string) + func StartEngine() + func StringValidation(maxLength int) func(string) (bool, *string) + func TintImage(src *ebiten.Image, c color.Color) *ebiten.Image + type AboutLocalization struct + About string + Copyright string + ThankYous string + Version string + type BindingInput struct + ChangedEvent *event.Event + func NewBindingInput(opts ...BindingInputOpt) *BindingInput + func (t *BindingInput) GetText() string + func (t *BindingInput) GetWidget() *widget.Widget + func (t *BindingInput) PreferredSize() (int, int) + func (t *BindingInput) Render(screen *ebiten.Image) + func (t *BindingInput) SetFocus(focused bool) + func (t *BindingInput) SetGamepadBinding(gamepadIds *map[ebiten.GamepadID]struct{}) + func (t *BindingInput) SetLocation(rect img.Rectangle) + func (t *BindingInput) SetText(text string) + func (t *BindingInput) Update(updObj *widget.UpdateObject) + func (t *BindingInput) Validate() + type BindingInputChangedEventArgs struct + BindingInput *BindingInput + Buttons []ebiten.StandardGamepadButton + InputText string + Keys []ebiten.Key + OffsetX int + OffsetY int + type BindingInputChangedHandlerFunc func(args *BindingInputChangedEventArgs) + type BindingInputColor struct + Focus color.Color + Idle color.Color + type BindingInputImage struct + Focus *image.NineSlice + Idle *image.NineSlice + type BindingInputOpt func(t *BindingInput) + type BindingInputOptions struct + var BindingInputOpts BindingInputOptions + func (o BindingInputOptions) ChangedHandler(f BindingInputChangedHandlerFunc) BindingInputOpt + func (o BindingInputOptions) Color(c *BindingInputColor) BindingInputOpt + func (o BindingInputOptions) Face(f *text.Face) BindingInputOpt + func (o BindingInputOptions) Image(i *BindingInputImage) BindingInputOpt + func (o BindingInputOptions) MobileInputMode(mobileInputMode mobile.InputMode) BindingInputOpt + func (o BindingInputOptions) Padding(i *widget.Insets) BindingInputOpt + func (o BindingInputOptions) Placeholder(s string) BindingInputOpt + func (o BindingInputOptions) WidgetOpts(opts ...widget.WidgetOpt) BindingInputOpt + type BindingInputParams struct + Color *BindingInputColor + Face *text.Face + Image *BindingInputImage + Padding *widget.Insets + type Focus struct + func (f *Focus) BuildMenuFocus(menu *widget.Container, bindings ...*widget.Container) + func (f *Focus) ClearFocus() + func (f *Focus) DeFocus() + func (f *Focus) FocusLastSidebar() + func (f *Focus) FocusLastSubMenu() + func (f *Focus) FocusSidebar(idx int) + func (f *Focus) FocusSubmenu() + func (f *Focus) KeepFocusedInView(slider *widget.Slider, ui *ebitenui.UI) + type Game struct + Bus *bus.EventBus + DrawOptions ebiten.DrawImageOptions + func NewGame(res *Resources) *Game + func (g *Game) ButtonInput(justButtons, buttons []ebiten.StandardGamepadButton) + func (g *Game) Draw(screen *ebiten.Image) + func (g *Game) GetGamepadButtons() (justButtons, buttons []ebiten.StandardGamepadButton) + func (g *Game) HandleGlobalInputs(justKeys []ebiten.Key, justButtons, buttons []ebiten.StandardGamepadButton) + func (g *Game) InitConsole(file string) bool + func (g *Game) Layout(outsideWidth int, outsideHeight int) (int, int) + func (g *Game) ToggleMute() + func (g *Game) TogglePause() + func (g *Game) Update() error + type GbLocalization struct + A string + ApplyPalette string + B string + Bios string + Controller string + Dark string + Darkest string + DirectBoot string + DmgDark string + DmgDarkest string + DmgLight string + DmgLightest string + DmgPalette string + DmgPath string + Down string + GbcPath string + General string + Keyboard string + Left string + Light string + Lightest string + Right string + Save string + Select string + Start string + System string + Systems []string + Up string + type GbaLocalization struct + A string + B string + BackupType string + BackupTypes []string + Bios string + BiosPath string + Controller string + DirectBoot string + Down string + ForceRtc string + ForceSolarSensor string + General string + Hardware string + Keyboard string + L string + Left string + OptmizeIdleLoops string + R string + Right string + Rotation string + RotationToggle string + Rotations []string + Save string + Select string + Solar1 string + Solar2 string + Solar3 string + SolarMax string + SolarMin string + SolarSensorLevel string + Start string + Up string + type GeneralLocalization struct + Controller string + DisableSaves string + Down string + Fullscreen string + General string + InitFullscreen string + IntegerScaling string + IntegerScalingDesc string + IntegerScalingRatio string + Keyboard string + Left string + Mute string + Muted string + Pause string + Quit string + Return string + Right string + SampleRate string + SampleRateDesc string + Save string + Select string + ShowFps string + TargetFps string + Up string + VsyncEnabled string + type Keyboard struct + func NewKeyboard(res *Resources, alphaKeys []string) *Keyboard + func (k *Keyboard) Close(save bool) + func (k *Keyboard) Open(ui *Ui, caller *widget.TextInput, board int, label string, v any, ...) + type LangOptions int + const ENGLISH + const SPANISH + type Localization struct + Main MainLocalization + Pause PauseLocalization + Settings SettingsLocalization + Toast ToastLocalization + func NewLocalization(lang LangOptions) *Localization + type MainLocalization struct + DialogDesc string + DialogTitle string + Open string + Quit string + Settings string + type NdsLocalization struct + A string + AdditionalHours string + Arm7Path string + Arm9Path string + B string + Bios string + Controller string + Debug string + Down string + ExportToggle string + FavoriteColor string + FilePath string + Firmware string + Hinge string + Keyboard string + L string + Layout string + LayoutToggle string + Layouts []string + Left string + Message string + Nickname string + OutputDirectory string + R string + Right string + Rotation string + RotationToggle string + Rotations []string + Rtc string + Save string + SceneExport string + Screen string + Select string + ShadowPolygons string + Sizing string + SizingToggle string + Sizings []string + Start string + Up string + X string + Y string + type PageId int + const PAGE_HOME + const PAGE_KEYBOARD + const PAGE_PAUSE + const PAGE_SETTINGS + type PauseLocalization struct + Main string + Resume string + Settings string + type Resources struct + func NewUIResources() (*Resources, error) + func (u *Resources) Update() + type SettingsLocalization struct + About AboutLocalization + Gb GbLocalization + Gba GbaLocalization + General GeneralLocalization + Nds NdsLocalization + Sidebar SidebarLocalization + Ui UiLocalization + type SidebarField struct + type SidebarLocalization struct + About string + Gb string + Gba string + General string + Nds string + Return string + Ui string + type Toast struct + func NewToast(res *Resources) *Toast + func (t *Toast) AddMessage(message string) + func (t *Toast) Update() + type ToastLocalization struct + ControllerConnected string + ControllerDisconnected string + Muted string + Saved string + Unmuted string + type Ui struct + ActiveInputs int + PageId PageId + PrevPageId PageId + type UiLocalization struct + AccentColor string + Alphabet []string + ApplyTheme string + Backdrop string + BgColor string + FgColor string + Language string + Languages []string + Save string + Ui string + UiAccentColor string + UiBackdrop string + UiBgColor string + UiFgColor string