neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 4.54 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.TooltipSimulator = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function TooltipSimulator(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Tooltip = props.Tooltip, SimulatingUser = props.SimulatingUser, Primary = props.Primary, Secondary = props.Secondary, Strength = props.Strength, Axis = props.Axis;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.TooltipSimulator", 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.IToolTip]", name: "Tooltip", id: typeof Tooltip === "object" && "id" in Tooltip ? Tooltip === null || Tooltip === void 0 ? void 0 : Tooltip.id : undefined, value: typeof Tooltip === "object" && "value" in Tooltip ? Tooltip === null || Tooltip === void 0 ? void 0 : Tooltip.value : Tooltip, isRaw: typeof Tooltip === "object" && "isRaw" in Tooltip && Tooltip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.User]", name: "SimulatingUser", id: typeof SimulatingUser === "object" && "id" in SimulatingUser ? SimulatingUser === null || SimulatingUser === void 0 ? void 0 : SimulatingUser.id : undefined, value: typeof SimulatingUser === "object" && "value" in SimulatingUser ? SimulatingUser === null || SimulatingUser === void 0 ? void 0 : SimulatingUser.value : SimulatingUser, isRaw: typeof SimulatingUser === "object" && "isRaw" in SimulatingUser && SimulatingUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Primary", id: typeof Primary === "object" && "id" in Primary ? Primary === null || Primary === void 0 ? void 0 : Primary.id : undefined, value: typeof Primary === "object" && "value" in Primary ? Primary === null || Primary === void 0 ? void 0 : Primary.value : Primary, isRaw: typeof Primary === "object" && "isRaw" in Primary && Primary.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Secondary", id: typeof Secondary === "object" && "id" in Secondary ? Secondary === null || Secondary === void 0 ? void 0 : Secondary.id : undefined, value: typeof Secondary === "object" && "value" in Secondary ? Secondary === null || Secondary === void 0 ? void 0 : Secondary.value : Secondary, isRaw: typeof Secondary === "object" && "isRaw" in Secondary && Secondary.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Strength", id: typeof Strength === "object" && "id" in Strength ? Strength === null || Strength === void 0 ? void 0 : Strength.id : undefined, value: typeof Strength === "object" && "value" in Strength ? Strength === null || Strength === void 0 ? void 0 : Strength.value : Strength, isRaw: typeof Strength === "object" && "isRaw" in Strength && Strength.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "Axis", id: typeof Axis === "object" && "id" in Axis ? Axis === null || Axis === void 0 ? void 0 : Axis.id : undefined, value: typeof Axis === "object" && "value" in Axis ? Axis === null || Axis === void 0 ? void 0 : Axis.value : Axis, isRaw: typeof Axis === "object" && "isRaw" in Axis && Axis.isRaw ? true : undefined })] })));
}
exports.TooltipSimulator = TooltipSimulator;
;