This commit is contained in:
Konstantin8105 2022-11-22 18:29:01 +03:00
parent 6e21bd54ae
commit 05e7c1f5e7
6 changed files with 10 additions and 9 deletions

View file

@ -1,3 +1,5 @@
module example
go 1.19
require github.com/Konstantin8105/raylib-go/raygui v0.0.0-20221122151443-e8a384ed1346 // indirect

View file

@ -4,7 +4,6 @@ import (
"fmt"
rl "github.com/Konstantin8105/raylib-go/raylib"
gui "github.com/Konstantin8105/raylib-go/raygui"
)
func main() {
@ -19,7 +18,7 @@ func main() {
rl.ClearBackground(rl.Black)
button = gui.Button(rl.NewRectangle(50, 150, 100, 40), "Click")
button = rl.Button(rl.NewRectangle(50, 150, 100, 40), "Click")
if button {
fmt.Println("Clicked on button")
}