neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 11.5 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.NeosProgressBar = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function NeosProgressBar(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Style = props.Style, AcceptPhysicalTouch = props.AcceptPhysicalTouch, AcceptRemoteTouch = props.AcceptRemoteTouch, IsEnabledField = props.IsEnabledField, Progress = props.Progress, BarColorField = props.BarColorField, ContainerColorField = props.ContainerColorField, WidthField = props.WidthField, HeightField = props.HeightField, ThicknessField = props.ThicknessField, SlantField = props.SlantField, _barMesh = props._barMesh, _containerMesh = props._containerMesh, _barMaterial = props._barMaterial, _containerMaterial = props._containerMaterial, _barPosition = props._barPosition, _colliderSize = props._colliderSize;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.NeosProgressBar", 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: "IsEnabledField", id: typeof IsEnabledField === "object" && "id" in IsEnabledField ? IsEnabledField === null || IsEnabledField === void 0 ? void 0 : IsEnabledField.id : undefined, value: typeof IsEnabledField === "object" && "value" in IsEnabledField ? IsEnabledField === null || IsEnabledField === void 0 ? void 0 : IsEnabledField.value : IsEnabledField, isRaw: typeof IsEnabledField === "object" && "isRaw" in IsEnabledField && IsEnabledField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Progress", id: typeof Progress === "object" && "id" in Progress ? Progress === null || Progress === void 0 ? void 0 : Progress.id : undefined, value: typeof Progress === "object" && "value" in Progress ? Progress === null || Progress === void 0 ? void 0 : Progress.value : Progress, isRaw: typeof Progress === "object" && "isRaw" in Progress && Progress.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "BarColorField", id: typeof BarColorField === "object" && "id" in BarColorField ? BarColorField === null || BarColorField === void 0 ? void 0 : BarColorField.id : undefined, value: typeof BarColorField === "object" && "value" in BarColorField ? BarColorField === null || BarColorField === void 0 ? void 0 : BarColorField.value : BarColorField, isRaw: typeof BarColorField === "object" && "isRaw" in BarColorField && BarColorField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "ContainerColorField", id: typeof ContainerColorField === "object" && "id" in ContainerColorField ? ContainerColorField === null || ContainerColorField === void 0 ? void 0 : ContainerColorField.id : undefined, value: typeof ContainerColorField === "object" && "value" in ContainerColorField ? ContainerColorField === null || ContainerColorField === void 0 ? void 0 : ContainerColorField.value : ContainerColorField, isRaw: typeof ContainerColorField === "object" && "isRaw" in ContainerColorField && ContainerColorField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "WidthField", id: typeof WidthField === "object" && "id" in WidthField ? WidthField === null || WidthField === void 0 ? void 0 : WidthField.id : undefined, value: typeof WidthField === "object" && "value" in WidthField ? WidthField === null || WidthField === void 0 ? void 0 : WidthField.value : WidthField, isRaw: typeof WidthField === "object" && "isRaw" in WidthField && WidthField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HeightField", id: typeof HeightField === "object" && "id" in HeightField ? HeightField === null || HeightField === void 0 ? void 0 : HeightField.id : undefined, value: typeof HeightField === "object" && "value" in HeightField ? HeightField === null || HeightField === void 0 ? void 0 : HeightField.value : HeightField, isRaw: typeof HeightField === "object" && "isRaw" in HeightField && HeightField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ThicknessField", id: typeof ThicknessField === "object" && "id" in ThicknessField ? ThicknessField === null || ThicknessField === void 0 ? void 0 : ThicknessField.id : undefined, value: typeof ThicknessField === "object" && "value" in ThicknessField ? ThicknessField === null || ThicknessField === void 0 ? void 0 : ThicknessField.value : ThicknessField, isRaw: typeof ThicknessField === "object" && "isRaw" in ThicknessField && ThicknessField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SlantField", id: typeof SlantField === "object" && "id" in SlantField ? SlantField === null || SlantField === void 0 ? void 0 : SlantField.id : undefined, value: typeof SlantField === "object" && "value" in SlantField ? SlantField === null || SlantField === void 0 ? void 0 : SlantField.value : SlantField, isRaw: typeof SlantField === "object" && "isRaw" in SlantField && SlantField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.BevelSoliStripeMesh]", name: "_barMesh", id: typeof _barMesh === "object" && "id" in _barMesh ? _barMesh === null || _barMesh === void 0 ? void 0 : _barMesh.id : undefined, value: typeof _barMesh === "object" && "value" in _barMesh ? _barMesh === null || _barMesh === void 0 ? void 0 : _barMesh.value : _barMesh, isRaw: typeof _barMesh === "object" && "isRaw" in _barMesh && _barMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.BevelSoliStripeMesh]", name: "_containerMesh", id: typeof _containerMesh === "object" && "id" in _containerMesh ? _containerMesh === null || _containerMesh === void 0 ? void 0 : _containerMesh.id : undefined, value: typeof _containerMesh === "object" && "value" in _containerMesh ? _containerMesh === null || _containerMesh === void 0 ? void 0 : _containerMesh.value : _containerMesh, isRaw: typeof _containerMesh === "object" && "isRaw" in _containerMesh && _containerMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.PBS_RimMetallic]", name: "_barMaterial", id: typeof _barMaterial === "object" && "id" in _barMaterial ? _barMaterial === null || _barMaterial === void 0 ? void 0 : _barMaterial.id : undefined, value: typeof _barMaterial === "object" && "value" in _barMaterial ? _barMaterial === null || _barMaterial === void 0 ? void 0 : _barMaterial.value : _barMaterial, isRaw: typeof _barMaterial === "object" && "isRaw" in _barMaterial && _barMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.PBS_RimMetallic]", name: "_containerMaterial", id: typeof _containerMaterial === "object" && "id" in _containerMaterial ? _containerMaterial === null || _containerMaterial === void 0 ? void 0 : _containerMaterial.id : undefined, value: typeof _containerMaterial === "object" && "value" in _containerMaterial ? _containerMaterial === null || _containerMaterial === void 0 ? void 0 : _containerMaterial.value : _containerMaterial, isRaw: typeof _containerMaterial === "object" && "isRaw" in _containerMaterial && _containerMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_barPosition", id: typeof _barPosition === "object" && "id" in _barPosition ? _barPosition === null || _barPosition === void 0 ? void 0 : _barPosition.id : undefined, value: typeof _barPosition === "object" && "value" in _barPosition ? _barPosition === null || _barPosition === void 0 ? void 0 : _barPosition.value : _barPosition, isRaw: typeof _barPosition === "object" && "isRaw" in _barPosition && _barPosition.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 })] })));
}
exports.NeosProgressBar = NeosProgressBar;
;