Update/add Go functions

This commit is contained in:
Milan Nikolic 2021-11-11 16:34:15 +01:00
parent 607adace28
commit 2013bc4628
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
17 changed files with 268 additions and 211 deletions

View file

@ -5,10 +5,11 @@ package raygui
import (
"bufio"
"fmt"
rl "github.com/gen2brain/raylib-go/raylib"
"io/ioutil"
"strconv"
"strings"
rl "github.com/gen2brain/raylib-go/raylib"
)
// Property - GUI property
@ -394,17 +395,17 @@ func GetStyleProperty(guiProperty Property) int64 {
// BackgroundColor will return the current background color
func BackgroundColor() rl.Color {
return rl.GetColor(int32(style[GlobalBackgroundColor]))
return rl.GetColor(uint(style[GlobalBackgroundColor]))
}
// LinesColor will return the current color for lines
func LinesColor() rl.Color {
return rl.GetColor(int32(style[GlobalLinesColor]))
return rl.GetColor(uint(style[GlobalLinesColor]))
}
// TextColor will return the current color for normal state
func TextColor() rl.Color {
return rl.GetColor(int32(style[GlobalTextColor]))
return rl.GetColor(uint(style[GlobalTextColor]))
}
// GetStyle32 will return the int32 for a given property of the current style
@ -414,5 +415,5 @@ func GetStyle32(property Property) int32 {
// GetPropColor will return the Color value for a given property of the current style
func GetStyleColor(property Property) rl.Color {
return rl.GetColor(int32(style[property]))
return rl.GetColor(uint(style[property]))
}