gofmt
This commit is contained in:
parent
3e1b83e017
commit
dda13779be
16 changed files with 17 additions and 2 deletions
|
@ -9,7 +9,7 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
rl.InitWindow(800, 450, "raylib [core] example - generate random values")
|
rl.InitWindow(800, 450, "raylib [core] example - generate random values")
|
||||||
|
|
||||||
framesCounter := 0 // Variable used to count frames
|
framesCounter := 0 // Variable used to count frames
|
||||||
randValue := rl.GetRandomValue(-8, 5) // Get a random integer number between -8 and 5 (both included)
|
randValue := rl.GetRandomValue(-8, 5) // Get a random integer number between -8 and 5 (both included)
|
||||||
|
|
||||||
rl.SetTargetFPS(60)
|
rl.SetTargetFPS(60)
|
||||||
|
|
|
@ -2,6 +2,7 @@ package raygui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/gen2brain/raylib-go/raylib"
|
"github.com/gen2brain/raylib-go/raylib"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ func ComboBox(bounds rl.Rectangle, comboText []string, active int) int {
|
||||||
textWidth := rl.MeasureText(activeText, textHeight)
|
textWidth := rl.MeasureText(activeText, textHeight)
|
||||||
|
|
||||||
// Ensure box is large enough.
|
// Ensure box is large enough.
|
||||||
ConstrainRectangle(&bounds, textWidth, textWidth + GetStyle32(ToggleTextPadding), textHeight, textHeight + GetStyle32(ToggleTextPadding))
|
ConstrainRectangle(&bounds, textWidth, textWidth+GetStyle32(ToggleTextPadding), textHeight, textHeight+GetStyle32(ToggleTextPadding))
|
||||||
b := bounds.ToInt32()
|
b := bounds.ToInt32()
|
||||||
|
|
||||||
// Generate the worst-case sizing of the counter so we can avoid resizing it as the numbers go up/down.
|
// Generate the worst-case sizing of the counter so we can avoid resizing it as the numbers go up/down.
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build android
|
||||||
// +build android
|
// +build android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build linux && !drm && !rpi && !android
|
||||||
// +build linux,!drm,!rpi,!android
|
// +build linux,!drm,!rpi,!android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build linux && drm && !rpi && !android
|
||||||
// +build linux,drm,!rpi,!android
|
// +build linux,drm,!rpi,!android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build linux && rpi && !drm && !android
|
||||||
// +build linux,rpi,!drm,!android
|
// +build linux,rpi,!drm,!android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build windows
|
||||||
// +build windows
|
// +build windows
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build android
|
||||||
// +build android
|
// +build android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build !rpi && !drm && !android
|
||||||
// +build !rpi,!drm,!android
|
// +build !rpi,!drm,!android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build linux && drm && !rpi && !android
|
||||||
// +build linux,drm,!rpi,!android
|
// +build linux,drm,!rpi,!android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build linux && rpi && !drm && !android
|
||||||
// +build linux,rpi,!drm,!android
|
// +build linux,rpi,!drm,!android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build !android
|
||||||
// +build !android
|
// +build !android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build !android && !windows
|
||||||
// +build !android,!windows
|
// +build !android,!windows
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build android
|
||||||
// +build android
|
// +build android
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build windows
|
||||||
// +build windows
|
// +build windows
|
||||||
|
|
||||||
package rl
|
package rl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue