mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Open avatar editor from context menu
This commit is contained in:
parent
629d231887
commit
ac392c71cf
@ -1,6 +1,8 @@
|
|||||||
import { AvatarAction, AvatarExpressionEnum, RoomObjectCategory } from 'nitro-renderer';
|
import { AvatarAction, AvatarExpressionEnum, RoomObjectCategory } from 'nitro-renderer';
|
||||||
import { FC, useCallback, useState } from 'react';
|
import { FC, useCallback, useState } from 'react';
|
||||||
import { GetCanStandUp, GetCanUseExpression, GetOwnPosture, HasHabboClub, HasHabboVip, IsRidingHorse } from '../../../../../../api';
|
import { GetCanStandUp, GetCanUseExpression, GetOwnPosture, HasHabboClub, HasHabboVip, IsRidingHorse } from '../../../../../../api';
|
||||||
|
import { AvatarEditorEvent } from '../../../../../../events';
|
||||||
|
import { dispatchUiEvent } from '../../../../../../hooks';
|
||||||
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
||||||
import { CurrencyIcon } from '../../../../../shared/currency-icon/CurrencyIcon';
|
import { CurrencyIcon } from '../../../../../shared/currency-icon/CurrencyIcon';
|
||||||
import { useRoomContext } from '../../../../context/RoomContext';
|
import { useRoomContext } from '../../../../context/RoomContext';
|
||||||
@ -43,6 +45,7 @@ export const AvatarInfoWidgetOwnAvatarView: FC<AvatarInfoWidgetOwnAvatarViewProp
|
|||||||
setIsDecorating(true);
|
setIsDecorating(true);
|
||||||
break;
|
break;
|
||||||
case 'change_looks':
|
case 'change_looks':
|
||||||
|
dispatchUiEvent(new AvatarEditorEvent(AvatarEditorEvent.SHOW_EDITOR));
|
||||||
break;
|
break;
|
||||||
case 'expressions':
|
case 'expressions':
|
||||||
hideMenu = false;
|
hideMenu = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user