neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 12.6 kB
JavaScript
;
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.NeosCheckbox = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function NeosCheckbox(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Style = props.Style, AcceptPhysicalTouch = props.AcceptPhysicalTouch, AcceptRemoteTouch = props.AcceptRemoteTouch, IsChecked = props.IsChecked, IsEnabled = props.IsEnabled, DriveField = props.DriveField, AllowWriteBack = props.AllowWriteBack, Size = props.Size, BevelPercent = props.BevelPercent, Color = props.Color, _shellMesh = props._shellMesh, _checkMesh = props._checkMesh, _titleBar = props._titleBar, _shellSize = props._shellSize, _shellBevel = props._shellBevel, _checkSize = props._checkSize, _checkBevel = props._checkBevel, _colliderSize = props._colliderSize, _shellMaterial = props._shellMaterial, _checkMaterial = props._checkMaterial;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.NeosCheckbox", 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: "IsChecked", id: typeof IsChecked === "object" && "id" in IsChecked ? IsChecked === null || IsChecked === void 0 ? void 0 : IsChecked.id : undefined, value: typeof IsChecked === "object" && "value" in IsChecked ? IsChecked === null || IsChecked === void 0 ? void 0 : IsChecked.value : IsChecked, isRaw: typeof IsChecked === "object" && "isRaw" in IsChecked && IsChecked.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.FieldDrive`1[System.Boolean]", name: "DriveField", id: typeof DriveField === "object" && "id" in DriveField ? DriveField === null || DriveField === void 0 ? void 0 : DriveField.id : undefined, value: typeof DriveField === "object" && "value" in DriveField ? DriveField === null || DriveField === void 0 ? void 0 : DriveField.value : DriveField, isRaw: typeof DriveField === "object" && "isRaw" in DriveField && DriveField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AllowWriteBack", id: typeof AllowWriteBack === "object" && "id" in AllowWriteBack ? AllowWriteBack === null || AllowWriteBack === void 0 ? void 0 : AllowWriteBack.id : undefined, value: typeof AllowWriteBack === "object" && "value" in AllowWriteBack ? AllowWriteBack === null || AllowWriteBack === void 0 ? void 0 : AllowWriteBack.value : AllowWriteBack, isRaw: typeof AllowWriteBack === "object" && "isRaw" in AllowWriteBack && AllowWriteBack.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Size", id: typeof Size === "object" && "id" in Size ? Size === null || Size === void 0 ? void 0 : Size.id : undefined, value: typeof Size === "object" && "value" in Size ? Size === null || Size === void 0 ? void 0 : Size.value : Size, isRaw: typeof Size === "object" && "isRaw" in Size && Size.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "BevelPercent", id: typeof BevelPercent === "object" && "id" in BevelPercent ? BevelPercent === null || BevelPercent === void 0 ? void 0 : BevelPercent.id : undefined, value: typeof BevelPercent === "object" && "value" in BevelPercent ? BevelPercent === null || BevelPercent === void 0 ? void 0 : BevelPercent.value : BevelPercent, isRaw: typeof BevelPercent === "object" && "isRaw" in BevelPercent && BevelPercent.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.SyncRef`1[FrooxEngine.BevelBoxMesh]", name: "_shellMesh", id: typeof _shellMesh === "object" && "id" in _shellMesh ? _shellMesh === null || _shellMesh === void 0 ? void 0 : _shellMesh.id : undefined, value: typeof _shellMesh === "object" && "value" in _shellMesh ? _shellMesh === null || _shellMesh === void 0 ? void 0 : _shellMesh.value : _shellMesh, isRaw: typeof _shellMesh === "object" && "isRaw" in _shellMesh && _shellMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.BevelBoxMesh]", name: "_checkMesh", id: typeof _checkMesh === "object" && "id" in _checkMesh ? _checkMesh === null || _checkMesh === void 0 ? void 0 : _checkMesh.id : undefined, value: typeof _checkMesh === "object" && "value" in _checkMesh ? _checkMesh === null || _checkMesh === void 0 ? void 0 : _checkMesh.value : _checkMesh, isRaw: typeof _checkMesh === "object" && "isRaw" in _checkMesh && _checkMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosHorizontalChoiceBar]", name: "_titleBar", id: typeof _titleBar === "object" && "id" in _titleBar ? _titleBar === null || _titleBar === void 0 ? void 0 : _titleBar.id : undefined, value: typeof _titleBar === "object" && "value" in _titleBar ? _titleBar === null || _titleBar === void 0 ? void 0 : _titleBar.value : _titleBar, isRaw: typeof _titleBar === "object" && "isRaw" in _titleBar && _titleBar.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_shellSize", id: typeof _shellSize === "object" && "id" in _shellSize ? _shellSize === null || _shellSize === void 0 ? void 0 : _shellSize.id : undefined, value: typeof _shellSize === "object" && "value" in _shellSize ? _shellSize === null || _shellSize === void 0 ? void 0 : _shellSize.value : _shellSize, isRaw: typeof _shellSize === "object" && "isRaw" in _shellSize && _shellSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_shellBevel", id: typeof _shellBevel === "object" && "id" in _shellBevel ? _shellBevel === null || _shellBevel === void 0 ? void 0 : _shellBevel.id : undefined, value: typeof _shellBevel === "object" && "value" in _shellBevel ? _shellBevel === null || _shellBevel === void 0 ? void 0 : _shellBevel.value : _shellBevel, isRaw: typeof _shellBevel === "object" && "isRaw" in _shellBevel && _shellBevel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_checkSize", id: typeof _checkSize === "object" && "id" in _checkSize ? _checkSize === null || _checkSize === void 0 ? void 0 : _checkSize.id : undefined, value: typeof _checkSize === "object" && "value" in _checkSize ? _checkSize === null || _checkSize === void 0 ? void 0 : _checkSize.value : _checkSize, isRaw: typeof _checkSize === "object" && "isRaw" in _checkSize && _checkSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_checkBevel", id: typeof _checkBevel === "object" && "id" in _checkBevel ? _checkBevel === null || _checkBevel === void 0 ? void 0 : _checkBevel.id : undefined, value: typeof _checkBevel === "object" && "value" in _checkBevel ? _checkBevel === null || _checkBevel === void 0 ? void 0 : _checkBevel.value : _checkBevel, isRaw: typeof _checkBevel === "object" && "isRaw" in _checkBevel && _checkBevel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_colliderSize", id: typeof _colliderSize === "object" && "id" in _colliderSize ? _colliderSize === null || _colliderSize === void 0 ? void 0 : _colliderSize.id : undefined, value: typeof _colliderSize === "object" && "value" in _colliderSize ? _colliderSize === null || _colliderSize === void 0 ? void 0 : _colliderSize.value : _colliderSize, isRaw: typeof _colliderSize === "object" && "isRaw" in _colliderSize && _colliderSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.PBS_RimMetallic]", name: "_shellMaterial", id: typeof _shellMaterial === "object" && "id" in _shellMaterial ? _shellMaterial === null || _shellMaterial === void 0 ? void 0 : _shellMaterial.id : undefined, value: typeof _shellMaterial === "object" && "value" in _shellMaterial ? _shellMaterial === null || _shellMaterial === void 0 ? void 0 : _shellMaterial.value : _shellMaterial, isRaw: typeof _shellMaterial === "object" && "isRaw" in _shellMaterial && _shellMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.PBS_RimMetallic]", name: "_checkMaterial", id: typeof _checkMaterial === "object" && "id" in _checkMaterial ? _checkMaterial === null || _checkMaterial === void 0 ? void 0 : _checkMaterial.id : undefined, value: typeof _checkMaterial === "object" && "value" in _checkMaterial ? _checkMaterial === null || _checkMaterial === void 0 ? void 0 : _checkMaterial.value : _checkMaterial, isRaw: typeof _checkMaterial === "object" && "isRaw" in _checkMaterial && _checkMaterial.isRaw ? true : undefined })] })));
}
exports.NeosCheckbox = NeosCheckbox;
;