UNPKG

neos-script

Version:

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

23 lines (22 loc) 12.3 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.TextUnlitMaterial = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../../core"); function TextUnlitMaterial(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, FontAtlas = props.FontAtlas, TintColor = props.TintColor, OutlineColor = props.OutlineColor, BackgroundColor = props.BackgroundColor, AutoBackgroundColor = props.AutoBackgroundColor, GlyphRenderMethod = props.GlyphRenderMethod, PixelRange = props.PixelRange, FaceDilate = props.FaceDilate, OutlineThickness = props.OutlineThickness, FaceSoftness = props.FaceSoftness, BlendMode = props.BlendMode, Sidedness = props.Sidedness, ZWrite = props.ZWrite, ZTest = props.ZTest, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, RenderQueue = props.RenderQueue; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.TextUnlitMaterial", 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: "HighPriorityIntegration", id: typeof HighPriorityIntegration === "object" && "id" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.id : undefined, value: typeof HighPriorityIntegration === "object" && "value" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.value : HighPriorityIntegration, isRaw: typeof HighPriorityIntegration === "object" && "isRaw" in HighPriorityIntegration && HighPriorityIntegration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.Shader]", name: "_shader-ID", id: typeof _shader === "object" && "id" in _shader ? _shader === null || _shader === void 0 ? void 0 : _shader.id : undefined, value: typeof _shader === "object" && "value" in _shader ? _shader === null || _shader === void 0 ? void 0 : _shader.value : _shader, readOnly: true, isRaw: typeof _shader === "object" && "isRaw" in _shader && _shader.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "FontAtlas", id: typeof FontAtlas === "object" && "id" in FontAtlas ? FontAtlas === null || FontAtlas === void 0 ? void 0 : FontAtlas.id : undefined, value: typeof FontAtlas === "object" && "value" in FontAtlas ? FontAtlas === null || FontAtlas === void 0 ? void 0 : FontAtlas.value : FontAtlas, isRaw: typeof FontAtlas === "object" && "isRaw" in FontAtlas && FontAtlas.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "TintColor", id: typeof TintColor === "object" && "id" in TintColor ? TintColor === null || TintColor === void 0 ? void 0 : TintColor.id : undefined, value: typeof TintColor === "object" && "value" in TintColor ? TintColor === null || TintColor === void 0 ? void 0 : TintColor.value : TintColor, isRaw: typeof TintColor === "object" && "isRaw" in TintColor && TintColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "OutlineColor", id: typeof OutlineColor === "object" && "id" in OutlineColor ? OutlineColor === null || OutlineColor === void 0 ? void 0 : OutlineColor.id : undefined, value: typeof OutlineColor === "object" && "value" in OutlineColor ? OutlineColor === null || OutlineColor === void 0 ? void 0 : OutlineColor.value : OutlineColor, isRaw: typeof OutlineColor === "object" && "isRaw" in OutlineColor && OutlineColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "BackgroundColor", id: typeof BackgroundColor === "object" && "id" in BackgroundColor ? BackgroundColor === null || BackgroundColor === void 0 ? void 0 : BackgroundColor.id : undefined, value: typeof BackgroundColor === "object" && "value" in BackgroundColor ? BackgroundColor === null || BackgroundColor === void 0 ? void 0 : BackgroundColor.value : BackgroundColor, isRaw: typeof BackgroundColor === "object" && "isRaw" in BackgroundColor && BackgroundColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AutoBackgroundColor", id: typeof AutoBackgroundColor === "object" && "id" in AutoBackgroundColor ? AutoBackgroundColor === null || AutoBackgroundColor === void 0 ? void 0 : AutoBackgroundColor.id : undefined, value: typeof AutoBackgroundColor === "object" && "value" in AutoBackgroundColor ? AutoBackgroundColor === null || AutoBackgroundColor === void 0 ? void 0 : AutoBackgroundColor.value : AutoBackgroundColor, isRaw: typeof AutoBackgroundColor === "object" && "isRaw" in AutoBackgroundColor && AutoBackgroundColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[CodeX.GlyphRenderMethod]", name: "GlyphRenderMethod", id: typeof GlyphRenderMethod === "object" && "id" in GlyphRenderMethod ? GlyphRenderMethod === null || GlyphRenderMethod === void 0 ? void 0 : GlyphRenderMethod.id : undefined, value: typeof GlyphRenderMethod === "object" && "value" in GlyphRenderMethod ? GlyphRenderMethod === null || GlyphRenderMethod === void 0 ? void 0 : GlyphRenderMethod.value : GlyphRenderMethod, isRaw: typeof GlyphRenderMethod === "object" && "isRaw" in GlyphRenderMethod && GlyphRenderMethod.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "PixelRange", id: typeof PixelRange === "object" && "id" in PixelRange ? PixelRange === null || PixelRange === void 0 ? void 0 : PixelRange.id : undefined, value: typeof PixelRange === "object" && "value" in PixelRange ? PixelRange === null || PixelRange === void 0 ? void 0 : PixelRange.value : PixelRange, isRaw: typeof PixelRange === "object" && "isRaw" in PixelRange && PixelRange.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FaceDilate", id: typeof FaceDilate === "object" && "id" in FaceDilate ? FaceDilate === null || FaceDilate === void 0 ? void 0 : FaceDilate.id : undefined, value: typeof FaceDilate === "object" && "value" in FaceDilate ? FaceDilate === null || FaceDilate === void 0 ? void 0 : FaceDilate.value : FaceDilate, isRaw: typeof FaceDilate === "object" && "isRaw" in FaceDilate && FaceDilate.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "OutlineThickness", id: typeof OutlineThickness === "object" && "id" in OutlineThickness ? OutlineThickness === null || OutlineThickness === void 0 ? void 0 : OutlineThickness.id : undefined, value: typeof OutlineThickness === "object" && "value" in OutlineThickness ? OutlineThickness === null || OutlineThickness === void 0 ? void 0 : OutlineThickness.value : OutlineThickness, isRaw: typeof OutlineThickness === "object" && "isRaw" in OutlineThickness && OutlineThickness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FaceSoftness", id: typeof FaceSoftness === "object" && "id" in FaceSoftness ? FaceSoftness === null || FaceSoftness === void 0 ? void 0 : FaceSoftness.id : undefined, value: typeof FaceSoftness === "object" && "value" in FaceSoftness ? FaceSoftness === null || FaceSoftness === void 0 ? void 0 : FaceSoftness.value : FaceSoftness, isRaw: typeof FaceSoftness === "object" && "isRaw" in FaceSoftness && FaceSoftness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.BlendMode]", name: "BlendMode", id: typeof BlendMode === "object" && "id" in BlendMode ? BlendMode === null || BlendMode === void 0 ? void 0 : BlendMode.id : undefined, value: typeof BlendMode === "object" && "value" in BlendMode ? BlendMode === null || BlendMode === void 0 ? void 0 : BlendMode.value : BlendMode, isRaw: typeof BlendMode === "object" && "isRaw" in BlendMode && BlendMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.Sidedness]", name: "Sidedness", id: typeof Sidedness === "object" && "id" in Sidedness ? Sidedness === null || Sidedness === void 0 ? void 0 : Sidedness.id : undefined, value: typeof Sidedness === "object" && "value" in Sidedness ? Sidedness === null || Sidedness === void 0 ? void 0 : Sidedness.value : Sidedness, isRaw: typeof Sidedness === "object" && "isRaw" in Sidedness && Sidedness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ZWrite]", name: "ZWrite", id: typeof ZWrite === "object" && "id" in ZWrite ? ZWrite === null || ZWrite === void 0 ? void 0 : ZWrite.id : undefined, value: typeof ZWrite === "object" && "value" in ZWrite ? ZWrite === null || ZWrite === void 0 ? void 0 : ZWrite.value : ZWrite, isRaw: typeof ZWrite === "object" && "isRaw" in ZWrite && ZWrite.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ZTest]", name: "ZTest", id: typeof ZTest === "object" && "id" in ZTest ? ZTest === null || ZTest === void 0 ? void 0 : ZTest.id : undefined, value: typeof ZTest === "object" && "value" in ZTest ? ZTest === null || ZTest === void 0 ? void 0 : ZTest.value : ZTest, isRaw: typeof ZTest === "object" && "isRaw" in ZTest && ZTest.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "OffsetFactor", id: typeof OffsetFactor === "object" && "id" in OffsetFactor ? OffsetFactor === null || OffsetFactor === void 0 ? void 0 : OffsetFactor.id : undefined, value: typeof OffsetFactor === "object" && "value" in OffsetFactor ? OffsetFactor === null || OffsetFactor === void 0 ? void 0 : OffsetFactor.value : OffsetFactor, isRaw: typeof OffsetFactor === "object" && "isRaw" in OffsetFactor && OffsetFactor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "OffsetUnits", id: typeof OffsetUnits === "object" && "id" in OffsetUnits ? OffsetUnits === null || OffsetUnits === void 0 ? void 0 : OffsetUnits.id : undefined, value: typeof OffsetUnits === "object" && "value" in OffsetUnits ? OffsetUnits === null || OffsetUnits === void 0 ? void 0 : OffsetUnits.value : OffsetUnits, isRaw: typeof OffsetUnits === "object" && "isRaw" in OffsetUnits && OffsetUnits.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "RenderQueue", id: typeof RenderQueue === "object" && "id" in RenderQueue ? RenderQueue === null || RenderQueue === void 0 ? void 0 : RenderQueue.id : undefined, value: typeof RenderQueue === "object" && "value" in RenderQueue ? RenderQueue === null || RenderQueue === void 0 ? void 0 : RenderQueue.value : RenderQueue, isRaw: typeof RenderQueue === "object" && "isRaw" in RenderQueue && RenderQueue.isRaw ? true : undefined })] }))); } exports.TextUnlitMaterial = TextUnlitMaterial; ;