Java 类com.badlogic.gdx.scenes.scene2d.ui.Stack 实例源码

项目:Inspiration    文件:InventorySlot.java   
public InventorySlot(){
    _filterItemType = 0; //filter nothing
    _defaultBackground = new Stack();
    _customBackgroundDecal = new Image();
    Image image = new Image(Assets.instance.STATUSUI_SKIN,"cell");

    numItemsLabel = new Label(String.valueOf(numItemsVal), Assets.instance.STATUSUI_SKIN);
    numItemsLabel.setAlignment(Align.bottomRight);
    numItemsLabel.setVisible(false);

    _defaultBackground.add(image);

    _defaultBackground.setName("background");
    numItemsLabel.setName("numitems");

    this.add(_defaultBackground);
    this.add(numItemsLabel);
}
项目:CodeBase    文件:MenuManager.java   
public MenuManager(int width, int height, Runnable onEmptyPop) {
    this.stage = new Stage(new ExtendScreenViewport(width, height), DrawUtil.batch);
    this.onEmptyPop = onEmptyPop;
    this.width = width;
    this.height = height;
    stack = new Stack();
    table = new Table();
    table.setFillParent(true);
    table.setTransform(false);
    table.row().expand().fill();
    table.add().colspan(3).expand().fill();
    table.row();
    table.add().expandX().fillX();
    table.add(stack).minSize(width, height).maxSize(width, height);
    table.add().expandX().fillX();
    table.row().expand().fill();
    table.add().colspan(3).expand().fill();
    stage.addActor(table);
}
项目:GdxStudio    文件:Serializer.java   
public static void setup(){
    registerSerializer(Actor.class, new ActorSerializer());
    registerSerializer(Scene.class, new SceneSerializer());
    registerSerializer(ImageJson.class, new ImageJson());
    registerSerializer(Label.class, new LabelSerializer());
    registerSerializer(Button.class, new ButtonSerializer());
    registerSerializer(TextButton.class, new TextButtonSerializer());
    registerSerializer(Table.class, new TableSerializer());
    registerSerializer(CheckBox.class, new CheckBoxSerializer());
    registerSerializer(SelectBox.class, new SelectBoxSerializer());
    registerSerializer(List.class, new ListSerializer());
    registerSerializer(Slider.class, new SliderSerializer());
    registerSerializer(TextField.class, new TextFieldSerializer());
    registerSerializer(Touchpad.class, new TouchpadSerializer());
    registerSerializer(Sprite.class, new SpriteSerializer());

    registerSerializer(Dialog.class, new DialogSerializer());
    registerSerializer(SplitPane.class, new SplitPaneSerializer());
    registerSerializer(ScrollPane.class, new ScrollPaneSerializer());
    registerSerializer(Stack.class, new StackSerializer());
    registerSerializer(Tree.class, new TreeSerializer());
    registerSerializer(Table.class, new TableSerializer());
    registerSerializer(ButtonGroup.class, new ButtonGroupSerializer());
    registerSerializer(HorizontalGroup.class, new HorizontalGroupSerializer());
    registerSerializer(VerticalGroup.class, new VerticalGroupSerializer());
}
项目:gdx-ai    文件:MessageTestBase.java   
public void create () {
    lastUpdateTime = 0;
    testStack = new Stack();
    container.stage.getRoot().addActorAt(0, testStack);
    testStack.setSize(container.stageWidth, container.stageHeight);
    testStack.add(testTable = new Table() {
        @Override
        public void act (float delta) {
            float time = GdxAI.getTimepiece().getTime();
            if (lastUpdateTime != time) {
                lastUpdateTime = time;
                super.act(GdxAI.getTimepiece().getDeltaTime());
            }
        }
    });
    testStack.layout();
}
项目:gdx-ai    文件:Scene2dSteeringTest.java   
@Override
public void create () {
    lastUpdateTime = 0;
    testStack = new Stack();
    container.stage.getRoot().addActorAt(0, testStack);
    testStack.setSize(container.stageWidth, container.stageHeight);
    testStack.add(testTable = new Table() {
        @Override
        public void act (float delta) {
            float time = GdxAI.getTimepiece().getTime();
            if (lastUpdateTime != time) {
                lastUpdateTime = time;
                super.act(GdxAI.getTimepiece().getDeltaTime());
            }
        }
    });
    testStack.layout();
}
项目:dice-heroes    文件:CreatureQueueWindow.java   
@Override protected void initialize() {
    creaturesList.defaults().pad(2);
    creaturesList.padTop(12);

    Image left = new Image(Config.skin, "ui-creature-queue-gradient-left");
    left.setScaling(Scaling.stretchY);
    left.setAlign(Align.left);
    left.setTouchable(Touchable.disabled);

    Image right = new Image(Config.skin, "ui-creature-queue-gradient-right");
    right.setScaling(Scaling.stretchY);
    right.setAlign(Align.right);
    right.setTouchable(Touchable.disabled);

    Stack stack = new Stack();
    stack.add(new ScrollPane(creaturesList, new ScrollPane.ScrollPaneStyle()));
    stack.add(left);
    stack.add(right);

    Table content = new Table(Config.skin);
    content.setTouchable(Touchable.enabled);
    content.setBackground("ui-inventory-ability-window-background");
    content.defaults().pad(2);
    content.add(new LocLabel("ui-turns-order")).row();
    content.add(new Image(Config.skin, "ui-creature-info-line")).width(100).row();
    content.add(stack).maxWidth(table.getStage().getWidth() - 45).padRight(4).padLeft(4).row();

    table.add(content);
}
项目:Roguelike    文件:TabPanel.java   
private void initialize () {

        setTouchable(Touchable.enabled);
        tabTitleTable = new Table();
        tabBodyStack = new Stack();
        selectedIndex = -1;

        // Create 1st row
        Cell<?> leftCell = add(new Image(style.titleBegin));
        Cell<?> midCell = add(tabTitleTable);
        Cell<?> rightCell = add(new Image(style.titleEnd));
        switch (tabTitleAlign) {
            case Align.left:
                leftCell.width(((Image)leftCell.getActor()).getWidth()).bottom();
                midCell.left();
                rightCell.expandX().fillX().bottom();
                break;
            case Align.right:
                leftCell.expandX().fillX().bottom();
                midCell.right();
                rightCell.width(((Image)rightCell.getActor()).getWidth()).bottom();
                break;
            case Align.center:
                leftCell.expandX().fillX().bottom();
                midCell.center();
                rightCell.expandX().fillX().bottom();
                break;
            default:
                throw new IllegalArgumentException("TabbedPane align must be one of left, center, right");
        }

        // Create 2nd row
        row();
        Table t = new Table();
        t.setBackground(style.bodyBackground);
        t.add(tabBodyStack).expand().fill();
        add(t).colspan(3).expand().fill();
    }
项目:umbracraft    文件:TilesetListModule.java   
private Actor getTilesetPreview(TilesetDefinition definition) {
    FileHandle handle = Gdx.files.absolute(Editor.db().config().projectPath + Editor.db().config().tilesetPath + definition.filename + ".png");
    if (definition != null && StringUtils.isNotEmpty(definition.filename) && handle.exists()) {
        Stack stack = new Stack();
        stack.add(new Image(new Texture(handle)));
        stack.add(new Image(new Texture(Gdx.files.internal("engine/numbers.png"))));
        return stack;
    }
    return new Table() {
        {
            add().expand().fill().size(256);
        }
    };
}
项目:gaiasky    文件:TabbedPane.java   
private void initialize() {

        setTouchable(Touchable.enabled);
        tabTitleTable = new Table();
        tabBodyStack = new Stack();
        selectedIndex = -1;

        // Create 1st row
        Cell<?> leftCell = add(new Image(style.titleBegin));
        Cell<?> midCell = add(tabTitleTable);
        Cell<?> rightCell = add(new Image(style.titleEnd));
        switch (tabTitleAlign) {
        case Align.left:
            leftCell.width(((Image) leftCell.getActor()).getWidth()).bottom();
            midCell.left();
            rightCell.expandX().fillX().bottom();
            break;
        case Align.right:
            leftCell.expandX().fillX().bottom();
            midCell.right();
            rightCell.width(((Image) rightCell.getActor()).getWidth()).bottom();
            break;
        case Align.center:
            leftCell.expandX().fillX().bottom();
            midCell.center();
            rightCell.expandX().fillX().bottom();
            break;
        default:
            throw new IllegalArgumentException("TabbedPane align must be one of left, center, right");
        }

        // Create 2nd row
        row();
        Table t = new Table();
        t.setBackground(style.bodyBackground);
        t.add(tabBodyStack);
        add(t).colspan(3).expand().fill();
    }
项目:gdx-ai    文件:BehaviorTreeTests.java   
private void changeTest (int testIndex) {
    // Dispose the previous test (if any)
    if (currentTest != null) currentTest.dispose();

    // Add the new test
    currentTest = tests[testIndex];
    Gdx.app.log("BehaviorTreeTests", "***********************************************");
    Gdx.app.log("BehaviorTreeTests", "Starting test " + currentTest.getName());
    Gdx.app.log("BehaviorTreeTests", "***********************************************");
    String description = currentTest.getDescription();
    if (description != null) {
        Gdx.app.log("BehaviorTreeTests", description);
        Gdx.app.log("BehaviorTreeTests", "***********************************************");
        testDescriptionLabel.setText(description);
    } else {
        testDescriptionLabel.setText("Run the tree, look at the log and see what happens");
    }
    Stack testStack = new Stack() {
        @Override
        public void act (float delta) {
            boolean paused = pauseButton.isChecked();
            getChildren().peek().setVisible(paused);
            if (!paused) {
                // Update AI time
                GdxAI.getTimepiece().update(delta);

                // Call super
                super.act(delta);
            }
        }
    };
    testStack.add(currentTest.createActor(skin));
    testStack.add(new Image(skin, "translucent"));
    splitPane.setSecondWidget(testStack);
}
项目:gdx-ai    文件:PathFinderTests.java   
@Override
public void create () {
    Gdx.gl.glClearColor(.3f, .3f, .3f, 1);

    skin = new Skin(Gdx.files.internal("data/uiskin.json"));

    // Enable color markup
    BitmapFont font = skin.get("default-font", BitmapFont.class);
    font.getData().markupEnabled = true;

    stage = new Stage();
    stage.setDebugAll(DEBUG_STAGE);
    stageWidth = stage.getWidth();
    stageHeight = stage.getHeight();

    Gdx.input.setInputProcessor(new InputMultiplexer(stage));

    Stack stack = new Stack();
    stage.addActor(stack);
    stack.setSize(stageWidth, stageHeight);
    testsTable = new Table();
    stack.add(testsTable);

    // Create behavior selection window
    List<String> testList = createTestList();
    algorithmSelectionWindow = addBehaviorSelectionWindow("Path Finder Tests", testList, 0, -1);

    // Set selected test
    changeTest(0);

    stage.addActor(new FpsLabel("FPS: ", skin));
}
项目:gdx-ai    文件:TabbedPane.java   
private void initialize () {

        setTouchable(Touchable.enabled);
        tabTitleTable = new Table();
        tabBodyStack = new Stack();
        selectedIndex = -1;

        // Create 1st row
        Cell<?> leftCell = add(new Image(style.titleBegin));
        Cell<?> midCell = add(tabTitleTable);
        Cell<?> rightCell = add(new Image(style.titleEnd));
        switch (tabTitleAlign) {
        case Align.left:
            leftCell.width(((Image)leftCell.getActor()).getWidth()).bottom();
            midCell.left();
            rightCell.expandX().fillX().bottom();
            break;
        case Align.right:
            leftCell.expandX().fillX().bottom();
            midCell.right();
            rightCell.width(((Image)rightCell.getActor()).getWidth()).bottom();
            break;
        case Align.center:
            leftCell.expandX().fillX().bottom();
            midCell.center();
            rightCell.expandX().fillX().bottom();
            break;
        default:
            throw new IllegalArgumentException("TabbedPane align must be one of left, center, right");
        }

        // Create 2nd row
        row();
        Table t = new Table();
        t.setBackground(style.bodyBackground);
        t.add(tabBodyStack);
        add(t).colspan(3).expand().fill();
    }
项目:DreamsLibGdx    文件:BaseScreen.java   
public void showMessage(String text, float time, final GameState gameState) {
    Gdx.app.debug(Constants.LOG, "Show Message !");
    if (message == null) {
        message = new Label(text, game.getResourcesManager().getStyles().skin, "header", Color.ORANGE);
        container = new Stack();
        container.add(message);
        container.setPosition(Gdx.graphics.getWidth() / 2- container.getWidth() / 2,
                Gdx.graphics.getHeight() + container.getHeight());
        container.setVisible(false);
        stage.addActor(container);

    } else if (!container.isVisible()) {
        message.setText(text);
        container.pack();
        MoveToAction action = Actions.action(MoveToAction.class);
        action.setPosition(Gdx.graphics.getWidth() / 2 - container.getWidth() / 2,
                Gdx.graphics.getHeight() / 2 - container.getHeight() / 2);
        action.setDuration(time);
        action.setInterpolation(Interpolation.bounceIn);

        container.addAction(Actions.sequence(action, Actions.delay(1f),
                Actions.run(new Runnable() {
                    public void run() {
                        Gdx.app.log(Constants.LOG, "Show Message Actions complete!");
                        DreamsGame.setGameState(gameState);
                        container.setVisible(false);
                    }
                })
        ));
        container.setVisible(true);
    }

}
项目:ingress-indonesia-dev    文件:PortalInfoDialog.java   
private Actor m()
{
  try
  {
    com.nianticproject.ingress.shared.aj.a("createActionButtonTable");
    this.O = new Stack();
    n();
    Stack localStack = this.O;
    return localStack;
  }
  finally
  {
    com.nianticproject.ingress.shared.aj.b();
  }
}
项目:ingress-indonesia-dev    文件:b.java   
b(String paramString1, String paramString2, String paramString3, ActionButton.ActionButtonStyle paramActionButtonStyle)
{
  this.d = paramActionButtonStyle;
  this.a = new Label(paramString1, paramActionButtonStyle.mainLabelStyle);
  this.b = new Label(paramString2, paramActionButtonStyle.subLabelStyle);
  this.c = new Label(paramString3, paramActionButtonStyle.errorLabelStyle);
  this.f = new ScrollLabel("", paramActionButtonStyle.mainLabelStyle);
  this.g = new Stack();
  this.g.addActor(this.a);
  this.e = ActionButton.a(this.g, this.b, paramActionButtonStyle);
}
项目:ingress-indonesia-dev    文件:bd.java   
public static Stack a(Actor[] paramArrayOfActor)
{
  Stack localStack = new Stack();
  int i = paramArrayOfActor.length;
  for (int j = 0; j < i; j++)
    localStack.addActor(paramArrayOfActor[j]);
  return localStack;
}
项目:cll1-gdx    文件:LearningSession.java   
public LearningSession(AbstractGame game, int session, Deck<CardData> masterDeck, Deck<CardData> activeDeck) {
    super(game);
    this.session = session;
    this.masterDeck = masterDeck;
    this.activeDeck = activeDeck;
    setBackdrop(CLL1.BACKDROP);
    setSkin(CLL1.SKIN);

    log("Session: " + session);
    log("Master Deck Size: " + masterDeck.size());
    log("Active Deck Size: " + activeDeck.size());
    log("First Time: " + (activeDeck.size() == 0));

    stage.addAction(actionUpdateTimeLeft());

    lblCountdown = new Label("0:00", skin);
    lblCountdown.setFontScale(.75f);

    challengeText = new Label("", skin);
    choice1 = new Stack();
    choice2 = new Stack();

    choice1.setTouchable(Touchable.childrenOnly);
    choice2.setTouchable(Touchable.childrenOnly);

    Gdx.app.postRunnable(init1);
    Gdx.app.postRunnable(init2);
    Gdx.app.postRunnable(firstPlay);

    assets.load(CHECKMARK, Texture.class);
    assets.load(XMARK, Texture.class);
    assets.finishLoadingAsset(CHECKMARK);
    assets.finishLoadingAsset(XMARK);
    checkmark = assets.get(CHECKMARK, Texture.class);
    xmark = assets.get(XMARK, Texture.class);
    imgCheckmark = new Image(checkmark);
    imgCheckmark.setScaling(Scaling.fit);
    imgCheckmark.setColor(new Color(Color.FOREST));
    imgCheckmark.getColor().a = .75f;
    imgXmark = new Image(xmark);
    imgXmark.setScaling(Scaling.fit);
    imgXmark.setColor(new Color(Color.FIREBRICK));
    imgXmark.getColor().a = .75f;

    assets.load(BUZZER, Sound.class);
    assets.load(DING, Sound.class);
}
项目:umbracraft    文件:EditorLayout.java   
public EditorLayout() {
    Editor.publisher().subscribe(this);
    modules = new Array<Module<?>>();
    addModules();
    Gdx.input.setInputProcessor(stage);
    Table root = new Table();
    root.setFillParent(true);
    final Table menu = new Table();
    content = new Table();
    tooltip = new Table();
    for (final Module<?> m : modules) {
        menu.defaults().uniformX().expandX().fillX();
        menu.add(m.getButton()).row();
        m.getButton().addListener(new ClickListener() {
            @Override
            public void clicked(InputEvent event, float x, float y) {
                content.clear();
                m.populate(content);
            }
        });
    }
    Stack stack = new Stack();
    stack.add(content);
    stack.add(tooltip);
    final ScrollPane scroll = new ScrollPane(stack) {
        @Override
        public void act(float delta) {
            if (!Gdx.input.isKeyPressed(Keys.SHIFT_LEFT)) {
                super.act(delta);
            }
        }

    };
    root.add(topnav()).expandX().fill().height(40).padBottom(10).row();
    root.add(new Table() {
        {
            add(menu).expandY().top();
            add(scroll).expand().fill();
        }
    }).expand().fill().padLeft(5);
    stage.addActor(root);
    tooltipWindow = new Table();
    tooltipWindow.setTransform(true);
    tooltipWindow.getColor().a = 0;
    tooltipWindow.add(tooltipLabel = new VisLabel(""));
    tooltipWindow.setBackground(Drawables.get("blue"));
    tooltip.addActor(tooltipWindow);
}
项目:gdx-lml    文件:StackLmlTag.java   
@Override
protected Group getNewInstanceOfGroup(final LmlActorBuilder builder) {
    return new Stack();
}
项目:GdxStudio    文件:Serializer.java   
@Override
public Group read(Json json, JsonValue jv, Class arg2) {
    Stack label = new Stack();
    readGroup(jv, label);
    return label;
}
项目:ingress-indonesia-dev    文件:o.java   
public final void a(Skin paramSkin, Stage paramStage)
{
  Table localTable1 = new Table();
  localTable1.setWidth(paramStage.getWidth());
  localTable1.setHeight(paramStage.getHeight());
  Label localLabel = new Label("Select Agent Avatar", (Label.LabelStyle)paramSkin.get("profiles-avatar-title", Label.LabelStyle.class));
  Table localTable2 = new Table();
  localTable2.setBackground(new NinePatchDrawable(paramSkin.getPatch("default-panel")));
  float f1 = localLabel.getStyle().font.getCapHeight();
  localTable2.add(localLabel).o().k().c(1.35F * f1).h(0.2F * -f1).i(0.2F * f1);
  localTable1.add(localTable2).o().g();
  localTable1.row();
  this.h = new Table();
  Table localTable3 = new Table();
  int i1 = (int)(0.2F * paramStage.getWidth());
  this.m = new h(paramSkin, this.a);
  this.n = new h(paramSkin, this.a);
  float f2 = l.a(6.0F);
  this.o = new a(com.nianticproject.ingress.shared.playerprofile.a.b, paramSkin, this, f2);
  this.p = new a(com.nianticproject.ingress.shared.playerprofile.a.a, paramSkin, this, f2);
  this.k = new WidgetCarousel(i1, i1, (WidgetCarousel.WidgetCarouselStyle)paramSkin.get("profiles-avatar-carousel", WidgetCarousel.WidgetCarouselStyle.class), this.m);
  localTable3.add(a(com.nianticproject.ingress.shared.playerprofile.a.b, paramSkin, this.k, new e(this), this.o)).o().g();
  localTable3.row();
  localTable3.add(new Image(com.nianticproject.ingress.common.b.c.a(paramSkin, 16755791))).b(l.a(2.0F)).c(l.a(8.0F));
  localTable3.row();
  this.l = new WidgetCarousel(i1, i1, (WidgetCarousel.WidgetCarouselStyle)paramSkin.get("profiles-avatar-carousel", WidgetCarousel.WidgetCarouselStyle.class), this.n);
  localTable3.add(a(com.nianticproject.ingress.shared.playerprofile.a.a, paramSkin, this.l, new e(this), this.p)).o().g();
  this.h.add(localTable3).o().g().j().h(l.a(8.0F));
  this.h.row();
  Stack localStack = new Stack();
  Table localTable4 = new Table();
  Table localTable5 = new Table();
  this.f = new AvatarView(this.q, this.b, this.c, this.a, paramSkin);
  this.f.setTouchable(Touchable.disabled);
  localTable4.add(this.f).a(l.a(116.0F), l.a(116.0F)).j(l.a(24.0F));
  localTable5.add(localTable4).n().f().i();
  com.nianticproject.ingress.common.ui.widget.f localf1 = new com.nianticproject.ingress.common.ui.widget.f("DONE", paramSkin);
  localf1.addListener(new p(this));
  Table localTable6 = new Table();
  Table localTable7 = new Table();
  localTable6.add(localf1).b(3.5F * f1).c(1.85F * f1);
  localTable7.add(localTable6).n().m().l().j(l.a(8.0F));
  localStack.add(localTable4);
  localStack.add(localTable7);
  this.h.add(localStack).n().f().h(l.a(8.0F));
  this.i = new Table();
  ProgressIndicator localProgressIndicator = new ProgressIndicator(paramSkin);
  localProgressIndicator.a(true);
  this.i.add(localProgressIndicator);
  this.j = new Table();
  this.g = new Label("", (Label.LabelStyle)paramSkin.get("profiles-avatar-error-label", Label.LabelStyle.class));
  com.nianticproject.ingress.common.ui.widget.f localf2 = new com.nianticproject.ingress.common.ui.widget.f("RETRY", paramSkin);
  localf2.addListener(new q(this));
  this.j.add(this.g);
  this.j.row();
  this.j.add(localf2).h(l.a(8.0F));
  Actor[] arrayOfActor = new Actor[3];
  arrayOfActor[0] = this.h;
  arrayOfActor[1] = this.i;
  arrayOfActor[2] = this.j;
  localTable1.stack(arrayOfActor).n().f().i(l.a(24.0F)).k(l.a(24.0F));
  paramStage.addActor(localTable1);
  a(t.c);
}
项目:ingress-indonesia-dev    文件:PortalInfoDialog.java   
private Actor d()
{
  try
  {
    com.nianticproject.ingress.shared.aj.a("createImageTable");
    this.y = new Image();
    this.y.getColor().a = 0.0F;
    this.y.setAlign(1);
    this.y.setScaling(Scaling.fit);
    this.A = new Image(this.w.getDrawable("add-photo"));
    this.A.setVisible(false);
    Table localTable1 = new Table();
    localTable1.add(this.A).m().n();
    this.z = new Stack();
    Actor[] arrayOfActor1 = new Actor[2];
    arrayOfActor1[0] = this.y;
    arrayOfActor1[1] = localTable1;
    this.z = bd.a(arrayOfActor1);
    this.B = new ScrollLabel("loading...", (Label.LabelStyle)this.w.get("default-button", Label.LabelStyle.class), 16.0F);
    this.B.addAction(com.nianticproject.ingress.common.ui.a.a.a(this.B, 3.0F));
    this.B.setAlignment(1);
    Table localTable2 = new Table();
    this.ae = new Stack();
    this.ad = new Label(null, (Label.LabelStyle)this.w.get("portal-attribution", Label.LabelStyle.class));
    this.ac = new Image();
    this.ac.setDrawable(this.w.getDrawable("text-bg-fade"));
    Actor[] arrayOfActor2 = new Actor[2];
    arrayOfActor2[0] = this.ac;
    arrayOfActor2[1] = this.ad;
    this.ae = bd.a(arrayOfActor2);
    localTable2.add(new Image(this.w.getDrawable("info-icon"))).k().l().n();
    localTable2.add(this.ae).m().l().n().g(ag);
    Actor[] arrayOfActor3 = new Actor[3];
    arrayOfActor3[0] = this.B;
    arrayOfActor3[1] = this.z;
    arrayOfActor3[2] = localTable2;
    Stack localStack = bd.a(arrayOfActor3);
    Table localTable3 = new Table();
    localTable3.setBackground(this.w.getDrawable("gradient-bg"));
    localTable3.add(localStack).n().f().d(af);
    localTable3.addListener(new ar(this, localTable3));
    return localTable3;
  }
  finally
  {
    com.nianticproject.ingress.shared.aj.b();
  }
}
项目:ingress-indonesia-dev    文件:c.java   
public final Actor a(Skin paramSkin, Stage paramStage)
{
  this.b = ((Skin)an.a(paramSkin));
  this.t = paramSkin.getDrawable("item-disabled-selected");
  this.u = paramSkin.getDrawable("item-disabled-unselected");
  this.v = paramSkin.getDrawable("item-enabled-selected");
  this.w = paramSkin.getDrawable("item-enabled-unselected");
  Drawable localDrawable = com.nianticproject.ingress.common.b.c.a(paramSkin, ea.b);
  this.x = new com.nianticproject.ingress.common.ui.widget.as(new f(this), paramSkin, paramStage, true, this.q, this.n);
  this.h = new w(" ", (Label.LabelStyle)paramSkin.get("details-title", Label.LabelStyle.class), 0.3F);
  this.h.a(8);
  Table localTable1 = new Table();
  localTable1.add(this.h).k().o().i(this.h.getPrefHeight());
  localTable1.setBackground(localDrawable);
  float f1 = 0.2F * -this.h.getPrefHeight();
  float f2 = 0.07F * -this.h.getPrefHeight();
  this.h.padTop(f1).padBottom(f2);
  this.j = new w(" ", (Label.LabelStyle)paramSkin.get("fc-error-message", Label.LabelStyle.class), 0.3F);
  this.j.a(8);
  Table localTable2 = new Table();
  localTable2.add(this.j).k().o().i(this.h.getPrefHeight());
  g localg = new g(this);
  localg.add(this.x).n().f();
  localg.row();
  this.m = new al(paramSkin, 0);
  this.m.a();
  this.m.c();
  this.m.b();
  this.m.defaults().k();
  localg.add(this.m).m().g(com.a.a.e.b(0.01F));
  localg.row();
  Stack localStack = bd.a(new Actor[] { localTable1, localTable2 });
  this.F = com.nianticproject.ingress.common.ui.a.c.a(localStack);
  localg.add(localStack).o().g();
  int i1 = (int)(0.22F * Gdx.graphics.getWidth());
  this.i = new ar(i1, (int)(1.0F * i1), (WidgetCarousel.WidgetCarouselStyle)paramSkin.get("modBrowser2", WidgetCarousel.WidgetCarouselStyle.class));
  this.G = com.nianticproject.ingress.common.ui.a.c.a(this.i);
  this.i.a(new h(this));
  localg.row();
  localg.add(this.i);
  h();
  this.C = true;
  return localg;
}