-
Notifications
You must be signed in to change notification settings - Fork 41
Genome2D UI
Genome2D has a special set of classes that handle UI layouting and rendering. It is possible to create your own UI with standard Genome2D sprites but if you want more sophisticated layouts and batching it is better to use UI package.
UI classes reside in com.genome2d.ui package where the main element the whole UI hierarchy is composed of is GUIElement. UI is managed and invalidated inside its own hierarchy which is a sub-hierarchy to Genome2D node system as it resides inside the GUI component which is directly responsible for it. You can have unlimited amount of independent UI hierarchies inside multiple GUI component instances. Abstract GUIElement is than assigned a GUISkin which tells it how it should render, currently there are three types of skins GUITextureSkin, GUIFontSkin, GUIParticleSkin.
com.genome2d.components.renderable.ui.GUI
This is a Genome2D component class that encapsulates the UI hierarchy inside the node system.
The most important class of Genome2D UI that composes the hierarchy of UI. It is responsible for hierachy and layout of the UI. It is visually abstract and doesn't render anything unless it has a skin.