@dcl/playground-assets 7.25.1-30391610123.commit-26cb925 → 7.25.1-30540108605.commit-82368ee

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/dist/alpha.d.ts CHANGED
@@ -2054,6 +2054,7 @@ export declare type EntityComponents = {
2054
2054
  uiBackground: PBUiBackground;
2055
2055
  uiInput: PBUiInput;
2056
2056
  uiDropdown: PBUiDropdown;
2057
+ uiInputBinding: PBUiInputBinding;
2057
2058
  onMouseDown: Callback;
2058
2059
  onMouseUp: Callback;
2059
2060
  onMouseEnter: Callback;
@@ -2076,6 +2077,8 @@ export declare interface EntityPropTypes extends Listeners {
2076
2077
  uiTransform?: UiTransformProps;
2077
2078
  /** To define a background color or image */
2078
2079
  uiBackground?: UiBackgroundProps;
2080
+ /** Bind input actions to this element, held down while it's pressed (touch or pointer) */
2081
+ uiInputBinding?: PBUiInputBinding;
2079
2082
  /** Uinique key to identiy elments when iterating arrays */
2080
2083
  key?: Key;
2081
2084
  }
@@ -9127,8 +9130,27 @@ export declare const ToLinearSpace = 2.2;
9127
9130
  */
9128
9131
  export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
9129
9132
 
9130
- /** @public */
9131
- export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
9133
+ export declare const TouchScreenControls: TouchScreenControlsComponentDefinitionExtended;
9134
+
9135
+ /**
9136
+ * @public
9137
+ * TouchScreenControls with convenience helpers. All helpers write the component onto the
9138
+ * RootEntity (where the client reads it) and merge with the current value.
9139
+ */
9140
+ export declare interface TouchScreenControlsComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTouchScreenControls> {
9141
+ /** Hide every on-screen gamepad button. */
9142
+ hideAll(): void;
9143
+ /** Show every on-screen gamepad button (clears the hide list). */
9144
+ showAll(): void;
9145
+ /** Hide the given on-screen buttons (merged into the current config). */
9146
+ hide(actions: InputAction[]): void;
9147
+ /** Set which action the large central button triggers. */
9148
+ setMainAction(action: InputAction): void;
9149
+ /** Hide the native virtual joystick. */
9150
+ hideJoystick(): void;
9151
+ /** Hide the on-screen crosshair / reticle. */
9152
+ hideCrosshair(): void;
9153
+ }
9132
9154
 
9133
9155
  export declare const Transform: TransformComponentExtended;
9134
9156
 
package/dist/beta.d.ts CHANGED
@@ -2054,6 +2054,7 @@ export declare type EntityComponents = {
2054
2054
  uiBackground: PBUiBackground;
2055
2055
  uiInput: PBUiInput;
2056
2056
  uiDropdown: PBUiDropdown;
2057
+ uiInputBinding: PBUiInputBinding;
2057
2058
  onMouseDown: Callback;
2058
2059
  onMouseUp: Callback;
2059
2060
  onMouseEnter: Callback;
@@ -2076,6 +2077,8 @@ export declare interface EntityPropTypes extends Listeners {
2076
2077
  uiTransform?: UiTransformProps;
2077
2078
  /** To define a background color or image */
2078
2079
  uiBackground?: UiBackgroundProps;
2080
+ /** Bind input actions to this element, held down while it's pressed (touch or pointer) */
2081
+ uiInputBinding?: PBUiInputBinding;
2079
2082
  /** Uinique key to identiy elments when iterating arrays */
2080
2083
  key?: Key;
2081
2084
  }
@@ -9094,8 +9097,27 @@ export declare const ToLinearSpace = 2.2;
9094
9097
  */
9095
9098
  export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
9096
9099
 
9097
- /** @public */
9098
- export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
9100
+ export declare const TouchScreenControls: TouchScreenControlsComponentDefinitionExtended;
9101
+
9102
+ /**
9103
+ * @public
9104
+ * TouchScreenControls with convenience helpers. All helpers write the component onto the
9105
+ * RootEntity (where the client reads it) and merge with the current value.
9106
+ */
9107
+ export declare interface TouchScreenControlsComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTouchScreenControls> {
9108
+ /** Hide every on-screen gamepad button. */
9109
+ hideAll(): void;
9110
+ /** Show every on-screen gamepad button (clears the hide list). */
9111
+ showAll(): void;
9112
+ /** Hide the given on-screen buttons (merged into the current config). */
9113
+ hide(actions: InputAction[]): void;
9114
+ /** Set which action the large central button triggers. */
9115
+ setMainAction(action: InputAction): void;
9116
+ /** Hide the native virtual joystick. */
9117
+ hideJoystick(): void;
9118
+ /** Hide the on-screen crosshair / reticle. */
9119
+ hideCrosshair(): void;
9120
+ }
9099
9121
 
9100
9122
  export declare const Transform: TransformComponentExtended;
9101
9123
 
@@ -2054,6 +2054,7 @@ export declare type EntityComponents = {
2054
2054
  uiBackground: PBUiBackground;
2055
2055
  uiInput: PBUiInput;
2056
2056
  uiDropdown: PBUiDropdown;
2057
+ uiInputBinding: PBUiInputBinding;
2057
2058
  onMouseDown: Callback;
2058
2059
  onMouseUp: Callback;
2059
2060
  onMouseEnter: Callback;
@@ -2076,6 +2077,8 @@ export declare interface EntityPropTypes extends Listeners {
2076
2077
  uiTransform?: UiTransformProps;
2077
2078
  /** To define a background color or image */
2078
2079
  uiBackground?: UiBackgroundProps;
2080
+ /** Bind input actions to this element, held down while it's pressed (touch or pointer) */
2081
+ uiInputBinding?: PBUiInputBinding;
2079
2082
  /** Uinique key to identiy elments when iterating arrays */
2080
2083
  key?: Key;
2081
2084
  }
@@ -9094,8 +9097,27 @@ export declare const ToLinearSpace = 2.2;
9094
9097
  */
9095
9098
  export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
9096
9099
 
9097
- /** @public */
9098
- export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
9100
+ export declare const TouchScreenControls: TouchScreenControlsComponentDefinitionExtended;
9101
+
9102
+ /**
9103
+ * @public
9104
+ * TouchScreenControls with convenience helpers. All helpers write the component onto the
9105
+ * RootEntity (where the client reads it) and merge with the current value.
9106
+ */
9107
+ export declare interface TouchScreenControlsComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTouchScreenControls> {
9108
+ /** Hide every on-screen gamepad button. */
9109
+ hideAll(): void;
9110
+ /** Show every on-screen gamepad button (clears the hide list). */
9111
+ showAll(): void;
9112
+ /** Hide the given on-screen buttons (merged into the current config). */
9113
+ hide(actions: InputAction[]): void;
9114
+ /** Set which action the large central button triggers. */
9115
+ setMainAction(action: InputAction): void;
9116
+ /** Hide the native virtual joystick. */
9117
+ hideJoystick(): void;
9118
+ /** Hide the on-screen crosshair / reticle. */
9119
+ hideCrosshair(): void;
9120
+ }
9099
9121
 
9100
9122
  export declare const Transform: TransformComponentExtended;
9101
9123