neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 17.8 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.UI_UnlitMaterial = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../../core");
function UI_UnlitMaterial(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, Rect = props.Rect, RectClip = props.RectClip, ColorMask = props.ColorMask, StencilComparison = props.StencilComparison, StencilOperation = props.StencilOperation, StencilID = props.StencilID, StencilWriteMask = props.StencilWriteMask, StencilReadMask = props.StencilReadMask, RenderQueue = props.RenderQueue, _shader = props._shader, Texture = props.Texture, TextureScale = props.TextureScale, TextureOffset = props.TextureOffset, Tint = props.Tint, Overlay = props.Overlay, OverlayTint = props.OverlayTint, AlphaCutoff = props.AlphaCutoff, AlphaClip = props.AlphaClip, TextureMode = props.TextureMode, MaskTexture = props.MaskTexture, MaskScale = props.MaskScale, MaskOffset = props.MaskOffset, MaskMode = props.MaskMode, BlendMode = props.BlendMode, Sidedness = props.Sidedness, ZWrite = props.ZWrite, ZTest = props.ZTest, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.UI_UnlitMaterial", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 2 }, { 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.Sync`1[BaseX.Rect]", name: "Rect", id: typeof Rect === "object" && "id" in Rect ? Rect === null || Rect === void 0 ? void 0 : Rect.id : undefined, value: typeof Rect === "object" && "value" in Rect ? Rect === null || Rect === void 0 ? void 0 : Rect.value : Rect, isRaw: typeof Rect === "object" && "isRaw" in Rect && Rect.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RectClip", id: typeof RectClip === "object" && "id" in RectClip ? RectClip === null || RectClip === void 0 ? void 0 : RectClip.id : undefined, value: typeof RectClip === "object" && "value" in RectClip ? RectClip === null || RectClip === void 0 ? void 0 : RectClip.value : RectClip, isRaw: typeof RectClip === "object" && "isRaw" in RectClip && RectClip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ColorMask]", name: "ColorMask", id: typeof ColorMask === "object" && "id" in ColorMask ? ColorMask === null || ColorMask === void 0 ? void 0 : ColorMask.id : undefined, value: typeof ColorMask === "object" && "value" in ColorMask ? ColorMask === null || ColorMask === void 0 ? void 0 : ColorMask.value : ColorMask, isRaw: typeof ColorMask === "object" && "isRaw" in ColorMask && ColorMask.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.StencilComparison]", name: "StencilComparison", id: typeof StencilComparison === "object" && "id" in StencilComparison ? StencilComparison === null || StencilComparison === void 0 ? void 0 : StencilComparison.id : undefined, value: typeof StencilComparison === "object" && "value" in StencilComparison ? StencilComparison === null || StencilComparison === void 0 ? void 0 : StencilComparison.value : StencilComparison, isRaw: typeof StencilComparison === "object" && "isRaw" in StencilComparison && StencilComparison.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.StencilOperation]", name: "StencilOperation", id: typeof StencilOperation === "object" && "id" in StencilOperation ? StencilOperation === null || StencilOperation === void 0 ? void 0 : StencilOperation.id : undefined, value: typeof StencilOperation === "object" && "value" in StencilOperation ? StencilOperation === null || StencilOperation === void 0 ? void 0 : StencilOperation.value : StencilOperation, isRaw: typeof StencilOperation === "object" && "isRaw" in StencilOperation && StencilOperation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Byte]", name: "StencilID", id: typeof StencilID === "object" && "id" in StencilID ? StencilID === null || StencilID === void 0 ? void 0 : StencilID.id : undefined, value: typeof StencilID === "object" && "value" in StencilID ? StencilID === null || StencilID === void 0 ? void 0 : StencilID.value : StencilID, isRaw: typeof StencilID === "object" && "isRaw" in StencilID && StencilID.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Byte]", name: "StencilWriteMask", id: typeof StencilWriteMask === "object" && "id" in StencilWriteMask ? StencilWriteMask === null || StencilWriteMask === void 0 ? void 0 : StencilWriteMask.id : undefined, value: typeof StencilWriteMask === "object" && "value" in StencilWriteMask ? StencilWriteMask === null || StencilWriteMask === void 0 ? void 0 : StencilWriteMask.value : StencilWriteMask, isRaw: typeof StencilWriteMask === "object" && "isRaw" in StencilWriteMask && StencilWriteMask.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Byte]", name: "StencilReadMask", id: typeof StencilReadMask === "object" && "id" in StencilReadMask ? StencilReadMask === null || StencilReadMask === void 0 ? void 0 : StencilReadMask.id : undefined, value: typeof StencilReadMask === "object" && "value" in StencilReadMask ? StencilReadMask === null || StencilReadMask === void 0 ? void 0 : StencilReadMask.value : StencilReadMask, isRaw: typeof StencilReadMask === "object" && "isRaw" in StencilReadMask && StencilReadMask.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 }), (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: "Texture", id: typeof Texture === "object" && "id" in Texture ? Texture === null || Texture === void 0 ? void 0 : Texture.id : undefined, value: typeof Texture === "object" && "value" in Texture ? Texture === null || Texture === void 0 ? void 0 : Texture.value : Texture, isRaw: typeof Texture === "object" && "isRaw" in Texture && Texture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "TextureScale", id: typeof TextureScale === "object" && "id" in TextureScale ? TextureScale === null || TextureScale === void 0 ? void 0 : TextureScale.id : undefined, value: typeof TextureScale === "object" && "value" in TextureScale ? TextureScale === null || TextureScale === void 0 ? void 0 : TextureScale.value : TextureScale, isRaw: typeof TextureScale === "object" && "isRaw" in TextureScale && TextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "TextureOffset", id: typeof TextureOffset === "object" && "id" in TextureOffset ? TextureOffset === null || TextureOffset === void 0 ? void 0 : TextureOffset.id : undefined, value: typeof TextureOffset === "object" && "value" in TextureOffset ? TextureOffset === null || TextureOffset === void 0 ? void 0 : TextureOffset.value : TextureOffset, isRaw: typeof TextureOffset === "object" && "isRaw" in TextureOffset && TextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "Tint", id: typeof Tint === "object" && "id" in Tint ? Tint === null || Tint === void 0 ? void 0 : Tint.id : undefined, value: typeof Tint === "object" && "value" in Tint ? Tint === null || Tint === void 0 ? void 0 : Tint.value : Tint, isRaw: typeof Tint === "object" && "isRaw" in Tint && Tint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Overlay", id: typeof Overlay === "object" && "id" in Overlay ? Overlay === null || Overlay === void 0 ? void 0 : Overlay.id : undefined, value: typeof Overlay === "object" && "value" in Overlay ? Overlay === null || Overlay === void 0 ? void 0 : Overlay.value : Overlay, isRaw: typeof Overlay === "object" && "isRaw" in Overlay && Overlay.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "OverlayTint", id: typeof OverlayTint === "object" && "id" in OverlayTint ? OverlayTint === null || OverlayTint === void 0 ? void 0 : OverlayTint.id : undefined, value: typeof OverlayTint === "object" && "value" in OverlayTint ? OverlayTint === null || OverlayTint === void 0 ? void 0 : OverlayTint.value : OverlayTint, isRaw: typeof OverlayTint === "object" && "isRaw" in OverlayTint && OverlayTint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "AlphaCutoff", id: typeof AlphaCutoff === "object" && "id" in AlphaCutoff ? AlphaCutoff === null || AlphaCutoff === void 0 ? void 0 : AlphaCutoff.id : undefined, value: typeof AlphaCutoff === "object" && "value" in AlphaCutoff ? AlphaCutoff === null || AlphaCutoff === void 0 ? void 0 : AlphaCutoff.value : AlphaCutoff, isRaw: typeof AlphaCutoff === "object" && "isRaw" in AlphaCutoff && AlphaCutoff.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AlphaClip", id: typeof AlphaClip === "object" && "id" in AlphaClip ? AlphaClip === null || AlphaClip === void 0 ? void 0 : AlphaClip.id : undefined, value: typeof AlphaClip === "object" && "value" in AlphaClip ? AlphaClip === null || AlphaClip === void 0 ? void 0 : AlphaClip.value : AlphaClip, isRaw: typeof AlphaClip === "object" && "isRaw" in AlphaClip && AlphaClip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.UnlitTextureMode]", name: "TextureMode", id: typeof TextureMode === "object" && "id" in TextureMode ? TextureMode === null || TextureMode === void 0 ? void 0 : TextureMode.id : undefined, value: typeof TextureMode === "object" && "value" in TextureMode ? TextureMode === null || TextureMode === void 0 ? void 0 : TextureMode.value : TextureMode, isRaw: typeof TextureMode === "object" && "isRaw" in TextureMode && TextureMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "MaskTexture", id: typeof MaskTexture === "object" && "id" in MaskTexture ? MaskTexture === null || MaskTexture === void 0 ? void 0 : MaskTexture.id : undefined, value: typeof MaskTexture === "object" && "value" in MaskTexture ? MaskTexture === null || MaskTexture === void 0 ? void 0 : MaskTexture.value : MaskTexture, isRaw: typeof MaskTexture === "object" && "isRaw" in MaskTexture && MaskTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "MaskScale", id: typeof MaskScale === "object" && "id" in MaskScale ? MaskScale === null || MaskScale === void 0 ? void 0 : MaskScale.id : undefined, value: typeof MaskScale === "object" && "value" in MaskScale ? MaskScale === null || MaskScale === void 0 ? void 0 : MaskScale.value : MaskScale, isRaw: typeof MaskScale === "object" && "isRaw" in MaskScale && MaskScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "MaskOffset", id: typeof MaskOffset === "object" && "id" in MaskOffset ? MaskOffset === null || MaskOffset === void 0 ? void 0 : MaskOffset.id : undefined, value: typeof MaskOffset === "object" && "value" in MaskOffset ? MaskOffset === null || MaskOffset === void 0 ? void 0 : MaskOffset.value : MaskOffset, isRaw: typeof MaskOffset === "object" && "isRaw" in MaskOffset && MaskOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.MaskTextureMode]", name: "MaskMode", id: typeof MaskMode === "object" && "id" in MaskMode ? MaskMode === null || MaskMode === void 0 ? void 0 : MaskMode.id : undefined, value: typeof MaskMode === "object" && "value" in MaskMode ? MaskMode === null || MaskMode === void 0 ? void 0 : MaskMode.value : MaskMode, isRaw: typeof MaskMode === "object" && "isRaw" in MaskMode && MaskMode.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 })] })));
}
exports.UI_UnlitMaterial = UI_UnlitMaterial;
;