Class ImageButtonPrefab
java.lang.Object
dev.prozilla.pine.core.entity.prefab.Prefab
dev.prozilla.pine.core.entity.prefab.ui.NodePrefab
dev.prozilla.pine.core.entity.prefab.ui.ImagePrefab
dev.prozilla.pine.core.entity.prefab.ui.ImageButtonPrefab
@Components({ButtonNode.class,ImageNode.class,Node.class,Transform.class})
public class ImageButtonPrefab
extends ImagePrefab
Prefab for image buttons in the UI.
-
Field Summary
FieldsFields inherited from class dev.prozilla.pine.core.entity.prefab.ui.ImagePrefab
cropToRegion, image, regionHeight, regionWidth, regionX, regionY
Fields inherited from class dev.prozilla.pine.core.entity.prefab.ui.NodePrefab
absolutePosition, anchor, backgroundColor, border, borderImage, borderImageSlice, borderImageSliceFill, classes, color, margin, padding, passThrough, position, size, styleSheet, tooltipText
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds this prefab's predefined components to a given entity and copies values from this prefab.void
setClickCallback
(ButtonNode.ClickCallback callback) Methods inherited from class dev.prozilla.pine.core.entity.prefab.ui.ImagePrefab
setRegion
Methods inherited from class dev.prozilla.pine.core.entity.prefab.ui.NodePrefab
addClass, addClasses, setAbsolutePosition, setAnchor, setBackgroundColor, setBackgroundColor, setBorder, setBorderImage, setColor, setColor, setDefaultPropertyValue, setMargin, setMargin, setMargin, setPadding, setPadding, setPadding, setPassThrough, setSize, setSize, setSize, setStyleSheet, setStyleSheet, setTooltipText
Methods inherited from class dev.prozilla.pine.core.entity.prefab.Prefab
instantiate, instantiate, setActive, setName, setTag
-
Field Details
-
clickCallback
-
-
Constructor Details
-
ImageButtonPrefab
-
ImageButtonPrefab
-
-
Method Details
-
setClickCallback
-
apply
Description copied from class:Prefab
Adds this prefab's predefined components to a given entity and copies values from this prefab.- Overrides:
apply
in classImagePrefab
-