OptionMenu
The OptionMenu class is responsible for managing the options menu in a game.
| Functions | Description |
|---|---|
| createEntityText | Creates an entity containing text with a specified font, size, and position. |
| createEntityOptionButton | Creates an option button with a callback, position, and predefined size. |
| createEntityButton | Creates a standard button with a title, font, size, position, and callback for the action. |
| createEntitySlider | Creates a slider with a value range and a callback to adjust volume or element size. |
| createEntityRect | Creates an entity with a rectangle (button) of a defined size and an interaction callback. |
| createEntitySprite | Creates an entity with an image (sprite) and applies a texture at the specified position. |
| setNewKey | Handles changing a keyboard shortcut based on a key press event and updates the associated key. |
| displayOptionMenu | Initializes and displays the options menu, adjusting interface elements based on window size. |