本文整理匯總了Java中com.badlogic.gdx.scenes.scene2d.ui.Image.toBack方法的典型用法代碼示例。如果您正苦於以下問題:Java Image.toBack方法的具體用法?Java Image.toBack怎麽用?Java Image.toBack使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.badlogic.gdx.scenes.scene2d.ui.Image
的用法示例。
在下文中一共展示了Image.toBack方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createListener
import com.badlogic.gdx.scenes.scene2d.ui.Image; //導入方法依賴的package包/類
private EventListener createListener(final Creature creature, final TextButton button, final WorldObjectView view, final Image selection) {
return new ClickListener() {
@Override public void clicked(InputEvent event, float x, float y) {
view.addActor(selection);
selection.toBack();
selected = creature;
button.setDisabled(false);
}
};
}
示例2: createListener
import com.badlogic.gdx.scenes.scene2d.ui.Image; //導入方法依賴的package包/類
private ClickListener createListener(final Ability ability, final TextButton button, final Image itemSelection, final Group icon, final LocLabel itemDescriptionLabel) {
return new ClickListener() {
@Override public void clicked(InputEvent event, float x, float y) {
selected = ability;
icon.addActor(itemSelection);
itemSelection.toBack();
button.setDisabled(false);
itemDescriptionLabel.setParams(Thesaurus.params().with("name", ability.locNameKey()).with("desc", ability.locDescKey()));
}
};
}
示例3: highlight
import com.badlogic.gdx.scenes.scene2d.ui.Image; //導入方法依賴的package包/類
private void highlight(IntArray indices) {
for (int i = 0; i < indices.size; i++) {
Vector2 pos = iconPositions[indices.get(i)];
Image image = new Image(Config.skin, "ui/dice-window/net-selection-selected");
image.setPosition(pos.x - 2, pos.y - 2);
addActor(image);
image.toBack();
image.getColor().a = 0f;
blink(image);
highlights.add(image);
}
}