@minecraft/server-ui 2.2.0-beta.1.26.40-preview.29 → 2.2.0-beta.1.26.40-preview.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +13 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1632,6 +1632,19 @@ export interface DropdownOptions {
|
|
|
1632
1632
|
* Options for configuring an image component.
|
|
1633
1633
|
*/
|
|
1634
1634
|
export interface ImageOptions {
|
|
1635
|
+
/**
|
|
1636
|
+
* @remarks
|
|
1637
|
+
* Sets a callback to be executed when the image is clicked.
|
|
1638
|
+
*
|
|
1639
|
+
*/
|
|
1640
|
+
onClick?: () => void;
|
|
1641
|
+
/**
|
|
1642
|
+
* @remarks
|
|
1643
|
+
* Sets a tooltip to be displayed when the user hovers over the
|
|
1644
|
+
* image.
|
|
1645
|
+
*
|
|
1646
|
+
*/
|
|
1647
|
+
tooltip?: ObservableString | ObservableUIRawMessage | string | UIRawMessage;
|
|
1635
1648
|
/**
|
|
1636
1649
|
* @remarks
|
|
1637
1650
|
* When false or bound to a false ObservableBoolean, the image
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-ui",
|
|
3
|
-
"version": "2.2.0-beta.1.26.40-preview.
|
|
3
|
+
"version": "2.2.0-beta.1.26.40-preview.30",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.0.0 || ^2.10.0-beta.1.26.40-preview.
|
|
17
|
+
"@minecraft/server": "^2.0.0 || ^2.10.0-beta.1.26.40-preview.30"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|