gui folder

This commit is contained in:
Konstantin8105 2022-11-23 12:26:13 +03:00
parent fe6d2c0ed3
commit 7a467d5aae
4 changed files with 15 additions and 6 deletions

View file

@ -2,6 +2,10 @@ module example
go 1.19
require github.com/Konstantin8105/raylib-go/raylib v0.0.0-20221122153952-2f5d9114177b
require (
github.com/Konstantin8105/raylib-go/raygui v0.0.0-20221122151443-e8a384ed1346
github.com/Konstantin8105/raylib-go/raylib v0.0.0-20221122153952-2f5d9114177b
)
replace github.com/Konstantin8105/raylib-go/raylib => ../../../raylib
replace github.com/Konstantin8105/raylib-go/raygui => ../../../raygui

View file

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