Home

Awesome

<p align="center"> <img src="https://raw.githubusercontent.com/yudinikita/godot-spin-button/main/icon.png" alt="Godot Spin Button logo" width="150"> </p> <h3 align="center">Spin Button</h3> <p align="center"> Horizontal Selector with extended options for Godot Engine 4.x. <br> <a href="https://godotengine.org/asset-library/asset/2461"><strong>Addon on Asset Library ยป</strong></a> <br> <br> <a href="https://github.com/yudinikita/godot-spin-button/wiki">Documentation</a> ยท <a href="https://yudinikita.itch.io/godot-spin-button">Itch.io</a> </p>

Godot Spin Button

The addon adds a new "SpinButton" element that think of this thing as a dropdown but the navigation is managed by with next and previous controls. By incorporating this addon, users can conveniently choose options in a horizontal arrangement, thereby enhancing the overall user experience in Godot projects.

Preview of Godot Spin Button

โœจ Features

Slider, link, check, checkbox and custom button.

Features of Godot Spin Button

๐Ÿ“ Getting started

1. Installation

There are few options on how to include/import SpinButton into your project:

Use SpinButton from Asset Library

If you want to include SpinButton files in your project, you may use it from Asset Library.

  1. Open the AssetLib tab in the Godot editor.
  2. Type the name of the addon "Spin Button" in the search bar.
  3. Select the addon and click the Download button.

Install from GitHub

To start using the Spin Button addon in your project, follow these steps:

  1. Clone or download the GodotSpinButton repository from GitHub:
git clone https://github.com/yudinikita/godot-spin-button.git
  1. Copy the godot-spin-button/addons/spin_button folder inside your project's addons directory.
  2. You're all set!

2. Usage

  1. Enable the addon by going to Project -> Project Settings -> Plugins and activating the "Spin Button" plugin.
  2. Add control on scene Control -> BaseButton -> Button -> SBBaseButton -> SBButton.
  3. Customize or apply a theme for the button as you wish.

Happy coding!

๐Ÿ“– Documentation

Additional documentation is available in the Wiki section of the GitHub page. You can also refer to the embedded comments for a more detailed understanding of specific methods and functionality.

๐ŸŽจ Theme

With SpinButton, you can replicate a theme from many major AAA games or you can create your own unique theme.

Theme of Godot Spin Button

Creating a theme has its own peculiarities, so read the documentation on this topic to better understand how to create a theme for SpinButton.

๐Ÿ“š Project Architecture

Here is an overview of the project's file hierarchy:

godot-spin-button/
`-- addons/
    `-- spin_button/
        `-- src/
            |-- core/
            |   |-- base_button
            |   `-- button
            |-- components
            |-- controls
            `-- modules

The addon has a clear structure, which is demonstrated for each button in the corresponding tab of the example.

Structure of Godot Spin Button

Here is an overview of the button hierarchy:

SpinButton/
`-- Wrapper/
    `-- Container/
        |-- LeftIcon
        |-- TitleWrapper/
        |   `-- TitleButton/
        |       `-- TitleContainer/
        |           |-- TitleLabel
        |           `-- DescriptionLabel
        |-- ContentWrapper/
        |   `-- ContentButton/
        |       `-- ContentContainer/
        |           |-- PrevWrapper/
        |           |   `-- PrevButton
        |           |-- ValueWrapper/
        |           |   `-- ValueButton/
        |           |       |-- ValueText/
        |           |       |   `-- ValueLabel
        |           |       `-- BulletsWrapper
        |           `-- NextWrapper/
        |               `-- NextButton
        `-- RightIcon

โ“ FAQ

Here you will find the most frequently asked questions relating to the project answered. See FAQ for more information.

๐Ÿ’ฌ Note

If you have any suggestions or encounter any problems when using the app, please feel free to contact us by email. I am ready to help you and solve any of your problems.

๐Ÿ” License

The source code of this project is licensed under the MIT license, which can be found here.


Site yudinikita.ru ย ยทย  Email mail@yudinikita.ru ย ยทย  GitHub @yudinikita