UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 9.78 kB
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TouchButton = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function TouchButton(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, IsPressed = props.IsPressed, IsHovering = props.IsHovering, AcceptPhysicalTouch = props.AcceptPhysicalTouch, AcceptRemoteTouch = props.AcceptRemoteTouch, AcceptOutOfSightTouch = props.AcceptOutOfSightTouch, EditModeOnly = props.EditModeOnly, ActiveUserFilter = props.ActiveUserFilter, Pressed = props.Pressed, Pressing = props.Pressing, Released = props.Released, BeginPressVibration = props.BeginPressVibration, PressVibration = props.PressVibration, HoverVibration = props.HoverVibration, Label = props.Label; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.TouchButton", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IsPressed", id: typeof IsPressed === "object" && "id" in IsPressed ? IsPressed === null || IsPressed === void 0 ? void 0 : IsPressed.id : undefined, value: typeof IsPressed === "object" && "value" in IsPressed ? IsPressed === null || IsPressed === void 0 ? void 0 : IsPressed.value : IsPressed, isRaw: typeof IsPressed === "object" && "isRaw" in IsPressed && IsPressed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IsHovering", id: typeof IsHovering === "object" && "id" in IsHovering ? IsHovering === null || IsHovering === void 0 ? void 0 : IsHovering.id : undefined, value: typeof IsHovering === "object" && "value" in IsHovering ? IsHovering === null || IsHovering === void 0 ? void 0 : IsHovering.value : IsHovering, isRaw: typeof IsHovering === "object" && "isRaw" in IsHovering && IsHovering.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptPhysicalTouch", id: typeof AcceptPhysicalTouch === "object" && "id" in AcceptPhysicalTouch ? AcceptPhysicalTouch === null || AcceptPhysicalTouch === void 0 ? void 0 : AcceptPhysicalTouch.id : undefined, value: typeof AcceptPhysicalTouch === "object" && "value" in AcceptPhysicalTouch ? AcceptPhysicalTouch === null || AcceptPhysicalTouch === void 0 ? void 0 : AcceptPhysicalTouch.value : AcceptPhysicalTouch, isRaw: typeof AcceptPhysicalTouch === "object" && "isRaw" in AcceptPhysicalTouch && AcceptPhysicalTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptRemoteTouch", id: typeof AcceptRemoteTouch === "object" && "id" in AcceptRemoteTouch ? AcceptRemoteTouch === null || AcceptRemoteTouch === void 0 ? void 0 : AcceptRemoteTouch.id : undefined, value: typeof AcceptRemoteTouch === "object" && "value" in AcceptRemoteTouch ? AcceptRemoteTouch === null || AcceptRemoteTouch === void 0 ? void 0 : AcceptRemoteTouch.value : AcceptRemoteTouch, isRaw: typeof AcceptRemoteTouch === "object" && "isRaw" in AcceptRemoteTouch && AcceptRemoteTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptOutOfSightTouch", id: typeof AcceptOutOfSightTouch === "object" && "id" in AcceptOutOfSightTouch ? AcceptOutOfSightTouch === null || AcceptOutOfSightTouch === void 0 ? void 0 : AcceptOutOfSightTouch.id : undefined, value: typeof AcceptOutOfSightTouch === "object" && "value" in AcceptOutOfSightTouch ? AcceptOutOfSightTouch === null || AcceptOutOfSightTouch === void 0 ? void 0 : AcceptOutOfSightTouch.value : AcceptOutOfSightTouch, isRaw: typeof AcceptOutOfSightTouch === "object" && "isRaw" in AcceptOutOfSightTouch && AcceptOutOfSightTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "EditModeOnly", id: typeof EditModeOnly === "object" && "id" in EditModeOnly ? EditModeOnly === null || EditModeOnly === void 0 ? void 0 : EditModeOnly.id : undefined, value: typeof EditModeOnly === "object" && "value" in EditModeOnly ? EditModeOnly === null || EditModeOnly === void 0 ? void 0 : EditModeOnly.value : EditModeOnly, isRaw: typeof EditModeOnly === "object" && "isRaw" in EditModeOnly && EditModeOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ActiveUserHandling]", name: "ActiveUserFilter", id: typeof ActiveUserFilter === "object" && "id" in ActiveUserFilter ? ActiveUserFilter === null || ActiveUserFilter === void 0 ? void 0 : ActiveUserFilter.id : undefined, value: typeof ActiveUserFilter === "object" && "value" in ActiveUserFilter ? ActiveUserFilter === null || ActiveUserFilter === void 0 ? void 0 : ActiveUserFilter.value : ActiveUserFilter, isRaw: typeof ActiveUserFilter === "object" && "isRaw" in ActiveUserFilter && ActiveUserFilter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[FrooxEngine.ButtonEventHandler]", name: "Pressed", id: typeof Pressed === "object" && "id" in Pressed ? Pressed === null || Pressed === void 0 ? void 0 : Pressed.id : undefined, value: typeof Pressed === "object" && "value" in Pressed ? Pressed === null || Pressed === void 0 ? void 0 : Pressed.value : Pressed, isRaw: typeof Pressed === "object" && "isRaw" in Pressed && Pressed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[FrooxEngine.ButtonEventHandler]", name: "Pressing", id: typeof Pressing === "object" && "id" in Pressing ? Pressing === null || Pressing === void 0 ? void 0 : Pressing.id : undefined, value: typeof Pressing === "object" && "value" in Pressing ? Pressing === null || Pressing === void 0 ? void 0 : Pressing.value : Pressing, isRaw: typeof Pressing === "object" && "isRaw" in Pressing && Pressing.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[FrooxEngine.ButtonEventHandler]", name: "Released", id: typeof Released === "object" && "id" in Released ? Released === null || Released === void 0 ? void 0 : Released.id : undefined, value: typeof Released === "object" && "value" in Released ? Released === null || Released === void 0 ? void 0 : Released.value : Released, isRaw: typeof Released === "object" && "isRaw" in Released && Released.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.VibratePreset]", name: "BeginPressVibration", id: typeof BeginPressVibration === "object" && "id" in BeginPressVibration ? BeginPressVibration === null || BeginPressVibration === void 0 ? void 0 : BeginPressVibration.id : undefined, value: typeof BeginPressVibration === "object" && "value" in BeginPressVibration ? BeginPressVibration === null || BeginPressVibration === void 0 ? void 0 : BeginPressVibration.value : BeginPressVibration, isRaw: typeof BeginPressVibration === "object" && "isRaw" in BeginPressVibration && BeginPressVibration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.VibratePreset]", name: "PressVibration", id: typeof PressVibration === "object" && "id" in PressVibration ? PressVibration === null || PressVibration === void 0 ? void 0 : PressVibration.id : undefined, value: typeof PressVibration === "object" && "value" in PressVibration ? PressVibration === null || PressVibration === void 0 ? void 0 : PressVibration.value : PressVibration, isRaw: typeof PressVibration === "object" && "isRaw" in PressVibration && PressVibration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.VibratePreset]", name: "HoverVibration", id: typeof HoverVibration === "object" && "id" in HoverVibration ? HoverVibration === null || HoverVibration === void 0 ? void 0 : HoverVibration.id : undefined, value: typeof HoverVibration === "object" && "value" in HoverVibration ? HoverVibration === null || HoverVibration === void 0 ? void 0 : HoverVibration.value : HoverVibration, isRaw: typeof HoverVibration === "object" && "isRaw" in HoverVibration && HoverVibration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.IField`1[System.String]]", name: "Label", id: typeof Label === "object" && "id" in Label ? Label === null || Label === void 0 ? void 0 : Label.id : undefined, value: typeof Label === "object" && "value" in Label ? Label === null || Label === void 0 ? void 0 : Label.value : Label, isRaw: typeof Label === "object" && "isRaw" in Label && Label.isRaw ? true : undefined })] }))); } exports.TouchButton = TouchButton; ;