UNPKG

neos-script

Version:

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

23 lines (22 loc) 15.2 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.LightTip = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function LightTip(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TipReference = props.TipReference, BlockGripEquip = props.BlockGripEquip, BlockRemoteEquip = props.BlockRemoteEquip, EquipName = props.EquipName, _overrideActiveTool = props._overrideActiveTool, _gripPosesGenerated = props._gripPosesGenerated, LightMode = props.LightMode, Color = props.Color, Intensity = props.Intensity, ShadowType = props.ShadowType, ShadowStrength = props.ShadowStrength, Range = props.Range, SpotAngle = props.SpotAngle, PointLightVisual = props.PointLightVisual, SpotlightVisual = props.SpotlightVisual, DirectionalLightVisual = props.DirectionalLightVisual, ColorIndicators = props.ColorIndicators, ShowGizmo = props.ShowGizmo, _pointLightItem = props._pointLightItem, _spotLightItem = props._spotLightItem, _directionalLightItem = props._directionalLightItem, _shadowsItem = props._shadowsItem, _colorPicker = props._colorPicker; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LightTip", 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.SyncRef`1[FrooxEngine.Slot]", name: "TipReference", id: typeof TipReference === "object" && "id" in TipReference ? TipReference === null || TipReference === void 0 ? void 0 : TipReference.id : undefined, value: typeof TipReference === "object" && "value" in TipReference ? TipReference === null || TipReference === void 0 ? void 0 : TipReference.value : TipReference, isRaw: typeof TipReference === "object" && "isRaw" in TipReference && TipReference.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "BlockGripEquip", id: typeof BlockGripEquip === "object" && "id" in BlockGripEquip ? BlockGripEquip === null || BlockGripEquip === void 0 ? void 0 : BlockGripEquip.id : undefined, value: typeof BlockGripEquip === "object" && "value" in BlockGripEquip ? BlockGripEquip === null || BlockGripEquip === void 0 ? void 0 : BlockGripEquip.value : BlockGripEquip, isRaw: typeof BlockGripEquip === "object" && "isRaw" in BlockGripEquip && BlockGripEquip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "BlockRemoteEquip", id: typeof BlockRemoteEquip === "object" && "id" in BlockRemoteEquip ? BlockRemoteEquip === null || BlockRemoteEquip === void 0 ? void 0 : BlockRemoteEquip.id : undefined, value: typeof BlockRemoteEquip === "object" && "value" in BlockRemoteEquip ? BlockRemoteEquip === null || BlockRemoteEquip === void 0 ? void 0 : BlockRemoteEquip.value : BlockRemoteEquip, isRaw: typeof BlockRemoteEquip === "object" && "isRaw" in BlockRemoteEquip && BlockRemoteEquip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "EquipName", id: typeof EquipName === "object" && "id" in EquipName ? EquipName === null || EquipName === void 0 ? void 0 : EquipName.id : undefined, value: typeof EquipName === "object" && "value" in EquipName ? EquipName === null || EquipName === void 0 ? void 0 : EquipName.value : EquipName, isRaw: typeof EquipName === "object" && "isRaw" in EquipName && EquipName.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.CommonTool]", name: "_overrideActiveTool", id: typeof _overrideActiveTool === "object" && "id" in _overrideActiveTool ? _overrideActiveTool === null || _overrideActiveTool === void 0 ? void 0 : _overrideActiveTool.id : undefined, value: typeof _overrideActiveTool === "object" && "value" in _overrideActiveTool ? _overrideActiveTool === null || _overrideActiveTool === void 0 ? void 0 : _overrideActiveTool.value : _overrideActiveTool, isRaw: typeof _overrideActiveTool === "object" && "isRaw" in _overrideActiveTool && _overrideActiveTool.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_gripPosesGenerated", id: typeof _gripPosesGenerated === "object" && "id" in _gripPosesGenerated ? _gripPosesGenerated === null || _gripPosesGenerated === void 0 ? void 0 : _gripPosesGenerated.id : undefined, value: typeof _gripPosesGenerated === "object" && "value" in _gripPosesGenerated ? _gripPosesGenerated === null || _gripPosesGenerated === void 0 ? void 0 : _gripPosesGenerated.value : _gripPosesGenerated, isRaw: typeof _gripPosesGenerated === "object" && "isRaw" in _gripPosesGenerated && _gripPosesGenerated.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.LightTip+Mode]", name: "LightMode", id: typeof LightMode === "object" && "id" in LightMode ? LightMode === null || LightMode === void 0 ? void 0 : LightMode.id : undefined, value: typeof LightMode === "object" && "value" in LightMode ? LightMode === null || LightMode === void 0 ? void 0 : LightMode.value : LightMode, isRaw: typeof LightMode === "object" && "isRaw" in LightMode && LightMode.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.Sync`1[System.Single]", name: "Intensity", id: typeof Intensity === "object" && "id" in Intensity ? Intensity === null || Intensity === void 0 ? void 0 : Intensity.id : undefined, value: typeof Intensity === "object" && "value" in Intensity ? Intensity === null || Intensity === void 0 ? void 0 : Intensity.value : Intensity, isRaw: typeof Intensity === "object" && "isRaw" in Intensity && Intensity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ShadowType]", name: "ShadowType", id: typeof ShadowType === "object" && "id" in ShadowType ? ShadowType === null || ShadowType === void 0 ? void 0 : ShadowType.id : undefined, value: typeof ShadowType === "object" && "value" in ShadowType ? ShadowType === null || ShadowType === void 0 ? void 0 : ShadowType.value : ShadowType, isRaw: typeof ShadowType === "object" && "isRaw" in ShadowType && ShadowType.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ShadowStrength", id: typeof ShadowStrength === "object" && "id" in ShadowStrength ? ShadowStrength === null || ShadowStrength === void 0 ? void 0 : ShadowStrength.id : undefined, value: typeof ShadowStrength === "object" && "value" in ShadowStrength ? ShadowStrength === null || ShadowStrength === void 0 ? void 0 : ShadowStrength.value : ShadowStrength, isRaw: typeof ShadowStrength === "object" && "isRaw" in ShadowStrength && ShadowStrength.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Range", id: typeof Range === "object" && "id" in Range ? Range === null || Range === void 0 ? void 0 : Range.id : undefined, value: typeof Range === "object" && "value" in Range ? Range === null || Range === void 0 ? void 0 : Range.value : Range, isRaw: typeof Range === "object" && "isRaw" in Range && Range.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SpotAngle", id: typeof SpotAngle === "object" && "id" in SpotAngle ? SpotAngle === null || SpotAngle === void 0 ? void 0 : SpotAngle.id : undefined, value: typeof SpotAngle === "object" && "value" in SpotAngle ? SpotAngle === null || SpotAngle === void 0 ? void 0 : SpotAngle.value : SpotAngle, isRaw: typeof SpotAngle === "object" && "isRaw" in SpotAngle && SpotAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "PointLightVisual", id: typeof PointLightVisual === "object" && "id" in PointLightVisual ? PointLightVisual === null || PointLightVisual === void 0 ? void 0 : PointLightVisual.id : undefined, value: typeof PointLightVisual === "object" && "value" in PointLightVisual ? PointLightVisual === null || PointLightVisual === void 0 ? void 0 : PointLightVisual.value : PointLightVisual, isRaw: typeof PointLightVisual === "object" && "isRaw" in PointLightVisual && PointLightVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "SpotlightVisual", id: typeof SpotlightVisual === "object" && "id" in SpotlightVisual ? SpotlightVisual === null || SpotlightVisual === void 0 ? void 0 : SpotlightVisual.id : undefined, value: typeof SpotlightVisual === "object" && "value" in SpotlightVisual ? SpotlightVisual === null || SpotlightVisual === void 0 ? void 0 : SpotlightVisual.value : SpotlightVisual, isRaw: typeof SpotlightVisual === "object" && "isRaw" in SpotlightVisual && SpotlightVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "DirectionalLightVisual", id: typeof DirectionalLightVisual === "object" && "id" in DirectionalLightVisual ? DirectionalLightVisual === null || DirectionalLightVisual === void 0 ? void 0 : DirectionalLightVisual.id : undefined, value: typeof DirectionalLightVisual === "object" && "value" in DirectionalLightVisual ? DirectionalLightVisual === null || DirectionalLightVisual === void 0 ? void 0 : DirectionalLightVisual.value : DirectionalLightVisual, isRaw: typeof DirectionalLightVisual === "object" && "isRaw" in DirectionalLightVisual && DirectionalLightVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.FieldDrive`1[BaseX.color]]", name: "ColorIndicators", id: typeof ColorIndicators === "object" && "id" in ColorIndicators ? ColorIndicators === null || ColorIndicators === void 0 ? void 0 : ColorIndicators.id : undefined, value: typeof ColorIndicators === "object" && "value" in ColorIndicators ? ColorIndicators === null || ColorIndicators === void 0 ? void 0 : ColorIndicators.value : ColorIndicators, isRaw: typeof ColorIndicators === "object" && "isRaw" in ColorIndicators && ColorIndicators.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ShowGizmo", id: typeof ShowGizmo === "object" && "id" in ShowGizmo ? ShowGizmo === null || ShowGizmo === void 0 ? void 0 : ShowGizmo.id : undefined, value: typeof ShowGizmo === "object" && "value" in ShowGizmo ? ShowGizmo === null || ShowGizmo === void 0 ? void 0 : ShowGizmo.value : ShowGizmo, isRaw: typeof ShowGizmo === "object" && "isRaw" in ShowGizmo && ShowGizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_pointLightItem", id: typeof _pointLightItem === "object" && "id" in _pointLightItem ? _pointLightItem === null || _pointLightItem === void 0 ? void 0 : _pointLightItem.id : undefined, value: typeof _pointLightItem === "object" && "value" in _pointLightItem ? _pointLightItem === null || _pointLightItem === void 0 ? void 0 : _pointLightItem.value : _pointLightItem, isRaw: typeof _pointLightItem === "object" && "isRaw" in _pointLightItem && _pointLightItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_spotLightItem", id: typeof _spotLightItem === "object" && "id" in _spotLightItem ? _spotLightItem === null || _spotLightItem === void 0 ? void 0 : _spotLightItem.id : undefined, value: typeof _spotLightItem === "object" && "value" in _spotLightItem ? _spotLightItem === null || _spotLightItem === void 0 ? void 0 : _spotLightItem.value : _spotLightItem, isRaw: typeof _spotLightItem === "object" && "isRaw" in _spotLightItem && _spotLightItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_directionalLightItem", id: typeof _directionalLightItem === "object" && "id" in _directionalLightItem ? _directionalLightItem === null || _directionalLightItem === void 0 ? void 0 : _directionalLightItem.id : undefined, value: typeof _directionalLightItem === "object" && "value" in _directionalLightItem ? _directionalLightItem === null || _directionalLightItem === void 0 ? void 0 : _directionalLightItem.value : _directionalLightItem, isRaw: typeof _directionalLightItem === "object" && "isRaw" in _directionalLightItem && _directionalLightItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_shadowsItem", id: typeof _shadowsItem === "object" && "id" in _shadowsItem ? _shadowsItem === null || _shadowsItem === void 0 ? void 0 : _shadowsItem.id : undefined, value: typeof _shadowsItem === "object" && "value" in _shadowsItem ? _shadowsItem === null || _shadowsItem === void 0 ? void 0 : _shadowsItem.value : _shadowsItem, isRaw: typeof _shadowsItem === "object" && "isRaw" in _shadowsItem && _shadowsItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SlotCleanupRef`1[FrooxEngine.NeosColorDialog]", name: "_colorPicker", id: typeof _colorPicker === "object" && "id" in _colorPicker ? _colorPicker === null || _colorPicker === void 0 ? void 0 : _colorPicker.id : undefined, value: typeof _colorPicker === "object" && "value" in _colorPicker ? _colorPicker === null || _colorPicker === void 0 ? void 0 : _colorPicker.value : _colorPicker, isRaw: typeof _colorPicker === "object" && "isRaw" in _colorPicker && _colorPicker.isRaw ? true : undefined })] }))); } exports.LightTip = LightTip; ;