Java Code Examples for com.badlogic.gdx.scenes.scene2d.ui.Image#remove()

The following examples show how to use com.badlogic.gdx.scenes.scene2d.ui.Image#remove() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RotateODImagesSubView.java    From dice-heroes with GNU General Public License v3.0 5 votes vote down vote up
private void updateImage() {
    Image toUse;
    Image toRemove;
    if (currentIndex % 2 == 0) { // even
        toUse = dia;
        toRemove = orto;
    } else {
        toUse = orto;
        toRemove = dia;
    }
    toRemove.remove();
    group.addActor(toUse);
    toUse.setRotation(getRotation(currentIndex));
}
 
Example 2
Source File: ViewController.java    From dice-heroes with GNU General Public License v3.0 5 votes vote down vote up
public void removeSelection(Object key) {
    Array<Image> images = selectionMap.remove(key);
    if (images == null)
        throw new IllegalStateException("there is no selection associated for key " + key);
    for (Image image : images) {
        image.remove();
    }
}
 
Example 3
Source File: HideTutorialArrow.java    From dice-heroes with GNU General Public License v3.0 5 votes vote down vote up
@Override public void start(Callback callback) {
    Image arrow = resources.getIfExists("tutorialArrow");
    if (arrow != null) {
        arrow.remove();
        resources.remove("tutorialArrow");
    }
    callback.taskEnded();
}
 
Example 4
Source File: DieNet.java    From dice-heroes with GNU General Public License v3.0 5 votes vote down vote up
public void stopHighlighting() {
    for (Image image : highlights) {
        image.remove();
        image.clearActions();
    }
    highlights.clear();
}