PRD G1 asks for one component per file. Eight files held two or three; their eleven extra components move to files of their own, helpers stay where both sides use them, and an archtest now fails any file that holds two. PRD 4.4 and the request say an error always offers CONTINUE. ErrorState's button read RETRY; it now reads CONTINUE, under the CONTINUE? countdown, on the crash screen and the lost page alike.
24 lines
586 B
Go
24 lines
586 B
Go
package input
|
|
|
|
import (
|
|
"github.com/egoist/mygo/ui"
|
|
|
|
"git.zacharyzhang.com/ZacharyZhang-NY/8bitMyGoUI/pixel"
|
|
)
|
|
|
|
type IconButtonOptions struct {
|
|
Variant Variant
|
|
Size Size
|
|
Disabled bool
|
|
}
|
|
|
|
type IconButtonResult = ButtonResult
|
|
|
|
// IconButton is a square button named for assistive technology.
|
|
func IconButton(c *ui.Context, icon *pixel.Sprite, name string, o IconButtonOptions) IconButtonResult {
|
|
if name == "" {
|
|
panic("input: IconButton needs a name")
|
|
}
|
|
return Button(c, "", ButtonOptions{Variant: o.Variant, Size: o.Size, Icon: icon, Disabled: o.Disabled, Label: name})
|
|
}
|