Extension / ItemDeleteUI
ItemDeleteUI Class
The bag deletes the parent class of the interface, inherits this class to achieve its own props, deletes the interface, and uses BagModule.skin to specify the skin
Hierarchy
↳
ItemDeleteUI
Implements
Table of contents
Accessors
cancelButton(): StaleButton other |
---|
Cancel button |
closeButton(): StaleButton other |
close button |
itemIcon(): Image other |
Item icon |
nameText(): TextBlock other |
Item Name tag |
okButton(): StaleButton other |
confirm button |
click
Accessors
canUpdate(): boolean other |
---|
Obtain whether the onUpdate lifecycle function in the UI can be triggered |
fullScreen(inFull : boolean ): void other |
Setting up full screen adaptation with the parent node will verify the size of the parent node to ensure that it follows the size of the parent node |
layer(): number other |
Get the layer layer of UI |
rootCanvas(): Canvas other |
Get the root Canvas node of the UI |
uiObject(): Widget |
Get UI top level widget object |
uiWidgetBase(): UserWidget other |
Get UI top level widget object |
visible(): boolean other |
Get whether the UI is displayed |
Methods
onItemShow(cfg : ItemConfig ): void other |
---|
Call when the props are displayed |
click
Methods
destroy(): void other |
---|
Destroy UI objects |
detectDrag(dragKey : Keys ): EventReply other |
Trigger detection of DragDrop event |
detectDragIfPressed(inPointEvent : PointerEvent , dragKey : Keys ): EventReply other |
Event detection passed, triggering a reply to the DragDrop event. |
newDragDrop(inVisualWidget : Widget , inTag? : string , inPayLoad? : any , inPivot? : DragPivot , inOffset? : Vector2 ): DragDropOperation other |
Create DragDrop event |
remove(): void other |
Remove UI object |
setVisible(inVisible : boolean SlateVisibility , ...params : any []): void other |
Set whether the UI is displayed |
addBehavior(key : string , value : any ): void other |
Add a global behavior |
clearBehavior(): void other |
Clear a global action |
getBehavior(key : string ): any other |
Execute a global action |
removeBehavior(key : string ): void other |
Remove a global behavior |
Accessors
cancelButton
• | ||
---|---|---|
Cancel button
Optional parameters Returns
|
closeButton
• | ||
---|---|---|
close button Returns
|
itemIcon
• | ||
---|---|---|
Item icon
Optional parameters Returns
|
nameText
• | ||
---|---|---|
Item Name tag
Optional parameters Returns
|
okButton
• |
---|
confirm button Returns |
StaleButton | IItemDeleteSkin.okButton |
---|
Methods
onItemShow
• Abstract
onItemShow(cfg
): void
other
Call when the props are displayed
Parameters
cfg ItemConfig | Usage: props configuration |
---|