|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.widgets.assemblies.LoadingScreen
public class LoadingScreen
Many games need a loading screen. This clas will help you with it.
LoadingScreenUpdater| Constructor Summary | |
|---|---|
LoadingScreen(float width,
float height,
java.lang.String backgroundTexture,
int maxValue,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
|
LoadingScreen(float width,
float height,
java.lang.String backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
|
LoadingScreen(float width,
float height,
Texture backgroundTexture,
int maxValue,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
|
LoadingScreen(float width,
float height,
Texture backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
|
LoadingScreen(org.openmali.types.twodee.Sized2fRO size,
java.lang.String backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
|
LoadingScreen(org.openmali.types.twodee.Sized2fRO size,
Texture backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
|
| Method Summary | |
|---|---|
void |
afterAllResourceLoaded(ResourceLoader resLoader)
|
void |
afterResourceBundleLoaded(ResourceLoader resLoader,
java.lang.Class<? extends ResourceRequest> bundleType)
|
void |
afterResourceLoaded(ResourceLoader resLoader,
ResourceRequest request,
java.lang.Object resource)
|
void |
attach(WidgetContainer container)
Adds all LoadingScreen Widgets to the given WidgetContainer. |
void |
beforeAnyResourceLoaded(ResourceLoader resLoader)
|
void |
beforeResourceBundleLoaded(ResourceLoader resLoader,
java.lang.Class<? extends ResourceRequest> bundleType)
|
void |
beforeResourceLoaded(ResourceLoader resLoader,
ResourceRequest request)
|
static LoadingScreen |
createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
java.lang.String backgroundTexture,
int maxValue)
Creates a new LoadingScreen with the given parameters. |
static LoadingScreen |
createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
java.lang.String backgroundTexture,
int maxValue,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
static LoadingScreen |
createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
java.lang.String backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
static LoadingScreen |
createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
Texture backgroundTexture,
int maxValue)
Creates a new LoadingScreen with the given parameters. |
static LoadingScreen |
createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
Texture backgroundTexture,
int maxValue,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
static LoadingScreen |
createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
Texture backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
Creates a new LoadingScreen with the given parameters. |
void |
detach()
Removes all LoadingScreen Widgets from their WidgetContainer. |
Image |
getBackgroundImage()
|
Label |
getCaptionLabel()
|
HUD |
getHUD()
|
ProgressBar |
getProgressBar()
|
java.lang.String |
getProgressCaption()
|
int |
getProgressValue()
|
RenderLoopController |
getRenderLoopController()
|
RenderPass |
getRenderPass()
|
void |
init(int maxValue,
java.lang.String caption,
java.lang.String backgroundTexture)
Initializes the progress, caption and background image. |
void |
init(int maxValue,
java.lang.String caption,
Texture backgroundTexture)
Initializes the progress, caption and background image. |
void |
setRenderLoopController(RenderLoopController rlc)
Sets the RenderLoopController, that is invoked each update. |
void |
update()
Updates the progress value incremented by one and leaves the caption unchanged. |
void |
update(int value)
Updates the progress value and leaves the caption unchanged. |
void |
update(int value,
java.lang.String caption)
Updates the progress value and caption. |
void |
update(int value,
java.lang.String caption,
java.lang.String backgroundTexture)
Updates the progress value, caption and background image. |
void |
update(int value,
java.lang.String caption,
Texture backgroundTexture)
Updates the progress value, caption and background image. |
void |
update(int value,
Texture backgroundTexture)
Updates the progress value and background image. |
void |
update(java.lang.String caption)
Updates the progress value incremented by one and sets the new caption. |
void |
update(Texture backgroundTexture)
Increases the progress value by one and updates the background image. |
protected void |
updateContent(int value,
int maxValue,
java.lang.String caption,
Texture backgroundTexture)
Updates all the contents of the LoadingScreen. |
void |
updateOnly(java.lang.String caption)
Updates the caption only. |
void |
updateOnly(Texture backgroundTexture)
Updates the background image only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoadingScreen(float width,
float height,
Texture backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
width - the width of the backgroundImageheight - the height of the backgroundImagebackgroundTexture - the Texture for the backgroundImagepbDesc - description of the ProgressBarmaxValue - maximum value for the ProgressBarlabelDesc - description of the caption label WidgetinitialCaption - initial caption
public LoadingScreen(float width,
float height,
java.lang.String backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
width - the width of the backgroundImageheight - the height of the backgroundImagebackgroundTexture - the Texture for the backgroundImagepbDesc - description of the ProgressBarmaxValue - maximum value for the ProgressBarlabelDesc - description of the caption label WidgetinitialCaption - initial caption
public LoadingScreen(org.openmali.types.twodee.Sized2fRO size,
Texture backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
size - the size of the backgroundImagebackgroundTexture - the Texture for the backgroundImagepbDesc - description of the ProgressBarmaxValue - maximum value for the ProgressBarlabelDesc - description of the caption label WidgetinitialCaption - initial caption
public LoadingScreen(org.openmali.types.twodee.Sized2fRO size,
java.lang.String backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
size - the size of the backgroundImagebackgroundTexture - the Texture for the backgroundImagepbDesc - description of the ProgressBarmaxValue - maximum value for the ProgressBarlabelDesc - description of the caption label WidgetinitialCaption - initial caption
public LoadingScreen(float width,
float height,
Texture backgroundTexture,
int maxValue,
java.lang.String initialCaption)
width - the width of the backgroundImageheight - the height of the backgroundImagebackgroundTexture - the Texture for the backgroundImagemaxValue - maximum value for the ProgressBarinitialCaption - initial caption
public LoadingScreen(float width,
float height,
java.lang.String backgroundTexture,
int maxValue,
java.lang.String initialCaption)
width - the width of the backgroundImageheight - the height of the backgroundImagebackgroundTexture - the Texture for the backgroundImagemaxValue - maximum value for the ProgressBarinitialCaption - initial caption| Method Detail |
|---|
public void setRenderLoopController(RenderLoopController rlc)
public RenderLoopController getRenderLoopController()
public Image getBackgroundImage()
public Label getCaptionLabel()
public ProgressBar getProgressBar()
public HUD getHUD()
public RenderPass getRenderPass()
HUD.getRenderPass()public void attach(WidgetContainer container)
container - the WidgetContainer to place them onpublic void detach()
public void init(int maxValue,
java.lang.String caption,
Texture backgroundTexture)
init in interface LoadingScreenUpdatermaxValue - the new maximum progress valuecaption - the new caption (or null to keep the old one)backgroundTexture - the new background Texture (or null to keep the old one)
public void init(int maxValue,
java.lang.String caption,
java.lang.String backgroundTexture)
init in interface LoadingScreenUpdatermaxValue - the new maximum progress valuecaption - the new caption (or null to keep the old one)backgroundTexture - the new background Texture (or null to keep the old one)
protected void updateContent(int value,
int maxValue,
java.lang.String caption,
Texture backgroundTexture)
LoadingScreen.
value - maxValue - caption - backgroundTexture -
public void update(int value,
java.lang.String caption,
Texture backgroundTexture)
update in interface LoadingScreenUpdatervalue - the new progress valuecaption - the new caption (or null to keep the old one)backgroundTexture - the new background Texture (or null to keep the old one)
public void update(int value,
Texture backgroundTexture)
update in interface LoadingScreenUpdatervalue - the new progress valuebackgroundTexture - the new background Texture (or null to keep the old one)public void update(Texture backgroundTexture)
update in interface LoadingScreenUpdaterbackgroundTexture - the new background Texture (or null to keep the old one)public void updateOnly(Texture backgroundTexture)
updateOnly in interface LoadingScreenUpdaterbackgroundTexture - the new background Texture (or null to keep the old one)
public void update(int value,
java.lang.String caption,
java.lang.String backgroundTexture)
update in interface LoadingScreenUpdatervalue - the new progress valuecaption - the new caption (or null to keep the old one)backgroundTexture - the new background Texture (or null to keep the old one)
public void update(int value,
java.lang.String caption)
update in interface LoadingScreenUpdatervalue - the new progress valuecaption - the new caption (or null to keep the old one)public void update(int value)
update in interface LoadingScreenUpdatervalue - the new progress valuepublic void updateOnly(java.lang.String caption)
updateOnly in interface LoadingScreenUpdatercaption - the new caption (or null to keep the old one)public void update(java.lang.String caption)
update in interface LoadingScreenUpdatercaption - the new caption (or null to keep the old one)public void update()
update in interface LoadingScreenUpdaterpublic void beforeAnyResourceLoaded(ResourceLoader resLoader)
beforeAnyResourceLoaded in interface ResourceLoaderListener
public void beforeResourceBundleLoaded(ResourceLoader resLoader,
java.lang.Class<? extends ResourceRequest> bundleType)
beforeResourceBundleLoaded in interface ResourceLoaderListener
public void afterResourceBundleLoaded(ResourceLoader resLoader,
java.lang.Class<? extends ResourceRequest> bundleType)
afterResourceBundleLoaded in interface ResourceLoaderListener
public void beforeResourceLoaded(ResourceLoader resLoader,
ResourceRequest request)
beforeResourceLoaded in interface ResourceLoaderListener
public void afterResourceLoaded(ResourceLoader resLoader,
ResourceRequest request,
java.lang.Object resource)
afterResourceLoaded in interface ResourceLoaderListenerpublic void afterAllResourceLoaded(ResourceLoader resLoader)
afterAllResourceLoaded in interface ResourceLoaderListenerpublic int getProgressValue()
public java.lang.String getProgressCaption()
public static LoadingScreen createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
Texture backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
canvas - the canvas to create the HUD onbackgroundTexture - the Texture for the backgroundImagepbDesc - description of the ProgressBarmaxValue - maximum value for the ProgressBarlabelDesc - description of the caption label WidgetinitialCaption - initial caption
public static LoadingScreen createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
java.lang.String backgroundTexture,
ProgressBar.Description pbDesc,
int maxValue,
Label.Description labelDesc,
java.lang.String initialCaption)
canvas - the canvas to create the HUD onbackgroundTexture - the Texture for the backgroundImagepbDesc - description of the ProgressBarmaxValue - maximum value for the ProgressBarlabelDesc - description of the caption label WidgetinitialCaption - initial caption
public static LoadingScreen createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
Texture backgroundTexture,
int maxValue,
java.lang.String initialCaption)
canvas - the canvas to create the HUD onbackgroundTexture - the Texture for the backgroundImagemaxValue - maximum value for the ProgressBarinitialCaption - initial caption
public static LoadingScreen createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
java.lang.String backgroundTexture,
int maxValue,
java.lang.String initialCaption)
canvas - the canvas to create the HUD onbackgroundTexture - the Texture for the backgroundImagemaxValue - maximum value for the ProgressBarinitialCaption - initial caption
public static LoadingScreen createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
Texture backgroundTexture,
int maxValue)
canvas - the canvas to create the HUD onbackgroundTexture - the Texture for the backgroundImagemaxValue - maximum value for the ProgressBar
public static LoadingScreen createWithHUD(org.openmali.types.twodee.Sized2iRO canvas,
java.lang.String backgroundTexture,
int maxValue)
canvas - the canvas to create the HUD onbackgroundTexture - the Texture for the backgroundImagemaxValue - maximum value for the ProgressBar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||