OptionMenu

The OptionMenu class is responsible for managing the options menu in a game.

FunctionsDescription
createEntityTextCreates an entity containing text with a specified font, size, and position.
createEntityOptionButtonCreates an option button with a callback, position, and predefined size.
createEntityButtonCreates a standard button with a title, font, size, position, and callback for the action.
createEntitySliderCreates a slider with a value range and a callback to adjust volume or element size.
createEntityRectCreates an entity with a rectangle (button) of a defined size and an interaction callback.
createEntitySpriteCreates an entity with an image (sprite) and applies a texture at the specified position.
setNewKeyHandles changing a keyboard shortcut based on a key press event and updates the associated key.
displayOptionMenuInitializes and displays the options menu, adjusting interface elements based on window size.