5180 fichiers 38.5 Mo 0 téléchargements 565 vues mis à jour il y a 8 heures ui
nitro-v36-with-renderer-v36 / src / components / room / widgets / avatar-info / menu / AvatarInfoNewUserHelpView.tsx
AvatarInfoNewUserHelpView.tsx 1.2 Ko Télécharger le fichier
import { RoomObjectCategory } from '@octane/renderer';
import { FC } from 'react';
import { AvatarInfoUser, localizeWithFallback } from '../../../../../api';
import { NativeTextTree } from '../../../../../common/native-text/NativeTextTree';
import { ContextMenuView } from '../../context-menu/ContextMenuView';

interface AvatarInfoNewUserHelpViewProps {
    avatarInfo: AvatarInfoUser;
    onClose: () => void;
}

/**
 * Official NewUserHelpView (`new_user_help`): while the room enter effect runs, the own avatar
 * gets a "You are here!" bubble (`room.enter.infostand.caption`) instead of its menu; it fades
 * like a name bubble.
 */
export const AvatarInfoNewUserHelpView: FC<AvatarInfoNewUserHelpViewProps> = ({ avatarInfo, onClose }) => (
    <NativeTextTree>
        <ContextMenuView
            fades
            category={RoomObjectCategory.UNIT}
            classNames={['name-only', 'octane-new-user-help']}
            objectId={avatarInfo.roomIndex}
            userType={avatarInfo.userType}
            onClose={onClose}
        >
            <div className="text-shadow">{localizeWithFallback('room.enter.infostand.caption', 'You are here!')}</div>
        </ContextMenuView>
    </NativeTextTree>
);
15Sujets
1Dépôts
20Membres
4En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser