updated structure

This commit is contained in:
2024-10-12 22:36:09 +02:00
parent 039bc27999
commit 8ea250c1b1
10 changed files with 85 additions and 155 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ type TextComponent struct {
Text string
}
func (t *TextComponent) Update(string) bool {
func (t *TextComponent) Update(key string) bool {
return false
}
@@ -22,5 +22,6 @@ func (t TextComponent) Render() string {
}
func Text(param osui.Param, text string) *TextComponent {
param.SetDefaultBindings(map[string]func(string) bool{})
return param.UseParam(&TextComponent{Text: text}).(*TextComponent)
}