structure change

This commit is contained in:
2024-09-24 07:24:53 +02:00
parent 7546933e81
commit 3529f3dcc5
4 changed files with 128 additions and 175 deletions
+4 -8
View File
@@ -1,13 +1,9 @@
package ui
import (
"github.com/orus-dev/osui"
)
func InputBox(max_size uint) *osui.ComponentWrapper {
return osui.NewComponent(ComponentInputBox{max_size: max_size})
func Text(text string) *TextComponent {
return &TextComponent{Text: text}
}
func Text(text string) *osui.ComponentWrapper {
return osui.NewComponent(ComponentText{Text: text})
func InputBox(max_size uint) *InputBoxComponent {
return &InputBoxComponent{max_size: max_size}
}