public boolean act (float delta) { target.setVisible(visible); return true; }
public boolean act (float delta) { target.setVisible(visible); return true; }
public boolean act (float delta) { target.setVisible(visible); return true; }
public TypedGdxQuery<T> visible(boolean v){ t.setVisible(v); return this; }
/** * Set visible for multiple actors at once * */ public static void setVisible(boolean isVisible, Actor... actors) { for (Actor a : actors) { a.setVisible(isVisible); } }
public TypedGdxQuery<T> hide(){ t.setVisible(false); return this; }
public UI<T> setVisible(boolean isVisible) { t.setVisible(isVisible); return this; }
public TypedGdxQuery<T> show(){ t.setVisible(true); return this; }
public GdxQuery show(){ for(Actor actor:list()) actor.setVisible(true); return this; }
public GdxQuery hide(){ for(Actor actor:list()) actor.setVisible(false); return this; }
public GdxQuery visible(boolean v){ for(Actor actor:list()) actor.setVisible(v); return this; }
@Override public void onValid() { Gdx.app.log(TAG, "Tinify API key validation succeed"); pleaseWaitDialog.findActor("groupChecking").setVisible(false); pleaseWaitDialog.findActor("groupValid").setVisible(true); pleaseWaitDialog.closeOnEscape(); btnClose.setDisabled(false); }
@Override public void onInvalid() { Gdx.app.log(TAG, "Tinify API key validation failed"); pleaseWaitDialog.findActor("groupChecking").setVisible(false); pleaseWaitDialog.findActor("groupInvalid").setVisible(true); pleaseWaitDialog.closeOnEscape(); btnClose.setDisabled(false); }
private void updateCompression() { if (model == null) return; PngCompressionModel compModel = model.getCompression(); WidgetData.PngCompression compValue = WidgetData.PngCompression.valueOf(compModel == null ? null : compModel.getType()); cboCompression.setSelected(compValue); containerPngCompSettings.setVisible(compValue.hasSettings); } }
@Override public void clicked(InputEvent event, float x, float y) { Actor popup = findActor("popup"); if (popup.isVisible()) { button.setText("Show Popup"); popup.setVisible(false); } else { button.setText("Hide Popup"); popup.setVisible(true); popup.addAction(Actions.sequence(Actions.alpha(0), Actions.alpha(1, 0.5f))); } } });
private void setSelectedTab(boolean value) { TabTitleButton tabTitleButton = ((TabTitleButton) tabTitleTable.getCells().get(selectedIndex).getActor()); tabTitleButton.setDisabled(value); // Can't toggle the selected tab tabTitleButton.setChecked(value); tabBodyStack.getChildren().get(selectedIndex).setVisible(value); }
@Override public void clicked(InputEvent event, float x, float y) { findActor("loading_widget").setVisible(true); String key = "async_asset_loading_test"; game.getAssetsInterface().removeAssetConfiguration(key); game.getAssetsInterface().addAssetConfiguration(key, "large.atlas", TextureAtlas.class); game.getAssetsInterface().loadAssetsAsync(key, new AssetLoaderListener() { @Override public void onAssetsLoaded() { findActor("loading_widget").setVisible(false); AsyncAssetLoadingScreen screen = new AsyncAssetLoadingScreen(game); game.addScreen(screen); } }); } });
dialogUI.setVisible(false); inventoryUI.hide(); inventoryButton.setVisible(false); dialogUI.setVisible(true); inventoryUI.cancelDragging(); } else { inventoryUI.hide(); dialogUI.setVisible(false); inventoryButton.setVisible(w.getInventory().isVisible());
/** * @param actor has the listener attached. * @param event touch down event which triggered mimic spawning. * @param x actor's relative X event position. * @param y actor's relative Y event position. */ protected void attachMimic (final Actor actor, final InputEvent event, final float x, final float y) { mimic.clearActions(); mimic.getColor().a = alpha; mimic.setActor(actor); offsetX = -x; offsetY = -y; getStageCoordinates(event); dragStartX = MIMIC_COORDINATES.x; dragStartY = MIMIC_COORDINATES.y; mimic.setPosition(dragStartX, dragStartY); actor.getStage().addActor(mimic); mimic.toFront(); actor.setVisible(!invisibleWhenDragged); if (blockInput) { addBlocker(actor.getStage()); } }
mResetSlider = false; mColorButtonActor.setVisible(true); mLookInsideButtonActor.setVisible(false); mStage.draw();