updated structure

This commit is contained in:
2024-10-12 17:49:55 +02:00
parent d4f6c4104d
commit 039bc27999
9 changed files with 201 additions and 285 deletions
+2 -2
View File
@@ -21,6 +21,6 @@ func (t TextComponent) Render() string {
return t.Text
}
func Text(text string) *TextComponent {
return &TextComponent{Text: text}
func Text(param osui.Param, text string) *TextComponent {
return param.UseParam(&TextComponent{Text: text}).(*TextComponent)
}