public abstract class StageContent extends EventHandler implements Content
| Modifier and Type | Field and Description |
|---|---|
protected ScreenContext |
context
Context of the screen
|
protected ResourceHandler |
resourceHandler
Resource handler which contains all ui resources
|
protected XueStage |
stage
Stage, which loads the xml
|
| Constructor and Description |
|---|
StageContent() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Resource |
defineSkin()
Should return the skin which will be used by all stage elements.
|
protected abstract Resource |
defineXML()
Should return the xml resource, which describes the xml of the glmenuStage.
|
void |
dispose() |
void |
onActivate(ScreenId predecessor,
com.badlogic.gdx.InputMultiplexer inputMultiplexer)
Will be called when the underlying screen gets activated.
|
void |
onBind(ScreenContext context)
Will be called after the screen, which holds a reference to this object, gets added to a screen switch.
|
float |
onDeactivate(ScreenId successor,
com.badlogic.gdx.InputMultiplexer inputMultiplexer)
Will be called when underlying screen gets deactivated.
|
void |
onPause()
Will always be called on pause.
|
void |
onRender()
Will be called on render.
|
void |
onResize(int width,
int height)
Will be called on resize.
|
void |
onResume()
Will always be called on resume.
|
void |
onUpdate()
Will be called on update.
|
protected void |
postLoad() |
protected void |
preLoad() |
emitEvent, isRegistered, register, register, unregister@Dependency protected ResourceHandler resourceHandler
protected XueStage stage
protected ScreenContext context
protected abstract Resource defineXML()
protected abstract Resource defineSkin()
protected void preLoad()
protected void postLoad()
public void onBind(ScreenContext context)
Contentpublic void onActivate(ScreenId predecessor, com.badlogic.gdx.InputMultiplexer inputMultiplexer)
ContentonActivate in interface Contentpredecessor - predecessor of the screeninputMultiplexer - Will chain input processorspublic float onDeactivate(ScreenId successor, com.badlogic.gdx.InputMultiplexer inputMultiplexer)
ContentonDeactivate in interface Contentsuccessor - successor of the screeninputMultiplexer - Will chain input processorspublic void onUpdate()
Contentpublic void onRender()
Contentpublic void dispose()
dispose in interface com.badlogic.gdx.utils.Disposablepublic void onResize(int width,
int height)
Contentpublic void onPause()
Content