Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InactiveUI = &UI{ Elements: []Element{ &TextButton{ ElementPosition: ElementPosition{ Camera: func() *gfx.Camera { var cam gfx.Camera cam.SetDefaults() cam.Position.Identity() cam.MarkDirty() return &cam }(), Sx: 1, Sy: 1, }, Center: true, Font: sprites.FontD3Streetism, Text: func() string { return "Enable Screen Reader Mode" }, VisText: func() string { return "Enable Screen Reader Mode (requires refresh)" }, Click: func() { s := internal.LoadSettings() s.ScreenReader = true s.LimitGPULevel = 1 s.DPIScale = 0.5 internal.SaveSettings(s) }, }, }, }
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct { ElementBase ElementPosition Sprite func() *sprites.Sprite Text func() string Click func() }
type ElementBase ¶
type ElementPosition ¶
type Label ¶
type Label struct { ElementBase ElementPosition Font sprites.FontID Center bool Text func() string VisText func() string }
type LeafElement ¶
type LeafElement interface { Element // contains filtered or unexported methods }
type Paragraph ¶
type Paragraph struct { ElementBase ElementPosition Sprite *sprites.Sprite Text func() string }
type TextButton ¶
type TextButton struct { ElementBase ElementPosition Font sprites.FontID Center bool Text func() string VisText func() string Click func() }
type Wrapper ¶
type Wrapper struct { ElementBase Elements []Element }
Click to show internal directories.
Click to hide internal directories.