UNPKG

neos-script

Version:

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

23 lines (22 loc) 7.97 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.NeosRadio = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function NeosRadio(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Style = props.Style, AcceptPhysicalTouch = props.AcceptPhysicalTouch, AcceptRemoteTouch = props.AcceptRemoteTouch, IsEnabled = props.IsEnabled, Radius = props.Radius, Color = props.Color, Selected = props.Selected, _colliderRadius = props._colliderRadius, _icosphere = props._icosphere, _material = props._material, _group = props._group, _orderNumber = props._orderNumber; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.NeosRadio", 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.RelayRef`1[FrooxEngine.NeosUIStyle]", name: "Style", id: typeof Style === "object" && "id" in Style ? Style === null || Style === void 0 ? void 0 : Style.id : undefined, value: typeof Style === "object" && "value" in Style ? Style === null || Style === void 0 ? void 0 : Style.value : Style, isRaw: typeof Style === "object" && "isRaw" in Style && Style.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: "IsEnabled", id: typeof IsEnabled === "object" && "id" in IsEnabled ? IsEnabled === null || IsEnabled === void 0 ? void 0 : IsEnabled.id : undefined, value: typeof IsEnabled === "object" && "value" in IsEnabled ? IsEnabled === null || IsEnabled === void 0 ? void 0 : IsEnabled.value : IsEnabled, isRaw: typeof IsEnabled === "object" && "isRaw" in IsEnabled && IsEnabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Radius", id: typeof Radius === "object" && "id" in Radius ? Radius === null || Radius === void 0 ? void 0 : Radius.id : undefined, value: typeof Radius === "object" && "value" in Radius ? Radius === null || Radius === void 0 ? void 0 : Radius.value : Radius, isRaw: typeof Radius === "object" && "isRaw" in Radius && Radius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "Color", id: typeof Color === "object" && "id" in Color ? Color === null || Color === void 0 ? void 0 : Color.id : undefined, value: typeof Color === "object" && "value" in Color ? Color === null || Color === void 0 ? void 0 : Color.value : Color, isRaw: typeof Color === "object" && "isRaw" in Color && Color.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RawOutput`1[System.Boolean]", name: "Selected", id: typeof Selected === "object" && "id" in Selected ? Selected === null || Selected === void 0 ? void 0 : Selected.id : undefined, value: typeof Selected === "object" && "value" in Selected ? Selected === null || Selected === void 0 ? void 0 : Selected.value : Selected, isRaw: typeof Selected === "object" && "isRaw" in Selected && Selected.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_colliderRadius", id: typeof _colliderRadius === "object" && "id" in _colliderRadius ? _colliderRadius === null || _colliderRadius === void 0 ? void 0 : _colliderRadius.id : undefined, value: typeof _colliderRadius === "object" && "value" in _colliderRadius ? _colliderRadius === null || _colliderRadius === void 0 ? void 0 : _colliderRadius.value : _colliderRadius, isRaw: typeof _colliderRadius === "object" && "isRaw" in _colliderRadius && _colliderRadius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.IcoSphereMesh]", name: "_icosphere", id: typeof _icosphere === "object" && "id" in _icosphere ? _icosphere === null || _icosphere === void 0 ? void 0 : _icosphere.id : undefined, value: typeof _icosphere === "object" && "value" in _icosphere ? _icosphere === null || _icosphere === void 0 ? void 0 : _icosphere.value : _icosphere, isRaw: typeof _icosphere === "object" && "isRaw" in _icosphere && _icosphere.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.PBS_RimMetallic]", name: "_material", id: typeof _material === "object" && "id" in _material ? _material === null || _material === void 0 ? void 0 : _material.id : undefined, value: typeof _material === "object" && "value" in _material ? _material === null || _material === void 0 ? void 0 : _material.value : _material, isRaw: typeof _material === "object" && "isRaw" in _material && _material.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.NeosRadioGroup]", name: "_group", id: typeof _group === "object" && "id" in _group ? _group === null || _group === void 0 ? void 0 : _group.id : undefined, value: typeof _group === "object" && "value" in _group ? _group === null || _group === void 0 ? void 0 : _group.value : _group, isRaw: typeof _group === "object" && "isRaw" in _group && _group.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "_orderNumber", id: typeof _orderNumber === "object" && "id" in _orderNumber ? _orderNumber === null || _orderNumber === void 0 ? void 0 : _orderNumber.id : undefined, value: typeof _orderNumber === "object" && "value" in _orderNumber ? _orderNumber === null || _orderNumber === void 0 ? void 0 : _orderNumber.value : _orderNumber, isRaw: typeof _orderNumber === "object" && "isRaw" in _orderNumber && _orderNumber.isRaw ? true : undefined })] }))); } exports.NeosRadio = NeosRadio; ;