Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

JamButton for fast menu-creation

A topic by whiteshampoo created Sep 08, 2022 Views: 158 Replies: 2
Viewing posts 1 to 3
Submitted (4 edits)

IMPORTANT:
Please make sure you are using Version 1.4 (newest)

It contains a fix for a breaking bug in release-builds!



Hi all,

i would like to invite you to test and use a little Button-class i wrote.

Here is the code: 
https://gitlab.com/-/snippets/2400929 (<- Newer version for Godot 4 Alpha 16)
https://gitlab.com/-/snippets/2401569 (<- Backport from parapixel to 3.x (slightly older version))

Just create a new script and name it `JamButton.gd`. Then you can add the JamButton via "Add Child Node" in the Scenetree.
For simple menus you need no additional script at all! All relevant options can be changed in the inspector.

The button can:
- Change scenes
- Shell open a url (https)
- Quit the game
- Play sounds on press and focus/hover
- Create a fully functional menu in under 1 minute.

Simple menu-example:

 ┖╴Control
    ┖╴CenterContainer
       ┖╴VBoxContainer
          ┠╴JamButtonPlay
          ┠╴JamButtonCredits
          ┖╴JamButtonQuit


Feedback (and bug-reports) very appreciated!

I didn't try it but it looks cool! thx man

Submitted (1 edit)

BUGFIX

please read above