Class BrowserDialog

java.lang.Object
arc.scene.Element
arc.scene.Group
arc.scene.ui.layout.WidgetGroup
arc.scene.ui.layout.Table
arc.scene.ui.Dialog
mindustry.ui.dialogs.BaseDialog
com.xpdustry.claj.client.dialogs.BrowserDialog
All Implemented Interfaces:
arc.scene.utils.Cullable

public class BrowserDialog extends mindustry.ui.dialogs.BaseDialog
  • Nested Class Summary

    Nested classes/interfaces inherited from class arc.scene.ui.Dialog

    arc.scene.ui.Dialog.DialogStyle

    Nested classes/interfaces inherited from class arc.scene.ui.layout.Table

    arc.scene.ui.layout.Table.DrawRect
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static float
     
    static int
     
    static float
     
    static float
     

    Fields inherited from class mindustry.ui.dialogs.BaseDialog

    shouldPause, wasPaused

    Fields inherited from class arc.scene.ui.Dialog

    buttons, cont, dragging, edge, ignoreTouchDown, title, titleTable

    Fields inherited from class arc.scene.Group

    children, cullingArea, transform

    Fields inherited from class arc.scene.Element

    color, cullable, fillParent, height, name, originX, originY, parent, parentAlpha, rotation, scaleX, scaleY, touchable, touchablility, translation, userObject, visibility, visible, width, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRoom(arc.scene.ui.layout.Table dest, com.xpdustry.claj.api.ClajRoom<mindustry.net.Host> room)
     
    void
     
    int
     
    void
     
    getVersionString(mindustry.net.Host host)
    JoinDialog.getVersionString(Host) without the new line.
    boolean
    isHidden(mindustry.net.Host host)
     
    void
    join(com.xpdustry.claj.api.ClajRoom<mindustry.net.Host> room)
     
    void
    listRooms(CreateRoomDialog.Server server, arc.scene.ui.layout.Table dest, Runnable done, arc.func.Cons<Exception> error)
     
    float
    90% of the screen width.
    void
    pingAndListServer(CreateRoomDialog.Server server, arc.scene.ui.layout.Table dest, Runnable done, arc.func.Cons<Exception> error)
     
    void
    preJoin(com.xpdustry.claj.api.ClajRoom<mindustry.net.Host> room)
     
    void
     
    void
     
    void
    refreshServer(CreateRoomDialog.Server server, arc.scene.ui.layout.Table table)
     
    void
    safeJoin(com.xpdustry.claj.api.ClajRoom<mindustry.net.Host> room)
     
    void
    section(String name, String host, arc.scene.ui.layout.Table src, arc.scene.ui.layout.Table dest, Runnable refresh)
     
    protected void
    setRooms(arc.scene.ui.layout.Table dest, arc.struct.Seq<com.xpdustry.claj.api.ClajRoom<mindustry.net.Host>> rooms, int columns)
     
    float
    adaptative card size.

    Methods inherited from class mindustry.ui.dialogs.BaseDialog

    addCloseButton, addCloseButton, addCloseListener, makeButtonOverlay, onResize

    Methods inherited from class arc.scene.ui.Dialog

    act, centerWindow, closeOnBack, closeOnBack, draw, drawStageBackground, getStyle, hidden, hide, hide, hit, isCentered, isDragging, isModal, isMovable, isResizable, isShown, resized, resized, resizedShown, setCentered, setHideAction, setKeepWithinStage, setModal, setMovable, setResizable, setResizeBorder, setScene, setShowAction, setStyle, show, show, show, shown, toggle, updateScrollFocus

    Methods inherited from class arc.scene.ui.layout.Table

    add, add, add, add, add, add, add, add, add, align, area, area, background, bottom, button, button, button, button, button, button, button, button, button, button, button, button, buttonCenter, buttonCenter, buttonCenter, buttonRow, center, check, check, check, clearChildren, collapser, collapser, collapser, collapser, defaults, drawBackground, field, field, field, fill, getAlign, getBackground, getCell, getCells, getClip, getColumns, getColumnWidth, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getRow, getRowHeight, getRows, image, image, image, image, image, imageDraw, invalidate, label, labelWrap, labelWrap, layout, left, margin, margin, marginBottom, marginLeft, marginRight, marginTop, pane, pane, pane, pane, rect, removeChild, removeChild, reset, right, row, setBackground, setClip, setRound, slider, slider, slider, spacer, spacerX, spacerY, stack, table, table, table, table, table, top

    Methods inherited from class arc.scene.ui.layout.WidgetGroup

    childrenChanged, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate

    Methods inherited from class arc.scene.Group

    addChild, addChildAfter, addChildAt, addChildBefore, applyTransform, clear, computeTransform, drawChildren, fill, fill, fill, find, find, findVisible, forEach, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, resetTransform, setCullingArea, setTransform, swapActor, swapActor, toString

    Methods inherited from class arc.scene.Element

    actions, addAction, addCaptureListener, addListener, change, changed, clearActions, clearListeners, clicked, clicked, clicked, clicked, clipBegin, clipBegin, clipEnd, dragged, exited, fire, fireClick, getActions, getCaptureListeners, getHeight, getListeners, getMaxHeight, getMaxWidth, getRight, getRotation, getScene, getTop, getWidth, getX, getY, getZIndex, hasActions, hasKeyboard, hasMouse, hasParent, hasScroll, hovered, isAscendantOf, isDescendantOf, isDescendantOf, isTouchable, keepInStage, keyDown, keyDown, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, released, remove, removeAction, removeCaptureListener, removeListener, requestKeyboard, requestScroll, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, scrolled, setBounds, setColor, setColor, setHeight, setOrigin, setOrigin, setPosition, setPosition, setRotation, setRotationOrigin, setScale, setScale, setSize, setSize, setTranslation, setWidth, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, tapped, toBack, toFront, touchable, update, updateVisibility, visible

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • MIN_CARD_SIZE

      public static float MIN_CARD_SIZE
    • MAX_CARD_SIZE

      public static float MAX_CARD_SIZE
    • SCREEN_MAX

      public static float SCREEN_MAX
    • MAX_COLUMNS

      public static int MAX_COLUMNS
  • Constructor Details

    • BrowserDialog

      public BrowserDialog()
  • Method Details

    • rebuild

      public void rebuild()
    • refreshAll

      public void refreshAll()
    • refreshServer

      public void refreshServer(CreateRoomDialog.Server server, arc.scene.ui.layout.Table table)
    • pingAndListServer

      public void pingAndListServer(CreateRoomDialog.Server server, arc.scene.ui.layout.Table dest, Runnable done, arc.func.Cons<Exception> error)
    • listRooms

      public void listRooms(CreateRoomDialog.Server server, arc.scene.ui.layout.Table dest, Runnable done, arc.func.Cons<Exception> error)
    • setRooms

      protected void setRooms(arc.scene.ui.layout.Table dest, arc.struct.Seq<com.xpdustry.claj.api.ClajRoom<mindustry.net.Host>> rooms, int columns)
    • isHidden

      public boolean isHidden(mindustry.net.Host host)
    • addRoom

      public void addRoom(arc.scene.ui.layout.Table dest, com.xpdustry.claj.api.ClajRoom<mindustry.net.Host> room)
    • preJoin

      public void preJoin(com.xpdustry.claj.api.ClajRoom<mindustry.net.Host> room)
    • safeJoin

      public void safeJoin(com.xpdustry.claj.api.ClajRoom<mindustry.net.Host> room)
    • join

      public void join(com.xpdustry.claj.api.ClajRoom<mindustry.net.Host> room)
    • section

      public void section(String name, String host, arc.scene.ui.layout.Table src, arc.scene.ui.layout.Table dest, Runnable refresh)
    • checkPlay

      public void checkPlay(Runnable run)
    • filterRooms

      public void filterRooms()
    • getVersionString

      public String getVersionString(mindustry.net.Host host)
      JoinDialog.getVersionString(Host) without the new line.
    • maxWidth

      public float maxWidth()
      90% of the screen width.
    • targetWidth

      public float targetWidth()
      adaptative card size.
    • columns

      public int columns()