Package mindustry.ui
Class Bar
java.lang.Object
arc.scene.Element
mindustry.ui.Bar
public class Bar
extends arc.scene.Element
-
Field Summary
Fields inherited from class arc.scene.Element
color, cullable, fillParent, height, originX, originY, parent, parentAlpha, rotation, scaleX, scaleY, touchable, touchablility, translation, userObject, visibility, visible, width, x, y
-
Constructor Summary
ConstructorsConstructorDescriptionBar()
Bar
(arc.func.Prov<CharSequence> name, arc.func.Prov<arc.graphics.Color> color, arc.func.Floatp fraction) -
Method Summary
Methods inherited from class arc.scene.Element
act, actions, addAction, addCaptureListener, addListener, change, changed, clear, clearActions, clearListeners, clicked, clicked, clicked, clicked, clipBegin, clipBegin, clipEnd, dragged, exited, fire, fireClick, getActions, getCaptureListeners, getHeight, getListeners, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getRight, getRotation, getScene, getTop, getWidth, getX, getY, getZIndex, hasActions, hasKeyboard, hasMouse, hasParent, hasScroll, hit, hovered, invalidate, invalidateHierarchy, isAscendantOf, isDescendantOf, isDescendantOf, isTouchable, keepInStage, keyDown, keyDown, layout, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, needsLayout, notify, pack, parentToLocalCoordinates, released, remove, removeAction, removeCaptureListener, removeListener, requestKeyboard, requestScroll, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, scrolled, setBounds, setColor, setColor, setFillParent, setHeight, setLayoutEnabled, setOrigin, setOrigin, setPosition, setPosition, setRotation, setRotationOrigin, setScale, setScale, setScene, setSize, setSize, setTranslation, setWidth, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, tapped, toBack, toFront, toString, touchable, update, updateVisibility, validate, visible
-
Constructor Details
-
Bar
-
Bar
public Bar(arc.func.Prov<CharSequence> name, arc.func.Prov<arc.graphics.Color> color, arc.func.Floatp fraction) -
Bar
public Bar()
-
-
Method Details
-
reset
public void reset(float value) -
set
-
snap
public void snap() -
outline
-
flash
public void flash() -
blink
-
draw
public void draw()- Overrides:
draw
in classarc.scene.Element
-