@Override public void stylePropertyChanged(StyleProperty styleProperty, Actor styleActor) { if (styleProperty.type == Drawable.class) { dialogFactory.showDialogDrawables(styleProperty); } else if (styleProperty.type == Color.class) { dialogFactory.showDialogColors(styleProperty); } else if (styleProperty.type == BitmapFont.class) { dialogFactory.showDialogFonts(styleProperty); } else if (styleProperty.type == Float.TYPE) { main.getUndoableManager().addUndoable(new UndoableManager.DoubleUndoable(main, styleProperty, ((Spinner) styleActor).getValue()), false); } else if (styleProperty.type == ScrollPaneStyle.class) { main.getUndoableManager().addUndoable(new UndoableManager.SelectBoxUndoable(root, styleProperty, (SelectBox) styleActor), true); } else if (styleProperty.type == LabelStyle.class) { main.getUndoableManager().addUndoable(new UndoableManager.SelectBoxUndoable(root, styleProperty, (SelectBox) styleActor), true); } else if (styleProperty.type == ListStyle.class) { main.getUndoableManager().addUndoable(new UndoableManager.SelectBoxUndoable(root, styleProperty, (SelectBox) styleActor), true); } }
protected final Actor b(Skin paramSkin, Stage paramStage) { Label.LabelStyle localLabelStyle = new Label.LabelStyle((Label.LabelStyle)paramSkin.get("default", Label.LabelStyle.class)); localLabelStyle.fontColor = Color.WHITE; Label localLabel = new Label(this.a, localLabelStyle); localLabel.setWrap(true); localLabel.setAlignment(10); localLabel.setWidth(0.95F * paramStage.getWidth()); localLabel.setHeight(0.95F * paramStage.getHeight()); h localh = new h(localLabel, new ScrollPane.ScrollPaneStyle(), 0.0F, this.b, this.c); localh.setScrollY(0.0F); Table localTable = new Table(); localTable.setWidth(paramStage.getWidth() - 10.0F); localTable.setHeight(0.3F * paramStage.getHeight()); localTable.setX(5.0F); localTable.setY(5.0F); localTable.add(localh).a(e.a(1.0F)).b(e.b(1.0F)).a(4.0F, 4.0F, 4.0F, 4.0F).l().i(); return localTable; }
protected final Table b(Skin paramSkin, float paramFloat) { Label localLabel = new Label("Welcome, friend, to the struggle for a brighter age. Recruit the like minded for the Enlightened.\n\nSeek the future. Find a nearby Portal. Claim it. XM is power. XM is evolution. XM is all. Spread the enlightenment.\n\n- Collect XM\n- Discover and claim new Portals\n- Link Portals to form XM Fields\n- Dismantle Resistance XM Fields\n\n", (Label.LabelStyle)paramSkin.get("jarvis-message-label", Label.LabelStyle.class)); localLabel.setWrap(true); localLabel.setAlignment(10); localLabel.setWidth(paramFloat * 0.9F); localLabel.layout(); h localh = new h(localLabel, new ScrollPane.ScrollPaneStyle(), 0.0F, bs.l.c(), 0.05F); localh.setScrollPercentY(0.0F); localh.setScrollingDisabled(true, false); Table localTable = new Table(); localTable.setX(0.0F); localTable.setWidth(paramFloat); localTable.add(localh).l().k().a(e.a(0.9F)).b(e.b(0.9F)).g(15.0F).e(e.b(0.1F)); return localTable; }
protected final Table b(Skin paramSkin, float paramFloat) { Label localLabel = new Label("Authentication complete. You are now a Humanist agent. Our struggle is only beginning. If you know others who want to save the future, initiate them.\n\nKeep Exploring. Find a Portal near you. Claim it. Save humanity. Save yourself. Resist corrupting thoughts.\n\n- Collect XM\n- Discover and claim new Portals\n- Link Portals to form XM Fields\n- Dismantle Enlightened XM Fields\n\n", (Label.LabelStyle)paramSkin.get("message-label", Label.LabelStyle.class)); localLabel.setWrap(true); localLabel.setAlignment(10); localLabel.setWidth(paramFloat * 0.9F); localLabel.layout(); h localh = new h(localLabel, new ScrollPane.ScrollPaneStyle(), 0.0F, bs.j.c(), 0.05F); localh.setScrollPercentY(0.0F); localh.setScrollingDisabled(true, false); Table localTable = new Table(); localTable.setX(0.0F); localTable.setWidth(paramFloat); localTable.add(localh).l().k().a(e.a(0.9F)).b(e.b(0.95F)).a(10.0F, 10.0F, 10.0F, 10.0F); return localTable; }
public final void a(Skin paramSkin, Stage paramStage) { this.k = ((Label.LabelStyle)paramSkin.get("mission-list", Label.LabelStyle.class)); this.l = ((Label.LabelStyle)paramSkin.get("mission-list-disabled", Label.LabelStyle.class)); this.d = ((TextButton.TextButtonStyle)paramSkin.get("mission-list", TextButton.TextButtonStyle.class)); this.e = ((TextButton.TextButtonStyle)paramSkin.get("mission-list-completed", TextButton.TextButtonStyle.class)); this.f = ((TextButton.TextButtonStyle)paramSkin.get("mission-list-selected", TextButton.TextButtonStyle.class)); this.g = ((Button.ButtonStyle)paramSkin.get("default", TextButton.TextButtonStyle.class)); this.h = ((Button.ButtonStyle)paramSkin.get("disabled", Button.ButtonStyle.class)); this.o = paramSkin.getDrawable("nav-button-clear"); this.b = new Table(); this.b.setWidth(paramStage.getWidth()); this.b.setHeight(paramStage.getHeight()); cc.a(this.a, new aa(paramSkin, (int)paramStage.getWidth(), cc.b(this.a), com.nianticproject.ingress.common.ui.widget.ag.c)); this.b.add(cc.c(this.a)); this.b.row(); this.c = new Table(); this.c.setWidth(-10 + (int)paramStage.getWidth()); ScrollPane localScrollPane = new ScrollPane(this.c, new ScrollPane.ScrollPaneStyle()); localScrollPane.setScrollY(0.0F); localScrollPane.setScrollingDisabled(true, false); this.b.add(localScrollPane).g().o().p().j().a(5.0F, 5.0F, 5.0F, 5.0F); paramStage.addActor(this.b); }
public LogMenu() { label = new Label("", new LabelStyle(Fonts.smallHUD, Color.BLACK)); label.setWrap(true); Drawable background = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/LogBackground.png")); scrollPane = new ScrollPane(label, new ScrollPaneStyle(background, null, null, null, null)); scrollPane.setScrollingDisabled(true, false); back = MenuTools.getBackButton(this); stage.addActor(scrollPane); stage.addActor(back); refresh(); }
private void addScrollPaneStyles() { ScrollPaneStyle style = new ScrollPaneStyle(); Drawable scroll = newDrawable("pixel", 1, 1, 1, 0.20f); Drawable knob = newDrawable("pixel", 1, 1, 1, 0.40f); scroll.setMinWidth(10); knob.setMinWidth(10); style.vScroll = style.hScroll = scroll; style.vScrollKnob = style.hScrollKnob = knob; add("default", style); }
@Override public void layout () { Drawable bg = style.background; BitmapFont font = style.font; if (bg != null) { prefHeight = Math.max(bg.getTopHeight() + bg.getBottomHeight() + font.getCapHeight() - font.getDescent() * 2, bg.getMinHeight()); } else prefHeight = font.getCapHeight() - font.getDescent() * 2; float maxItemWidth = 0; for (int i = 0; i < items.size; i++) maxItemWidth = Math.max(font.getBounds(items.get(i).toString()).width, maxItemWidth); prefWidth = maxItemWidth; if (bg != null) prefWidth += bg.getLeftWidth() + bg.getRightWidth(); ListStyle listStyle = style.listStyle; ScrollPaneStyle scrollStyle = style.scrollStyle; prefWidth = Math.max( prefWidth, maxItemWidth + (scrollStyle.background == null ? 0 : scrollStyle.background.getLeftWidth() + scrollStyle.background.getRightWidth()) + listStyle.selection.getLeftWidth() + listStyle.selection.getRightWidth() + Math.max(style.scrollStyle.vScroll != null ? style.scrollStyle.vScroll.getMinWidth() : 0, style.scrollStyle.vScrollKnob != null ? style.scrollStyle.vScrollKnob.getMinWidth() : 0)); }
public SelectBoxStyle (BitmapFont font, Color fontColor, Drawable background, ScrollPaneStyle scrollStyle, ListStyle listStyle) { this.font = font; this.fontColor.set(fontColor); this.background = background; this.scrollStyle = scrollStyle; this.listStyle = listStyle; }
public SelectBoxStyle (SelectBoxStyle style) { this.font = style.font; this.fontColor.set(style.fontColor); if (style.disabledFontColor != null) this.disabledFontColor = new Color(style.disabledFontColor); this.background = style.background; this.backgroundOver = style.backgroundOver; this.backgroundOpen = style.backgroundOpen; this.backgroundDisabled = style.backgroundDisabled; this.scrollStyle = new ScrollPaneStyle(style.scrollStyle); this.listStyle = new ListStyle(style.listStyle); }
public ScrollList (ListStyle liststyle,ScrollPaneStyle scrollpanestyle ) { super(); list = new List (new String[]{""},liststyle); scrollpane = new ScrollPane (list,scrollpanestyle); scrollpane.setFadeScrollBars(false); addActor(scrollpane); }
public FilesListWidget(Skin skin) { super(false); style = skin.get(FilesListWidgetStyle.class); folderStyle = new FileIconWidgetStyle(style.folderIcon, style.font, style.fontColor, style.selected, style.over); fileStyle = new FileIconWidgetStyle(style.fileIcon, style.font, style.fontColor, style.selected, style.over); filesContainer = new Group(); ScrollPaneStyle scrollStyle = skin.get(ScrollPaneStyle.class); scrollPane = new ScrollPane(filesContainer, scrollStyle); scrollPane.setFlickScroll(false); scrollPane.setFlingTime(0); scrollPane.setSmoothScrolling(false); currentPath = new TextField("", skin); currentPath.addListener(new InputListener() { @Override public boolean keyDown(InputEvent event, int keycode) { switch (keycode) { case Keys.ENTER: String path = currentPath.getText(); FileHandle fileHandle = Gdx.files.absolute(path); if (fileHandle.exists()) { setSelectedFile(fileHandle, true); } return true; } return false; } }); add(currentPath).expandX(); add(scrollPane).expand(true, true); }
public a(com.nianticproject.ingress.shared.playerprofile.a parama, Skin paramSkin, c paramc, float paramFloat) { this.a = ((com.nianticproject.ingress.shared.playerprofile.a)an.a(parama)); this.b = ((Skin)an.a(paramSkin)); this.c = ((c)an.a(paramc)); this.h = l.a(32.0F); this.g = paramFloat; this.f = new Table(); this.f.defaults().j(l.a(8.0F)); ScrollPane.ScrollPaneStyle localScrollPaneStyle = (ScrollPane.ScrollPaneStyle)paramSkin.get("avatar-color-picker", ScrollPane.ScrollPaneStyle.class); ScrollPane localScrollPane = new ScrollPane(this.f, localScrollPaneStyle); localScrollPane.setScrollingDisabled(false, true); localScrollPane.setFadeScrollBars(false); add(localScrollPane).o().g().c(this.h + 2.0F * paramFloat); }
public aa(Skin paramSkin, int paramInt, af paramaf, ag paramag) { this.c = paramSkin; this.a = paramaf; this.b = paramag; this.e = new Table(); this.d = new ab(this, this.e, new ScrollPane.ScrollPaneStyle()); setWidth(paramInt); this.d.setWidth(paramInt); this.d.setScrollingDisabled(false, true); Table localTable1 = new Table(); Table localTable2 = new Table(); localTable2.setBackground(paramSkin.getDrawable("ops-title-background")); localTable1.add(localTable2).o().g(); Label localLabel = new Label("OPS", paramSkin, "ops-title"); localLabel.setAlignment(16, 16); localTable2.add(localLabel).o().g().m().h(e.a(0.02F)); localTable1.row(); Table localTable3 = new Table(); this.f = new Table(); this.f.setBackground(paramSkin.getDrawable("ops-scroll-indicator-left")); this.g = new Table(); this.g.setBackground(paramSkin.getDrawable("ops-scroll-indicator-right")); localTable3.add(this.f).n().f().k().a(e.a(0.1F)); localTable3.add(this.g).n().f().m().a(e.a(0.1F)); Actor[] arrayOfActor = new Actor[2]; arrayOfActor[0] = this.d; arrayOfActor[1] = localTable3; localTable1.stack(arrayOfActor); Table localTable4 = new Table(); localTable4.setWidth(getWidth()); localTable4.setHeight(getHeight()); Button localButton = new Button(paramSkin, "ops-close"); localButton.addListener(new ac(this)); localTable4.add(localButton).n().k().j(); stack(new Actor[] { localTable1, localTable4 }); }
public h(Actor paramActor, ScrollPane.ScrollPaneStyle paramScrollPaneStyle, float paramFloat1, float paramFloat2, float paramFloat3) { super(paramActor, paramScrollPaneStyle); this.c = paramFloat2; this.d = paramFloat3; this.e = paramFloat1; this.f = 0L; if (paramFloat1 > 0.0F); for (this.h = (0.5F * (paramFloat1 * paramFloat2)); ; this.h = 0.0F) { setScrollingDisabled(true, false); addListener(new i(this)); return; } }
public void resetProperties() { properties.clear(); if (clazz.equals(Button.class)) { newStyleProperties(ButtonStyle.class); } else if (clazz.equals(CheckBox.class)) { newStyleProperties(CheckBoxStyle.class); properties.get("checkboxOn").optional = false; properties.get("checkboxOff").optional = false; properties.get("font").optional = false; } else if (clazz.equals(ImageButton.class)) { newStyleProperties(ImageButtonStyle.class); } else if (clazz.equals(ImageTextButton.class)) { newStyleProperties(ImageTextButtonStyle.class); properties.get("font").optional = false; } else if (clazz.equals(Label.class)) { newStyleProperties(LabelStyle.class); properties.get("font").optional = false; } else if (clazz.equals(List.class)) { newStyleProperties(ListStyle.class); properties.get("font").optional = false; properties.get("fontColorSelected").optional = false; properties.get("fontColorUnselected").optional = false; properties.get("selection").optional = false; } else if (clazz.equals(ProgressBar.class)) { newStyleProperties(ProgressBarStyle.class); //Though specified as optional in the doc, there are bugs without "background" being mandatory properties.get("background").optional = false; } else if (clazz.equals(ScrollPane.class)) { newStyleProperties(ScrollPaneStyle.class); } else if (clazz.equals(SelectBox.class)) { newStyleProperties(SelectBoxStyle.class); properties.get("font").optional = false; properties.get("fontColor").optional = false; properties.get("scrollStyle").optional = false; properties.get("scrollStyle").value = "default"; properties.get("listStyle").optional = false; properties.get("listStyle").value = "default"; } else if (clazz.equals(Slider.class)) { newStyleProperties(SliderStyle.class); //Though specified as optional in the doc, there are bugs without "background" being mandatory properties.get("background").optional = false; } else if (clazz.equals(SplitPane.class)) { newStyleProperties(SplitPaneStyle.class); properties.get("handle").optional = false; } else if (clazz.equals(TextButton.class)) { newStyleProperties(TextButtonStyle.class); properties.get("font").optional = false; } else if (clazz.equals(TextField.class)) { newStyleProperties(TextFieldStyle.class); properties.get("font").optional = false; properties.get("fontColor").optional = false; } else if (clazz.equals(TextTooltip.class)) { newStyleProperties(TextTooltipStyle.class); properties.get("label").optional = false; properties.get("label").value = "default"; } else if (clazz.equals(Touchpad.class)) { newStyleProperties(TouchpadStyle.class); } else if (clazz.equals(Tree.class)) { newStyleProperties(TreeStyle.class); properties.get("plus").optional = false; properties.get("minus").optional = false; } else if (clazz.equals(Window.class)) { newStyleProperties(WindowStyle.class); properties.get("titleFont").optional = false; } }
@Override public Actor parse(CocoStudioUIEditor editor, ObjectData widget) { ScrollPaneStyle style = new ScrollPaneStyle(); if (widget.getFileData() != null) { style.background = editor .findDrawable(widget, widget.getFileData()); } ScrollPane scrollPane = new ScrollPane(null, style); if ("Vertical_Horizontal".equals(widget.getScrollDirectionType())) { scrollPane.setForceScroll(true, true); } else if ("Horizontal".equals(widget.getScrollDirectionType())) { scrollPane.setForceScroll(true, false); } else if ("Vertical".equals(widget.getScrollDirectionType())) { scrollPane.setForceScroll(false, true); } scrollPane.setClamp(widget.isClipAble()); scrollPane.setFlickScroll(widget.isIsBounceEnabled()); Table table = new Table(); table.setSize(widget.getInnerNodeSize().getWidth(), widget .getInnerNodeSize().getHeight()); if (widget.getComboBoxIndex() == 0) {// 无颜色 } else if (widget.getComboBoxIndex() == 1) {// 单色 Pixmap pixmap = new Pixmap((int) table.getWidth(), (int) table.getHeight(), Format.RGBA8888); Color color = editor.getColor(widget.getSingleColor(), widget.getBackColorAlpha()); pixmap.setColor(color); pixmap.fill(); Drawable drawable = new TextureRegionDrawable(new TextureRegion( new Texture(pixmap))); table.setBackground(drawable); pixmap.dispose(); } scrollPane.setWidget(table); return scrollPane; }
public CreditsTable() { header = new Label("Credits", GuiStyles.headerLabelStyle); resourcesHeader = new Label("Resources", GuiStyles.normalLabelStyle); playButton = new PlayButton(); menuButton = new MenuButton(); innerTable = new Table(); scrollPane = new ScrollPane(innerTable); ScrollPaneStyle scrollPaneStyle = new ScrollPaneStyle(); scrollPane.setStyle(scrollPaneStyle); Texture bg = new Texture(Gdx.files.internal("border.png")); /*TextureRegion leftCorner = new TextureRegion(bg, 0, 0, 16, 16); TextureRegion top = new TextureRegion(bg, 16, 0, 64, 16); Texture topTex = top;*/ scrollPaneStyle.background = new NinePatchDrawable(new NinePatch(new TextureRegion(bg), 16, 16, 16, 16)); scrollPaneStyle.vScrollKnob = new NinePatchDrawable(new NinePatch(new Texture(Gdx.files.internal("knob.png")), 3, 3, 3, 3)); scrollPane.setFadeScrollBars(false); addCreditsHeader("Developers", innerTable); addCredits("Creator:", "mcprog", innerTable); addCreditsHeader("Resources", innerTable); addCredits("Death Sound:", "braqoon", innerTable); addCredits("Trees:", "Reiner \"Tiles\" Prokein", innerTable); addCredits("Font:", "DeNada Industries", innerTable); addCreditsHeader("Shout Out", innerTable); addShoutOut("CSWS", innerTable); addShoutOut("History Channel's Vikings", innerTable); addShoutOut("ime990", innerTable); addShoutOut("Kai_Valhalla", innerTable); addShoutOut("Scandinavia", innerTable); add(header).colspan(2); row(); add(scrollPane).colspan(2).height(300).width(900); row(); add(playButton).pad(20); add(menuButton).pad(20); }
public ScrollList (Skin skin) { this(skin.get(ListStyle.class), skin.get(ScrollPaneStyle.class)); }
public LicenseScreen (Game g) { game = g; stage = new Stage(new FitViewport(WIDTH, HEIGHT)); skin = new Skin(); assets = new Assets(); assets.initMainMenu(); Gdx.input.setInputProcessor(stage); FileHandle handle; handle = Gdx.files.internal(LICENSE_PATH); licenseString = handle.readString(); Table table = new Table(); table.setFillParent(true); stage.addActor(table); skin.add("default", new BitmapFont(Gdx.files.internal(FONT_PATH))); LabelStyle labelStyle = new LabelStyle(); labelStyle.font = skin.getFont("default"); skin.add("default", labelStyle); ScrollPaneStyle scrollPaneStyle = new ScrollPaneStyle(); skin.add("default", scrollPaneStyle); TextButtonStyle textButtonStyle = new TextButtonStyle(); textButtonStyle.font = skin.getFont("default"); textButtonStyle.up = new NinePatchDrawable(assets.getBoxPatch()); skin.add("default", textButtonStyle); Label license = new Label(licenseString, skin); ScrollPane scrollPane = new ScrollPane(license, skin); scrollPane.setFlickScroll(true); table.add(scrollPane); table.row(); TextButton backButton = new TextButton("Back", skin); table.add(backButton).padTop(TABLE_PAD); table.padTop(TABLE_PAD); table.padBottom(TABLE_PAD); table.row(); backButton.addListener(new ChangeListener() { public void changed (ChangeEvent event, Actor actor) { dispose(); game.setScreen(new MainMenuScreen(game)); } }); }
public CategoryStatsScreen(MissingWords missingWords) { super(missingWords); font = new BitmapFont(Gdx.files.internal("fonts/title.fnt"), Gdx.files.internal("fonts/title.png"), false); fontList = new BitmapFont(Gdx.files.internal("fonts/listFont.fnt"), Gdx.files.internal("fonts/listFont.png"), false); /* Creamos el fondo de pantalla */ background = new Background(MissingWords.myManager.get("background.png", Texture.class)); stage.addActor(background); /* Creamos el bot�n de vuelta atr�s */ backButton = new BackButton(); backButton.addListener(new BackButtonListener(missingWords)); /* Creamos la tabla que ocupar� todo el stage (pantalla) */ stageTable = new Table(); stageTable.setFillParent(true); /* Creamos la etiqueta de la categor�a */ title = new Label(null, new LabelStyle(font, font.getColor())); /* Creamos el progreso de la categor�a */ progress = new Label(null, new LabelStyle(font, font.getColor())); /* Creamos la lista de palabras de la categor�a */ list = new List<String>(new ListStyle( fontList, fontList.getColor(), fontList.getColor(), new TextureRegionDrawable( new TextureRegion(MissingWords.myManager.get("selection.png", Texture.class))))); /* Creamos el scroll para la lista de palabras */ ScrollPane scroll = new ScrollPane(list, new ScrollPaneStyle(new TextureRegionDrawable( new TextureRegion(MissingWords.myManager.get("background.png", Texture.class))), null, null, new TextureRegionDrawable( new TextureRegion(MissingWords.myManager.get("verticalScroll.png", Texture.class))), new TextureRegionDrawable( new TextureRegion(MissingWords.myManager.get("squareBlue.png", Texture.class))))); /* Creamos la tabla izquierda del SplitPane */ left = new Table(); left.add(title).expand(); left.row(); left.add(progress).expand(); left.row(); left.add(backButton).align(Align.left).pad(10); /* Creamos la tabla derecha del SplitPane */ right = new Table(); right.add(scroll).fill().expand(); /* Creamos el SplitPane */ SplitPane split = new SplitPane(left, right, false, new SplitPaneStyle( new TextureRegionDrawable( new TextureRegion(MissingWords.myManager.get("split.png", Texture.class))))); stageTable.add(split).fill().expand(); // A�adimos el SplitPane a la stageTable stage.addActor(stageTable); // A�adimos la stageTable al stage }
public void setStyle(ScrollPaneStyle style) { if (style == null) throw new IllegalArgumentException("style cannot be null."); this.style = style; invalidateHierarchy(); }
public final void a(Skin paramSkin, Stage paramStage) { Table localTable1 = new Table(); localTable1.setWidth(paramStage.getWidth()); localTable1.setHeight(paramStage.getHeight()); Table localTable2 = new Table(); this.f = new al(this.b, paramStage, paramSkin, this.c); localTable2.add(this.f).o().g().h(24.0F); localTable2.row(); localTable2.add(new Image(com.nianticproject.ingress.common.b.c.a(paramSkin, 46783))).c(l.a(2.0F)).o().g(); localTable2.row(); Table localTable3 = new Table(); this.m = new Label("", (Label.LabelStyle)paramSkin.get("profiles-select-badge-for-details", Label.LabelStyle.class)); paramSkin.get("default", TextButton.TextButtonStyle.class); localTable3.add(this.m); localTable2.add(localTable3).h(l.a(16.0F)).j(l.a(16.0F)); localTable2.row(); float f1 = l.a(24.0F); this.g = new z(this.a, paramSkin, this.b, null, Integer.valueOf(5), localTable1.getWidth(), f1, 0.0F, 0.0F); Table localTable4 = new Table(); localTable4.top(); localTable4.add(this.g).o().g().k(f1); ScrollPane localScrollPane = new ScrollPane(localTable4, (ScrollPane.ScrollPaneStyle)paramSkin.get("profiles", ScrollPane.ScrollPaneStyle.class)); localScrollPane.setScrollingDisabled(true, false); localScrollPane.setFadeScrollBars(false); localTable2.add(localScrollPane).f().n(); Table localTable5 = new Table(); localTable5.setBackground(com.nianticproject.ingress.common.b.c.a(paramSkin, 0)); ProgressIndicator localProgressIndicator = new ProgressIndicator(paramSkin); localProgressIndicator.a(true); localTable5.add(localProgressIndicator).i(); Table localTable6 = new Table(); this.k = new Label("", (Label.LabelStyle)paramSkin.get("default", Label.LabelStyle.class)); localTable6.add(this.k).i(); this.l = new f("", (TextButton.TextButtonStyle)paramSkin.get("default", TextButton.TextButtonStyle.class)); localTable6.row(); localTable6.add(this.l).i().h(l.a(8.0F)); this.h = localTable5; this.i = localTable2; this.j = localTable6; Table localTable7 = new Table(); d locald = new d(paramSkin, "ops-close"); locald.addListener(new ar(this)); localTable7.add(locald).n().k().j(); Actor[] arrayOfActor = new Actor[4]; arrayOfActor[0] = this.i; arrayOfActor[1] = this.h; arrayOfActor[2] = this.j; arrayOfActor[3] = localTable7; localTable1.stack(arrayOfActor).f().n(); paramStage.addActor(localTable1); }
public final void a(Skin paramSkin, Stage paramStage) { this.f = new Table(); this.f.setWidth(paramStage.getWidth()); this.f.setHeight(paramStage.getHeight()); if (this.c != null) { this.e = new aa(paramSkin, (int)paramStage.getWidth(), this.c, ag.b); if (this.a) { this.f.add(this.e); this.f.row(); } } Table localTable1 = this.f; float f1 = this.f.getWidth(); Table localTable2 = new Table(); localTable2.top(); float f2 = l.a(24.0F); this.l = new al(this.b, paramStage, paramSkin, this.a); localTable2.add(this.l).o().g(); this.m = new z(this.d, paramSkin, this.b, Integer.valueOf(2), Integer.valueOf(5), f1, f2, l.a(16.0F), l.a(16.0F)); localTable2.row(); localTable2.add(this.m).o().g().k(f2); this.m.setBackground(paramSkin.getTiledDrawable("tile-diag")); localTable2.row(); localTable2.add(new Image(com.nianticproject.ingress.common.b.c.a(paramSkin, 46783))).c(l.a(2.0F)).o().g().k(f2); this.n = new af(paramSkin, f1, f2); localTable2.row(); localTable2.add(this.n).o().g().k(f2); ScrollPane localScrollPane = new ScrollPane(localTable2, (ScrollPane.ScrollPaneStyle)paramSkin.get("profiles", ScrollPane.ScrollPaneStyle.class)); localScrollPane.setScrollingDisabled(true, false); Table localTable3 = new Table(); Table localTable4 = new Table(); ProgressIndicator localProgressIndicator = new ProgressIndicator(paramSkin); localProgressIndicator.a(true); localTable3.add(localProgressIndicator).i(); this.j = new Label("", (Label.LabelStyle)paramSkin.get("default", Label.LabelStyle.class)); localTable4.add(this.j).i(); this.k = new f("", (TextButton.TextButtonStyle)paramSkin.get("default", TextButton.TextButtonStyle.class)); localTable4.row(); localTable4.add(this.k).i().h(l.a(8.0F)); Table localTable5 = new Table(); this.g = localScrollPane; this.h = localTable3; this.i = localTable4; Table localTable6 = new Table(); d locald = new d(paramSkin, "ops-close"); locald.addListener(new be(this)); localTable6.add(locald).n().k().j(); if (!this.a); for (boolean bool = true; ; bool = false) { localTable6.setVisible(bool); Actor[] arrayOfActor = new Actor[4]; arrayOfActor[0] = this.g; arrayOfActor[1] = this.h; arrayOfActor[2] = this.i; arrayOfActor[3] = localTable6; localTable5.stack(arrayOfActor).n().f(); localTable1.add(localTable5).f().n(); paramStage.addActor(this.f); return; } }
ab(aa paramaa, Actor paramActor, ScrollPane.ScrollPaneStyle paramScrollPaneStyle) { super(paramActor, paramScrollPaneStyle); }
protected final Table a(Skin paramSkin, Drawable paramDrawable, float paramFloat1, List<String> paramList, String paramString1, String paramString2, float paramFloat2) { Table localTable1 = new Table(); localTable1.setX(0.0F); localTable1.setWidth(paramFloat1); Table localTable2 = new Table(); this.e = new Spectrograph(paramSkin); Table localTable3 = new Table(); localTable3.setBackground(paramSkin.getDrawable("message-window")); localTable3.add(this.e).n().f().a(4.0F, 4.0F, 4.0F, 4.0F); localTable2.add(localTable3).b(Integer.valueOf(2)).b().i().a(e.a(0.99F)).b(e.b(0.68F)); localTable2.row(); ImageButton localImageButton1 = new ImageButton(paramSkin, "audio-pause"); ImageButton localImageButton2 = new ImageButton(paramSkin, "audio-rewind"); this.a = new f(this.e); localImageButton1.addListener(new c(this, localImageButton1, paramSkin)); localImageButton2.addListener(new d(this, localImageButton1, paramSkin)); Table localTable4 = new Table(); localTable4.add(localImageButton1).a(e.a(0.25F)).b(e.b(0.9F)); localTable4.add(localImageButton2).a(e.a(0.25F)).b(e.b(0.9F)); localTable2.add(localTable4).a(e.a(1.0F)).b(e.b(0.35F)).i(); localTable1.add(localTable2).b(Integer.valueOf(2)).b().i().a(e.a(0.99F)).b(e.b(0.3F)); localTable1.row(); Table localTable5 = new Table(); e locale = e.a(0.04F); localTable5.defaults().j().k().o().g().f(locale).h(locale); boolean bool = br.b(paramString2); float f1 = 0.0F; if (!bool) { Label localLabel1 = new Label("Mission - " + paramString2, (Label.LabelStyle)paramSkin.get("mission-briefing-title-old", Label.LabelStyle.class)); localTable5.add(localLabel1); localTable5.row(); f1 = 0.0F + localLabel1.getTextBounds().height; } if ((paramList != null) && (!paramList.isEmpty())) { Label localLabel3 = new Label("Objectives", (Label.LabelStyle)paramSkin.get("message-label", Label.LabelStyle.class)); localTable5.add(localLabel3); localTable5.row(); float f4 = f1 + localLabel3.getTextBounds().height; Iterator localIterator = paramList.iterator(); Label localLabel4; for (f1 = f4; localIterator.hasNext(); f1 += localLabel4.getTextBounds().height) { String str = (String)localIterator.next(); localLabel4 = new Label("- " + str, (Label.LabelStyle)paramSkin.get("mission-briefing-objective", Label.LabelStyle.class)); localLabel4.setWrap(true); localTable5.add(localLabel4); localTable5.row(); } } Label localLabel2 = new Label(paramString1 + "\n ", (Label.LabelStyle)paramSkin.get("message-label", Label.LabelStyle.class)); localLabel2.setWrap(true); localLabel2.setAlignment(10); localLabel2.setWidth(0.9F * paramFloat1); localLabel2.layout(); float f2 = localLabel2.getTextBounds().height; float f3 = 1.0F - f2 / (f1 + f2); localTable5.add(localLabel2).l().a(e.a(1.0F)).b(e.a()); h localh = new h(localTable5, new ScrollPane.ScrollPaneStyle(), f3, paramFloat2, d); localh.setScrollPercentY(0.0F); localh.setScrollingDisabled(true, false); Table localTable6 = new Table(); localTable6.setBackground(paramDrawable); localTable6.add(localh).o().g().b(e.b(0.85F)).j().k(); localTable1.add(localTable6).b(Integer.valueOf(2)).c().i().a(e.a(0.99F)).b(e.b(0.69F)); localTable1.row(); return localTable1; }
/** * @param widget * May be null. */ public ScrollPane(Actor widget) { this(widget, new ScrollPaneStyle()); }
/** * @param widget * May be null. */ public ScrollPane(Actor widget, Skin skin) { this(widget, skin.get(ScrollPaneStyle.class)); }
/** * @param widget * May be null. */ public ScrollPane(Actor widget, Skin skin, String styleName) { this(widget, skin.get(styleName, ScrollPaneStyle.class)); }
/** * Returns the scroll pane's style. Modifying the returned style may not * have an effect until {@link #setStyle(ScrollPaneStyle)} is called. */ public ScrollPaneStyle getStyle() { return style; }