UNPKG

neos-script

Version:

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

23 lines (22 loc) 7.32 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.FriendItem = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function FriendItem(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _background = props._background, _circleOutline = props._circleOutline, _thumbnail = props._thumbnail, _thumbnailTexture = props._thumbnailTexture, _username = props._username, _currentWorld = props._currentWorld, _unreadCount = props._unreadCount, _joinButton = props._joinButton, _rawUsername = props._rawUsername, _alternateNames = props._alternateNames; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.FriendItem", 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.UIX.Image]", name: "_background", id: typeof _background === "object" && "id" in _background ? _background === null || _background === void 0 ? void 0 : _background.id : undefined, value: typeof _background === "object" && "value" in _background ? _background === null || _background === void 0 ? void 0 : _background.value : _background, isRaw: typeof _background === "object" && "isRaw" in _background && _background.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Image]", name: "_circleOutline", id: typeof _circleOutline === "object" && "id" in _circleOutline ? _circleOutline === null || _circleOutline === void 0 ? void 0 : _circleOutline.id : undefined, value: typeof _circleOutline === "object" && "value" in _circleOutline ? _circleOutline === null || _circleOutline === void 0 ? void 0 : _circleOutline.value : _circleOutline, isRaw: typeof _circleOutline === "object" && "isRaw" in _circleOutline && _circleOutline.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Image]", name: "_thumbnail", id: typeof _thumbnail === "object" && "id" in _thumbnail ? _thumbnail === null || _thumbnail === void 0 ? void 0 : _thumbnail.id : undefined, value: typeof _thumbnail === "object" && "value" in _thumbnail ? _thumbnail === null || _thumbnail === void 0 ? void 0 : _thumbnail.value : _thumbnail, isRaw: typeof _thumbnail === "object" && "isRaw" in _thumbnail && _thumbnail.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.StaticTexture2D]", name: "_thumbnailTexture", id: typeof _thumbnailTexture === "object" && "id" in _thumbnailTexture ? _thumbnailTexture === null || _thumbnailTexture === void 0 ? void 0 : _thumbnailTexture.id : undefined, value: typeof _thumbnailTexture === "object" && "value" in _thumbnailTexture ? _thumbnailTexture === null || _thumbnailTexture === void 0 ? void 0 : _thumbnailTexture.value : _thumbnailTexture, isRaw: typeof _thumbnailTexture === "object" && "isRaw" in _thumbnailTexture && _thumbnailTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_username", id: typeof _username === "object" && "id" in _username ? _username === null || _username === void 0 ? void 0 : _username.id : undefined, value: typeof _username === "object" && "value" in _username ? _username === null || _username === void 0 ? void 0 : _username.value : _username, isRaw: typeof _username === "object" && "isRaw" in _username && _username.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_currentWorld", id: typeof _currentWorld === "object" && "id" in _currentWorld ? _currentWorld === null || _currentWorld === void 0 ? void 0 : _currentWorld.id : undefined, value: typeof _currentWorld === "object" && "value" in _currentWorld ? _currentWorld === null || _currentWorld === void 0 ? void 0 : _currentWorld.value : _currentWorld, isRaw: typeof _currentWorld === "object" && "isRaw" in _currentWorld && _currentWorld.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_unreadCount", id: typeof _unreadCount === "object" && "id" in _unreadCount ? _unreadCount === null || _unreadCount === void 0 ? void 0 : _unreadCount.id : undefined, value: typeof _unreadCount === "object" && "value" in _unreadCount ? _unreadCount === null || _unreadCount === void 0 ? void 0 : _unreadCount.value : _unreadCount, isRaw: typeof _unreadCount === "object" && "isRaw" in _unreadCount && _unreadCount.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_joinButton", id: typeof _joinButton === "object" && "id" in _joinButton ? _joinButton === null || _joinButton === void 0 ? void 0 : _joinButton.id : undefined, value: typeof _joinButton === "object" && "value" in _joinButton ? _joinButton === null || _joinButton === void 0 ? void 0 : _joinButton.value : _joinButton, isRaw: typeof _joinButton === "object" && "isRaw" in _joinButton && _joinButton.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "_rawUsername", id: typeof _rawUsername === "object" && "id" in _rawUsername ? _rawUsername === null || _rawUsername === void 0 ? void 0 : _rawUsername.id : undefined, value: typeof _rawUsername === "object" && "value" in _rawUsername ? _rawUsername === null || _rawUsername === void 0 ? void 0 : _rawUsername.value : _rawUsername, isRaw: typeof _rawUsername === "object" && "isRaw" in _rawUsername && _rawUsername.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncFieldList`1[System.String]", name: "_alternateNames", id: typeof _alternateNames === "object" && "id" in _alternateNames ? _alternateNames === null || _alternateNames === void 0 ? void 0 : _alternateNames.id : undefined, value: typeof _alternateNames === "object" && "value" in _alternateNames ? _alternateNames === null || _alternateNames === void 0 ? void 0 : _alternateNames.value : _alternateNames, isRaw: typeof _alternateNames === "object" && "isRaw" in _alternateNames && _alternateNames.isRaw ? true : undefined })] }))); } exports.FriendItem = FriendItem; ;