Scratch for Java

UI

Menus for games: Button, Slider, Toggle and Choice are sprites on the UI layer that players use with the mouse, the keyboard or a controller. The arrow keys, WASD, the D-pad and the left stick move the focus to the nearest widget in that direction; Enter, Space or A press it; left and right change a slider or choice. These are the actions ui_up, ui_down, ui_left, ui_right and ui_accept of Actions, so players can rebind them too.

For a pause menu, put the widgets on a stage of their own and open it with Stage.pauseWith(org.openpatch.scratch.Stage).

In the -all jar and Studio; with Maven add the artifact scratch-ui.

Classes

UI

Create Shareable URL

Select Sections