Class TextButtonPrefab
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.TextPrefab
dev.prozilla.pine.core.entity.prefab.ui.TextButtonPrefab
@Components({ButtonNode.class,TextNode.class,Node.class,Transform.class})
public class TextButtonPrefab
extends TextPrefab
Prefab for text buttons in the UI.
-
Field Summary
FieldsFields inherited from class dev.prozilla.pine.core.entity.prefab.ui.TextPrefab
font, text, textPropertyFields inherited from class dev.prozilla.pine.core.entity.prefab.ui.NodePrefab
absolutePosition, anchor, autoFocus, backgroundColor, border, borderColor, borderImage, borderImageSlice, borderImageSliceFill, classes, color, margin, padding, passThrough, position, size, styleSheet, tabIndex, tooltipText -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds this prefab's predefined components to a given entity and copies values from this prefab.voidsetClickCallback(ButtonNode.ClickCallback callback) Methods inherited from class dev.prozilla.pine.core.entity.prefab.ui.TextPrefab
setFont, setFont, setText, setTextMethods inherited from class dev.prozilla.pine.core.entity.prefab.ui.NodePrefab
addClass, addClasses, setAbsolutePosition, setAnchor, setAutoFocus, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBorderImage, setBorderImage, setColor, setColor, setDefaultPropertyValue, setMargin, setMargin, setMargin, setPadding, setPadding, setPadding, setPassThrough, setSize, setSize, setSize, setStyleSheet, setStyleSheet, setTabIndex, setTooltipTextMethods inherited from class dev.prozilla.pine.core.entity.prefab.Prefab
instantiate, instantiate, setActive, setName, setTag
-
Field Details
-
clickCallback
-
-
Constructor Details
-
TextButtonPrefab
public TextButtonPrefab() -
TextButtonPrefab
-
-
Method Details
-
setClickCallback
-
apply
Description copied from class:PrefabAdds this prefab's predefined components to a given entity and copies values from this prefab.- Overrides:
applyin classTextPrefab
-