diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f7bbd8d..26e9345 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,11 +9,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install package run: | sudo apt-get update -y; sudo apt-get -y install libxi-dev libxinerama-dev libxcursor-dev libxrandr-dev libgl1-mesa-dev @@ -41,7 +41,11 @@ jobs: working-directory: raylib test-examples: - runs-on: ubuntu-latest + strategy: + matrix: + go-version: [1.19.x] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} steps: - name: Install Go uses: actions/setup-go@v3 diff --git a/examples/_easings/easings/easings.gif b/examples/easings/easings/easings.gif similarity index 100% rename from examples/_easings/easings/easings.gif rename to examples/easings/easings/easings.gif diff --git a/examples/_easings/easings/main.go b/examples/easings/easings/main.go similarity index 100% rename from examples/_easings/easings/main.go rename to examples/easings/easings/main.go diff --git a/examples/go.mod b/examples/go.mod index d16f5e1..e169bcf 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -3,8 +3,10 @@ module examples go 1.19 require ( - github.com/gen2brain/raylib-go/physics v0.0.0-20230413172235-a62b332ffc4a - github.com/gen2brain/raylib-go/raylib v0.0.0-20230621091943-a6644da2433f + github.com/gen2brain/raylib-go/easings v0.0.0-20231021203613-2d673bb5f4b3 + github.com/gen2brain/raylib-go/physics v0.0.0-20231021203613-2d673bb5f4b3 + github.com/gen2brain/raylib-go/raygui v0.0.0-20231021203613-2d673bb5f4b3 + github.com/gen2brain/raylib-go/raylib v0.0.0-20231021203613-2d673bb5f4b3 github.com/jakecoffman/cp v1.2.1 github.com/neguse/go-box2d-lite v0.0.0-20170921151050-5d8ed9b7272b ) diff --git a/examples/go.sum b/examples/go.sum index a80ea09..af9d48b 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -1,7 +1,11 @@ -github.com/gen2brain/raylib-go/physics v0.0.0-20230413172235-a62b332ffc4a h1:YiVRz76RzAgEl4UDxXK51PZp4a46ocSF3MN5RPDiKs8= -github.com/gen2brain/raylib-go/physics v0.0.0-20230413172235-a62b332ffc4a/go.mod h1:Vf/TIMnolPj/pEnPQObb/cL481gg/La8CgwibfA9gx4= -github.com/gen2brain/raylib-go/raylib v0.0.0-20230621091943-a6644da2433f h1:erUJFP3XPbdiOAxcixPObRpkGMcMyGo5PzG2890hZSo= -github.com/gen2brain/raylib-go/raylib v0.0.0-20230621091943-a6644da2433f/go.mod h1:AwtGA3aTtYdezNxEVbfchaLw/z+CuRDh2Mlxy0FbBro= +github.com/gen2brain/raylib-go/easings v0.0.0-20231021203613-2d673bb5f4b3 h1:X96BFLT5c40DnZM8RKlyE6QC37IreaZbA/+ww6JCm4g= +github.com/gen2brain/raylib-go/easings v0.0.0-20231021203613-2d673bb5f4b3/go.mod h1:UuXithI7f7GZ22PJtaZDXHzWzdXx0OCyuxaakj9gt9k= +github.com/gen2brain/raylib-go/physics v0.0.0-20231021203613-2d673bb5f4b3 h1:TYu6QaR/DPgFgoluAUUj5Iftn76bjXCmCTYAlt5UHaU= +github.com/gen2brain/raylib-go/physics v0.0.0-20231021203613-2d673bb5f4b3/go.mod h1:ViQH1zqfv7oSbhxKUWDV5JgnYHHkf/DGQ9HrVNEPTd0= +github.com/gen2brain/raylib-go/raygui v0.0.0-20231021203613-2d673bb5f4b3 h1:LYkdSAU1c6r4PZaYPGb9HC5ph+ndBErukpGwQCvxGc4= +github.com/gen2brain/raylib-go/raygui v0.0.0-20231021203613-2d673bb5f4b3/go.mod h1:uYchFLZ2wwfI+gRV8i0qHk6DKk5ZL/6VNrY/Nmzw5Ps= +github.com/gen2brain/raylib-go/raylib v0.0.0-20231021203613-2d673bb5f4b3 h1:wbY2Fut4NYPoeVDidD+WthGT1g+Ou9+Mywy5TYtrJt0= +github.com/gen2brain/raylib-go/raylib v0.0.0-20231021203613-2d673bb5f4b3/go.mod h1:AwtGA3aTtYdezNxEVbfchaLw/z+CuRDh2Mlxy0FbBro= github.com/jakecoffman/cp v1.2.1 h1:zkhc2Gpo9l4NLUZfeG3j33+3bQD7MkqPa+n5PdX+5mI= github.com/jakecoffman/cp v1.2.1/go.mod h1:JjY/Fp6d8E1CHnu74gWNnU0+b9VzEdUVPoJxg2PsTQg= github.com/neguse/go-box2d-lite v0.0.0-20170921151050-5d8ed9b7272b h1:+67TGbwfgeB5o03Rx+ZBW44zAQ+wUujcwdRA0p9CbJI= diff --git a/examples/_gui/basic_controls/cyber.png b/examples/gui/basic_controls/cyber.png similarity index 100% rename from examples/_gui/basic_controls/cyber.png rename to examples/gui/basic_controls/cyber.png diff --git a/examples/_gui/basic_controls/lavanda.png b/examples/gui/basic_controls/lavanda.png similarity index 100% rename from examples/_gui/basic_controls/lavanda.png rename to examples/gui/basic_controls/lavanda.png diff --git a/examples/_gui/basic_controls/main.go b/examples/gui/basic_controls/main.go similarity index 100% rename from examples/_gui/basic_controls/main.go rename to examples/gui/basic_controls/main.go diff --git a/examples/_gui/basic_controls/styles/README.md b/examples/gui/basic_controls/styles/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/README.md rename to examples/gui/basic_controls/styles/README.md diff --git a/examples/_gui/basic_controls/styles/ashes/README.md b/examples/gui/basic_controls/styles/ashes/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/ashes/README.md rename to examples/gui/basic_controls/styles/ashes/README.md diff --git a/examples/_gui/basic_controls/styles/ashes/ashes.h b/examples/gui/basic_controls/styles/ashes/ashes.h similarity index 100% rename from examples/_gui/basic_controls/styles/ashes/ashes.h rename to examples/gui/basic_controls/styles/ashes/ashes.h diff --git a/examples/_gui/basic_controls/styles/ashes/ashes.rgs b/examples/gui/basic_controls/styles/ashes/ashes.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/ashes/ashes.rgs rename to examples/gui/basic_controls/styles/ashes/ashes.rgs diff --git a/examples/_gui/basic_controls/styles/ashes/ashes.txt.rgs b/examples/gui/basic_controls/styles/ashes/ashes.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/ashes/ashes.txt.rgs rename to examples/gui/basic_controls/styles/ashes/ashes.txt.rgs diff --git a/examples/_gui/basic_controls/styles/ashes/font_readme.txt b/examples/gui/basic_controls/styles/ashes/font_readme.txt similarity index 100% rename from examples/_gui/basic_controls/styles/ashes/font_readme.txt rename to examples/gui/basic_controls/styles/ashes/font_readme.txt diff --git a/examples/_gui/basic_controls/styles/ashes/screenshot.png b/examples/gui/basic_controls/styles/ashes/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/ashes/screenshot.png rename to examples/gui/basic_controls/styles/ashes/screenshot.png diff --git a/examples/_gui/basic_controls/styles/ashes/style_table.png b/examples/gui/basic_controls/styles/ashes/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/ashes/style_table.png rename to examples/gui/basic_controls/styles/ashes/style_table.png diff --git a/examples/_gui/basic_controls/styles/ashes/v5loxical.ttf b/examples/gui/basic_controls/styles/ashes/v5loxical.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/ashes/v5loxical.ttf rename to examples/gui/basic_controls/styles/ashes/v5loxical.ttf diff --git a/examples/_gui/basic_controls/styles/bluish/README.md b/examples/gui/basic_controls/styles/bluish/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/bluish/README.md rename to examples/gui/basic_controls/styles/bluish/README.md diff --git a/examples/_gui/basic_controls/styles/bluish/bluish.h b/examples/gui/basic_controls/styles/bluish/bluish.h similarity index 100% rename from examples/_gui/basic_controls/styles/bluish/bluish.h rename to examples/gui/basic_controls/styles/bluish/bluish.h diff --git a/examples/_gui/basic_controls/styles/bluish/bluish.rgs b/examples/gui/basic_controls/styles/bluish/bluish.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/bluish/bluish.rgs rename to examples/gui/basic_controls/styles/bluish/bluish.rgs diff --git a/examples/_gui/basic_controls/styles/bluish/bluish.txt.rgs b/examples/gui/basic_controls/styles/bluish/bluish.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/bluish/bluish.txt.rgs rename to examples/gui/basic_controls/styles/bluish/bluish.txt.rgs diff --git a/examples/_gui/basic_controls/styles/bluish/font_readme.txt b/examples/gui/basic_controls/styles/bluish/font_readme.txt similarity index 100% rename from examples/_gui/basic_controls/styles/bluish/font_readme.txt rename to examples/gui/basic_controls/styles/bluish/font_readme.txt diff --git a/examples/_gui/basic_controls/styles/bluish/homespun.ttf b/examples/gui/basic_controls/styles/bluish/homespun.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/bluish/homespun.ttf rename to examples/gui/basic_controls/styles/bluish/homespun.ttf diff --git a/examples/_gui/basic_controls/styles/bluish/screenshot.png b/examples/gui/basic_controls/styles/bluish/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/bluish/screenshot.png rename to examples/gui/basic_controls/styles/bluish/screenshot.png diff --git a/examples/_gui/basic_controls/styles/bluish/style_table.png b/examples/gui/basic_controls/styles/bluish/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/bluish/style_table.png rename to examples/gui/basic_controls/styles/bluish/style_table.png diff --git a/examples/_gui/basic_controls/styles/candy/README.md b/examples/gui/basic_controls/styles/candy/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/candy/README.md rename to examples/gui/basic_controls/styles/candy/README.md diff --git a/examples/_gui/basic_controls/styles/candy/candy.h b/examples/gui/basic_controls/styles/candy/candy.h similarity index 100% rename from examples/_gui/basic_controls/styles/candy/candy.h rename to examples/gui/basic_controls/styles/candy/candy.h diff --git a/examples/_gui/basic_controls/styles/candy/candy.rgs b/examples/gui/basic_controls/styles/candy/candy.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/candy/candy.rgs rename to examples/gui/basic_controls/styles/candy/candy.rgs diff --git a/examples/_gui/basic_controls/styles/candy/candy.txt.rgs b/examples/gui/basic_controls/styles/candy/candy.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/candy/candy.txt.rgs rename to examples/gui/basic_controls/styles/candy/candy.txt.rgs diff --git a/examples/_gui/basic_controls/styles/candy/font_readme.txt b/examples/gui/basic_controls/styles/candy/font_readme.txt similarity index 100% rename from examples/_gui/basic_controls/styles/candy/font_readme.txt rename to examples/gui/basic_controls/styles/candy/font_readme.txt diff --git a/examples/_gui/basic_controls/styles/candy/screenshot.png b/examples/gui/basic_controls/styles/candy/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/candy/screenshot.png rename to examples/gui/basic_controls/styles/candy/screenshot.png diff --git a/examples/_gui/basic_controls/styles/candy/style_table.png b/examples/gui/basic_controls/styles/candy/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/candy/style_table.png rename to examples/gui/basic_controls/styles/candy/style_table.png diff --git a/examples/_gui/basic_controls/styles/candy/v5easter.ttf b/examples/gui/basic_controls/styles/candy/v5easter.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/candy/v5easter.ttf rename to examples/gui/basic_controls/styles/candy/v5easter.ttf diff --git a/examples/_gui/basic_controls/styles/cherry/README.md b/examples/gui/basic_controls/styles/cherry/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/cherry/README.md rename to examples/gui/basic_controls/styles/cherry/README.md diff --git a/examples/_gui/basic_controls/styles/cherry/Westington.ttf b/examples/gui/basic_controls/styles/cherry/Westington.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/cherry/Westington.ttf rename to examples/gui/basic_controls/styles/cherry/Westington.ttf diff --git a/examples/_gui/basic_controls/styles/cherry/cherry.h b/examples/gui/basic_controls/styles/cherry/cherry.h similarity index 100% rename from examples/_gui/basic_controls/styles/cherry/cherry.h rename to examples/gui/basic_controls/styles/cherry/cherry.h diff --git a/examples/_gui/basic_controls/styles/cherry/cherry.rgs b/examples/gui/basic_controls/styles/cherry/cherry.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/cherry/cherry.rgs rename to examples/gui/basic_controls/styles/cherry/cherry.rgs diff --git a/examples/_gui/basic_controls/styles/cherry/cherry.txt.rgs b/examples/gui/basic_controls/styles/cherry/cherry.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/cherry/cherry.txt.rgs rename to examples/gui/basic_controls/styles/cherry/cherry.txt.rgs diff --git a/examples/_gui/basic_controls/styles/cherry/screenshot.png b/examples/gui/basic_controls/styles/cherry/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/cherry/screenshot.png rename to examples/gui/basic_controls/styles/cherry/screenshot.png diff --git a/examples/_gui/basic_controls/styles/cherry/style_table.png b/examples/gui/basic_controls/styles/cherry/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/cherry/style_table.png rename to examples/gui/basic_controls/styles/cherry/style_table.png diff --git a/examples/_gui/basic_controls/styles/cyber/Kyrou 7 Wide.ttf b/examples/gui/basic_controls/styles/cyber/Kyrou 7 Wide.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/cyber/Kyrou 7 Wide.ttf rename to examples/gui/basic_controls/styles/cyber/Kyrou 7 Wide.ttf diff --git a/examples/_gui/basic_controls/styles/cyber/README.md b/examples/gui/basic_controls/styles/cyber/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/cyber/README.md rename to examples/gui/basic_controls/styles/cyber/README.md diff --git a/examples/_gui/basic_controls/styles/cyber/cyber.h b/examples/gui/basic_controls/styles/cyber/cyber.h similarity index 100% rename from examples/_gui/basic_controls/styles/cyber/cyber.h rename to examples/gui/basic_controls/styles/cyber/cyber.h diff --git a/examples/_gui/basic_controls/styles/cyber/cyber.rgs b/examples/gui/basic_controls/styles/cyber/cyber.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/cyber/cyber.rgs rename to examples/gui/basic_controls/styles/cyber/cyber.rgs diff --git a/examples/_gui/basic_controls/styles/cyber/cyber.txt.rgs b/examples/gui/basic_controls/styles/cyber/cyber.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/cyber/cyber.txt.rgs rename to examples/gui/basic_controls/styles/cyber/cyber.txt.rgs diff --git a/examples/_gui/basic_controls/styles/cyber/font_readme.txt b/examples/gui/basic_controls/styles/cyber/font_readme.txt similarity index 100% rename from examples/_gui/basic_controls/styles/cyber/font_readme.txt rename to examples/gui/basic_controls/styles/cyber/font_readme.txt diff --git a/examples/_gui/basic_controls/styles/cyber/screenshot.png b/examples/gui/basic_controls/styles/cyber/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/cyber/screenshot.png rename to examples/gui/basic_controls/styles/cyber/screenshot.png diff --git a/examples/_gui/basic_controls/styles/cyber/style_table.png b/examples/gui/basic_controls/styles/cyber/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/cyber/style_table.png rename to examples/gui/basic_controls/styles/cyber/style_table.png diff --git a/examples/_gui/basic_controls/styles/dark/PixelOperator.ttf b/examples/gui/basic_controls/styles/dark/PixelOperator.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/dark/PixelOperator.ttf rename to examples/gui/basic_controls/styles/dark/PixelOperator.ttf diff --git a/examples/_gui/basic_controls/styles/dark/README.md b/examples/gui/basic_controls/styles/dark/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/dark/README.md rename to examples/gui/basic_controls/styles/dark/README.md diff --git a/examples/_gui/basic_controls/styles/dark/dark.h b/examples/gui/basic_controls/styles/dark/dark.h similarity index 100% rename from examples/_gui/basic_controls/styles/dark/dark.h rename to examples/gui/basic_controls/styles/dark/dark.h diff --git a/examples/_gui/basic_controls/styles/dark/dark.rgs b/examples/gui/basic_controls/styles/dark/dark.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/dark/dark.rgs rename to examples/gui/basic_controls/styles/dark/dark.rgs diff --git a/examples/_gui/basic_controls/styles/dark/font_LICENSE.txt b/examples/gui/basic_controls/styles/dark/font_LICENSE.txt similarity index 100% rename from examples/_gui/basic_controls/styles/dark/font_LICENSE.txt rename to examples/gui/basic_controls/styles/dark/font_LICENSE.txt diff --git a/examples/_gui/basic_controls/styles/dark/screenshot.png b/examples/gui/basic_controls/styles/dark/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/dark/screenshot.png rename to examples/gui/basic_controls/styles/dark/screenshot.png diff --git a/examples/_gui/basic_controls/styles/dark/style_table.png b/examples/gui/basic_controls/styles/dark/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/dark/style_table.png rename to examples/gui/basic_controls/styles/dark/style_table.png diff --git a/examples/_gui/basic_controls/styles/default/README.md b/examples/gui/basic_controls/styles/default/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/default/README.md rename to examples/gui/basic_controls/styles/default/README.md diff --git a/examples/_gui/basic_controls/styles/default/default.txt.rgs b/examples/gui/basic_controls/styles/default/default.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/default/default.txt.rgs rename to examples/gui/basic_controls/styles/default/default.txt.rgs diff --git a/examples/_gui/basic_controls/styles/default/screenshot.png b/examples/gui/basic_controls/styles/default/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/default/screenshot.png rename to examples/gui/basic_controls/styles/default/screenshot.png diff --git a/examples/_gui/basic_controls/styles/default/style_table.png b/examples/gui/basic_controls/styles/default/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/default/style_table.png rename to examples/gui/basic_controls/styles/default/style_table.png diff --git a/examples/_gui/basic_controls/styles/enefete/GenericMobileSystemNuevo.ttf b/examples/gui/basic_controls/styles/enefete/GenericMobileSystemNuevo.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/enefete/GenericMobileSystemNuevo.ttf rename to examples/gui/basic_controls/styles/enefete/GenericMobileSystemNuevo.ttf diff --git a/examples/_gui/basic_controls/styles/enefete/README.md b/examples/gui/basic_controls/styles/enefete/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/enefete/README.md rename to examples/gui/basic_controls/styles/enefete/README.md diff --git a/examples/_gui/basic_controls/styles/enefete/enefete.h b/examples/gui/basic_controls/styles/enefete/enefete.h similarity index 100% rename from examples/_gui/basic_controls/styles/enefete/enefete.h rename to examples/gui/basic_controls/styles/enefete/enefete.h diff --git a/examples/_gui/basic_controls/styles/enefete/enefete.rgs b/examples/gui/basic_controls/styles/enefete/enefete.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/enefete/enefete.rgs rename to examples/gui/basic_controls/styles/enefete/enefete.rgs diff --git a/examples/_gui/basic_controls/styles/enefete/font_LICENSE.txt b/examples/gui/basic_controls/styles/enefete/font_LICENSE.txt similarity index 100% rename from examples/_gui/basic_controls/styles/enefete/font_LICENSE.txt rename to examples/gui/basic_controls/styles/enefete/font_LICENSE.txt diff --git a/examples/_gui/basic_controls/styles/enefete/screenshot.png b/examples/gui/basic_controls/styles/enefete/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/enefete/screenshot.png rename to examples/gui/basic_controls/styles/enefete/screenshot.png diff --git a/examples/_gui/basic_controls/styles/enefete/style_table.png b/examples/gui/basic_controls/styles/enefete/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/enefete/style_table.png rename to examples/gui/basic_controls/styles/enefete/style_table.png diff --git a/examples/_gui/basic_controls/styles/jungle/Pixel Intv.otf b/examples/gui/basic_controls/styles/jungle/Pixel Intv.otf similarity index 100% rename from examples/_gui/basic_controls/styles/jungle/Pixel Intv.otf rename to examples/gui/basic_controls/styles/jungle/Pixel Intv.otf diff --git a/examples/_gui/basic_controls/styles/jungle/README.md b/examples/gui/basic_controls/styles/jungle/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/jungle/README.md rename to examples/gui/basic_controls/styles/jungle/README.md diff --git a/examples/_gui/basic_controls/styles/jungle/font_readme.txt b/examples/gui/basic_controls/styles/jungle/font_readme.txt similarity index 100% rename from examples/_gui/basic_controls/styles/jungle/font_readme.txt rename to examples/gui/basic_controls/styles/jungle/font_readme.txt diff --git a/examples/_gui/basic_controls/styles/jungle/jungle.h b/examples/gui/basic_controls/styles/jungle/jungle.h similarity index 100% rename from examples/_gui/basic_controls/styles/jungle/jungle.h rename to examples/gui/basic_controls/styles/jungle/jungle.h diff --git a/examples/_gui/basic_controls/styles/jungle/jungle.rgs b/examples/gui/basic_controls/styles/jungle/jungle.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/jungle/jungle.rgs rename to examples/gui/basic_controls/styles/jungle/jungle.rgs diff --git a/examples/_gui/basic_controls/styles/jungle/jungle.txt.rgs b/examples/gui/basic_controls/styles/jungle/jungle.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/jungle/jungle.txt.rgs rename to examples/gui/basic_controls/styles/jungle/jungle.txt.rgs diff --git a/examples/_gui/basic_controls/styles/jungle/screenshot.png b/examples/gui/basic_controls/styles/jungle/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/jungle/screenshot.png rename to examples/gui/basic_controls/styles/jungle/screenshot.png diff --git a/examples/_gui/basic_controls/styles/jungle/style_table.png b/examples/gui/basic_controls/styles/jungle/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/jungle/style_table.png rename to examples/gui/basic_controls/styles/jungle/style_table.png diff --git a/examples/_gui/basic_controls/styles/lavanda/Cartridge.ttf b/examples/gui/basic_controls/styles/lavanda/Cartridge.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/lavanda/Cartridge.ttf rename to examples/gui/basic_controls/styles/lavanda/Cartridge.ttf diff --git a/examples/_gui/basic_controls/styles/lavanda/README.md b/examples/gui/basic_controls/styles/lavanda/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/lavanda/README.md rename to examples/gui/basic_controls/styles/lavanda/README.md diff --git a/examples/_gui/basic_controls/styles/lavanda/font_readme.txt b/examples/gui/basic_controls/styles/lavanda/font_readme.txt similarity index 100% rename from examples/_gui/basic_controls/styles/lavanda/font_readme.txt rename to examples/gui/basic_controls/styles/lavanda/font_readme.txt diff --git a/examples/_gui/basic_controls/styles/lavanda/lavanda.h b/examples/gui/basic_controls/styles/lavanda/lavanda.h similarity index 100% rename from examples/_gui/basic_controls/styles/lavanda/lavanda.h rename to examples/gui/basic_controls/styles/lavanda/lavanda.h diff --git a/examples/_gui/basic_controls/styles/lavanda/lavanda.rgs b/examples/gui/basic_controls/styles/lavanda/lavanda.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/lavanda/lavanda.rgs rename to examples/gui/basic_controls/styles/lavanda/lavanda.rgs diff --git a/examples/_gui/basic_controls/styles/lavanda/lavanda.txt.rgs b/examples/gui/basic_controls/styles/lavanda/lavanda.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/lavanda/lavanda.txt.rgs rename to examples/gui/basic_controls/styles/lavanda/lavanda.txt.rgs diff --git a/examples/_gui/basic_controls/styles/lavanda/screenshot.png b/examples/gui/basic_controls/styles/lavanda/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/lavanda/screenshot.png rename to examples/gui/basic_controls/styles/lavanda/screenshot.png diff --git a/examples/_gui/basic_controls/styles/lavanda/style_table.png b/examples/gui/basic_controls/styles/lavanda/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/lavanda/style_table.png rename to examples/gui/basic_controls/styles/lavanda/style_table.png diff --git a/examples/_gui/basic_controls/styles/sunny/GenericMobileSystemNuevo.ttf b/examples/gui/basic_controls/styles/sunny/GenericMobileSystemNuevo.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/sunny/GenericMobileSystemNuevo.ttf rename to examples/gui/basic_controls/styles/sunny/GenericMobileSystemNuevo.ttf diff --git a/examples/_gui/basic_controls/styles/sunny/README.md b/examples/gui/basic_controls/styles/sunny/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/sunny/README.md rename to examples/gui/basic_controls/styles/sunny/README.md diff --git a/examples/_gui/basic_controls/styles/sunny/font_LICENSE.txt b/examples/gui/basic_controls/styles/sunny/font_LICENSE.txt similarity index 100% rename from examples/_gui/basic_controls/styles/sunny/font_LICENSE.txt rename to examples/gui/basic_controls/styles/sunny/font_LICENSE.txt diff --git a/examples/_gui/basic_controls/styles/sunny/screenshot.png b/examples/gui/basic_controls/styles/sunny/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/sunny/screenshot.png rename to examples/gui/basic_controls/styles/sunny/screenshot.png diff --git a/examples/_gui/basic_controls/styles/sunny/style_table.png b/examples/gui/basic_controls/styles/sunny/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/sunny/style_table.png rename to examples/gui/basic_controls/styles/sunny/style_table.png diff --git a/examples/_gui/basic_controls/styles/sunny/sunny.h b/examples/gui/basic_controls/styles/sunny/sunny.h similarity index 100% rename from examples/_gui/basic_controls/styles/sunny/sunny.h rename to examples/gui/basic_controls/styles/sunny/sunny.h diff --git a/examples/_gui/basic_controls/styles/sunny/sunny.rgs b/examples/gui/basic_controls/styles/sunny/sunny.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/sunny/sunny.rgs rename to examples/gui/basic_controls/styles/sunny/sunny.rgs diff --git a/examples/_gui/basic_controls/styles/terminal/Mecha.ttf b/examples/gui/basic_controls/styles/terminal/Mecha.ttf similarity index 100% rename from examples/_gui/basic_controls/styles/terminal/Mecha.ttf rename to examples/gui/basic_controls/styles/terminal/Mecha.ttf diff --git a/examples/_gui/basic_controls/styles/terminal/README.md b/examples/gui/basic_controls/styles/terminal/README.md similarity index 100% rename from examples/_gui/basic_controls/styles/terminal/README.md rename to examples/gui/basic_controls/styles/terminal/README.md diff --git a/examples/_gui/basic_controls/styles/terminal/screenshot.png b/examples/gui/basic_controls/styles/terminal/screenshot.png similarity index 100% rename from examples/_gui/basic_controls/styles/terminal/screenshot.png rename to examples/gui/basic_controls/styles/terminal/screenshot.png diff --git a/examples/_gui/basic_controls/styles/terminal/style_table.png b/examples/gui/basic_controls/styles/terminal/style_table.png similarity index 100% rename from examples/_gui/basic_controls/styles/terminal/style_table.png rename to examples/gui/basic_controls/styles/terminal/style_table.png diff --git a/examples/_gui/basic_controls/styles/terminal/terminal.h b/examples/gui/basic_controls/styles/terminal/terminal.h similarity index 100% rename from examples/_gui/basic_controls/styles/terminal/terminal.h rename to examples/gui/basic_controls/styles/terminal/terminal.h diff --git a/examples/_gui/basic_controls/styles/terminal/terminal.rgs b/examples/gui/basic_controls/styles/terminal/terminal.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/terminal/terminal.rgs rename to examples/gui/basic_controls/styles/terminal/terminal.rgs diff --git a/examples/_gui/basic_controls/styles/terminal/terminal.txt.rgs b/examples/gui/basic_controls/styles/terminal/terminal.txt.rgs similarity index 100% rename from examples/_gui/basic_controls/styles/terminal/terminal.txt.rgs rename to examples/gui/basic_controls/styles/terminal/terminal.txt.rgs diff --git a/examples/_gui/button/main.go b/examples/gui/button/main.go similarity index 100% rename from examples/_gui/button/main.go rename to examples/gui/button/main.go diff --git a/examples/_gui/controls_test_suite/controls_test_suite.go b/examples/gui/controls_test_suite/controls_test_suite.go similarity index 98% rename from examples/_gui/controls_test_suite/controls_test_suite.go rename to examples/gui/controls_test_suite/controls_test_suite.go index 2f7c6f4..237cce9 100644 --- a/examples/_gui/controls_test_suite/controls_test_suite.go +++ b/examples/gui/controls_test_suite/controls_test_suite.go @@ -172,7 +172,7 @@ func main() { if gui.ValueBox(rl.Rectangle{25, 175, 125, 30}, "", &valueBox002Value, 0, 100, valueBoxEditMode) { valueBoxEditMode = !valueBoxEditMode } - gui.SetStyle(gui.TEXTBOX, gui.TEXT_ALIGNMENT, gui.TEXT_ALIGN_LEFT) + gui.SetStyle(gui.TEXTBOX, gui.TEXT_ALIGNMENT, int64(gui.TEXT_ALIGN_LEFT)) if gui.TextBox(rl.Rectangle{25, 215, 125, 30}, &textBoxText, 64, textBoxEditMode) { textBoxEditMode = !textBoxEditMode } @@ -203,7 +203,7 @@ func main() { comboBoxActive = gui.ComboBox(rl.Rectangle{25, 470, 125, 30}, "ONE;TWO;THREE;FOUR", comboBoxActive) // NOTE: gui.DropdownBox must draw after any other control that can be covered on unfolding - gui.SetStyle(gui.DROPDOWNBOX, gui.TEXT_ALIGNMENT, gui.TEXT_ALIGN_LEFT) + gui.SetStyle(gui.DROPDOWNBOX, gui.TEXT_ALIGNMENT, int64(gui.TEXT_ALIGN_LEFT)) if gui.DropdownBox(rl.Rectangle{25, 65, 125, 30}, "#01#ONE;#02#TWO;#03#THREE;#04#FOUR", &dropdownBox001Active, dropDown001EditMode) { dropDown001EditMode = !dropDown001EditMode } diff --git a/examples/_gui/controls_test_suite/controls_test_suite.png b/examples/gui/controls_test_suite/controls_test_suite.png similarity index 100% rename from examples/_gui/controls_test_suite/controls_test_suite.png rename to examples/gui/controls_test_suite/controls_test_suite.png diff --git a/examples/_gui/portable_window/portable_window.go b/examples/gui/portable_window/portable_window.go similarity index 100% rename from examples/_gui/portable_window/portable_window.go rename to examples/gui/portable_window/portable_window.go diff --git a/examples/_gui/portable_window/portable_window.png b/examples/gui/portable_window/portable_window.png similarity index 100% rename from examples/_gui/portable_window/portable_window.png rename to examples/gui/portable_window/portable_window.png diff --git a/examples/_gui/scroll_panel/scroll_panel.go b/examples/gui/scroll_panel/scroll_panel.go similarity index 82% rename from examples/_gui/scroll_panel/scroll_panel.go rename to examples/gui/scroll_panel/scroll_panel.go index d033bf8..53fcb57 100644 --- a/examples/_gui/scroll_panel/scroll_panel.go +++ b/examples/gui/scroll_panel/scroll_panel.go @@ -125,33 +125,33 @@ func DrawStyleEditControls() { var style int32 - style = gui.GetStyle(gui.SCROLLBAR, gui.BORDER_WIDTH) + style = int32(gui.GetStyle(gui.SCROLLBAR, gui.BORDER_WIDTH)) gui.Label(rl.Rectangle{555, 195, 110, 10}, "BORDER_WIDTH") gui.Spinner(rl.Rectangle{670, 190, 90, 20}, "", &style, 0, 6, false) - gui.SetStyle(gui.SCROLLBAR, gui.BORDER_WIDTH, style) + gui.SetStyle(gui.SCROLLBAR, gui.BORDER_WIDTH, int64(style)) - style = gui.GetStyle(gui.SCROLLBAR, gui.ARROWS_SIZE) + style = int32(gui.GetStyle(gui.SCROLLBAR, gui.ARROWS_SIZE)) gui.Label(rl.Rectangle{555, 220, 110, 10}, "ARROWS_SIZE") gui.Spinner(rl.Rectangle{670, 215, 90, 20}, "", &style, 4, 14, false) - gui.SetStyle(gui.SCROLLBAR, gui.ARROWS_SIZE, style) + gui.SetStyle(gui.SCROLLBAR, gui.ARROWS_SIZE, int64(style)) - style = gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING) + style = int32(gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING)) gui.Label(rl.Rectangle{555, 245, 110, 10}, "SLIDER_PADDING") gui.Spinner(rl.Rectangle{670, 240, 90, 20}, "", &style, 0, 14, false) - gui.SetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING, style) + gui.SetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING, int64(style)) - style = boolToint32(gui.CheckBox(rl.Rectangle{565, 280, 20, 20}, "ARROWS_VISIBLE", int32Tobool(gui.GetStyle(gui.SCROLLBAR, gui.ARROWS_VISIBLE)))) - gui.SetStyle(gui.SCROLLBAR, gui.ARROWS_VISIBLE, style) + style = boolToint32(gui.CheckBox(rl.Rectangle{565, 280, 20, 20}, "ARROWS_VISIBLE", int32Tobool(int32(gui.GetStyle(gui.SCROLLBAR, gui.ARROWS_VISIBLE))))) + gui.SetStyle(gui.SCROLLBAR, gui.ARROWS_VISIBLE, int64(style)) - style = gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING) + style = int32(gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING)) gui.Label(rl.Rectangle{555, 325, 110, 10}, "SLIDER_PADDING") gui.Spinner(rl.Rectangle{670, 320, 90, 20}, "", &style, 0, 14, false) - gui.SetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING, style) + gui.SetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING, int64(style)) - style = gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_WIDTH) + style = int32(gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_WIDTH)) gui.Label(rl.Rectangle{555, 350, 110, 10}, "SLIDER_WIDTH") gui.Spinner(rl.Rectangle{670, 345, 90, 20}, "", &style, 2, 100, false) - gui.SetStyle(gui.SCROLLBAR, gui.SLIDER_WIDTH, style) + gui.SetStyle(gui.SCROLLBAR, gui.SLIDER_WIDTH, int64(style)) var text string if gui.GetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE) == gui.SCROLLBAR_LEFT_SIDE { @@ -159,23 +159,23 @@ func DrawStyleEditControls() { } else { text = "SCROLLBAR: RIGHT" } - style = boolToint32(gui.Toggle(rl.Rectangle{560, 110, 200, 35}, text, int32Tobool(gui.GetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE)))) - gui.SetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE, style) + style = boolToint32(gui.Toggle(rl.Rectangle{560, 110, 200, 35}, text, int32Tobool(int32(gui.GetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE))))) + gui.SetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE, int64(style)) //---------------------------------------------------------- // ScrollBar style controls //---------------------------------------------------------- gui.GroupBox(rl.Rectangle{550, 20, 220, 135}, "SCROLLPANEL STYLE") - style = gui.GetStyle(gui.LISTVIEW, gui.SCROLLBAR_WIDTH) + style = int32(gui.GetStyle(gui.LISTVIEW, gui.SCROLLBAR_WIDTH)) gui.Label(rl.Rectangle{555, 35, 110, 10}, "SCROLLBAR_WIDTH") gui.Spinner(rl.Rectangle{670, 30, 90, 20}, "", &style, 6, 30, false) - gui.SetStyle(gui.LISTVIEW, gui.SCROLLBAR_WIDTH, style) + gui.SetStyle(gui.LISTVIEW, gui.SCROLLBAR_WIDTH, int64(style)) - style = gui.GetStyle(gui.DEFAULT, gui.BORDER_WIDTH) + style = int32(gui.GetStyle(gui.DEFAULT, gui.BORDER_WIDTH)) gui.Label(rl.Rectangle{555, 60, 110, 10}, "BORDER_WIDTH") gui.Spinner(rl.Rectangle{670, 55, 90, 20}, "", &style, 0, 20, false) - gui.SetStyle(gui.DEFAULT, gui.BORDER_WIDTH, style) + gui.SetStyle(gui.DEFAULT, gui.BORDER_WIDTH, int64(style)) //---------------------------------------------------------- } diff --git a/examples/_gui/scroll_panel/scroll_panel.png b/examples/gui/scroll_panel/scroll_panel.png similarity index 100% rename from examples/_gui/scroll_panel/scroll_panel.png rename to examples/gui/scroll_panel/scroll_panel.png