Added 'SetStyleColor' to make it simpler to set a color

This commit is contained in:
Oliver 'kfsone' Smith 2021-02-24 12:25:49 -08:00
parent 0e83add8be
commit c0b8c09edc

View file

@ -382,6 +382,11 @@ func SetStyleProperty(guiProperty Property, value int64) {
style[guiProperty] = value
}
// SetStyleColor - Set one style property to a color value
func SetStyleColor(guiProperty Property, value rl.Color) {
style[guiProperty] = int64(rl.ColorToInt(value))
}
// GetStyleProperty - Get one style property
func GetStyleProperty(guiProperty Property) int64 {
return style[int(guiProperty)]