a few more changes
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@ type TextComponent struct {
|
||||
Text string
|
||||
}
|
||||
|
||||
func (t *TextComponent) Update(key string) bool {
|
||||
func (t *TextComponent) Update(ctx osui.UpdateContext) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@ func (t TextComponent) Render() string {
|
||||
}
|
||||
|
||||
func Text(param osui.Param, text string) *TextComponent {
|
||||
param.SetDefaultBindings(map[string]func(string) bool{})
|
||||
param.SetDefaultBindings(map[string]string{})
|
||||
return param.UseParam(&TextComponent{Text: text}).(*TextComponent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user