mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-20 02:42:50 +01:00
keyboard
This commit is contained in:
48
sysgo/UI/keyboard.go
Normal file
48
sysgo/UI/keyboard.go
Normal file
@@ -0,0 +1,48 @@
|
||||
package UI
|
||||
|
||||
import (
|
||||
"github.com/cuu/gogame/color"
|
||||
)
|
||||
//sysgo/UI/keyboard_keys.layout
|
||||
type KeyboardIcon struct {
|
||||
IconItem
|
||||
Color *color.Color
|
||||
|
||||
Str string
|
||||
}
|
||||
|
||||
func NewKeyboardIcon() *KeyboardIcon {
|
||||
p := &KeyboardIcon{}
|
||||
|
||||
p.MyType = ICON_TYPES["NAV"]
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
type KeyboardSelector struct {
|
||||
PageSelector
|
||||
Parent *Keyboard
|
||||
}
|
||||
|
||||
|
||||
func NewKeyboardSelector() * KeyboardSelector {
|
||||
p := &KeyboardSelector{}
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
func (self *KeyboardSelector) Draw() {
|
||||
|
||||
}
|
||||
|
||||
type Keyboard {
|
||||
Page
|
||||
|
||||
SectionNumbers int
|
||||
SectionIndex int
|
||||
Icons map[string]UI.IconItemInterface
|
||||
|
||||
KeyboardLayoutFile string ///sysgo/UI/keyboard_keys.layout
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user