mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
More draggable updates
This commit is contained in:
parent
80fbb4b23f
commit
5defa0fd0c
@ -25,7 +25,7 @@ export const NitroLayoutMiniCameraView: FC<NitroLayoutMiniCameraViewProps> = pro
|
|||||||
}, [ roomId, getCameraBounds, textureReceiver ]);
|
}, [ roomId, getCameraBounds, textureReceiver ]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DraggableWindow handle=".nitro-room-thumbnail-camera">
|
<DraggableWindow handleSelector=".nitro-room-thumbnail-camera">
|
||||||
<div className="nitro-room-thumbnail-camera px-2">
|
<div className="nitro-room-thumbnail-camera px-2">
|
||||||
<div ref={ elementRef } className={ 'camera-frame' } />
|
<div ref={ elementRef } className={ 'camera-frame' } />
|
||||||
<div className="d-flex align-items-end h-100 pb-2">
|
<div className="d-flex align-items-end h-100 pb-2">
|
||||||
|
@ -8,7 +8,7 @@ export const NitroLayoutTrophyView: FC<NitroLayoutTrophyViewProps> = props =>
|
|||||||
const { color = '', message = '', date = '', senderName = '', onCloseClick = null } = props;
|
const { color = '', message = '', date = '', senderName = '', onCloseClick = null } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DraggableWindow handle=".drag-handler">
|
<DraggableWindow handleSelector=".drag-handler">
|
||||||
<div className={ `nitro-layout-trophy trophy-${ color }` }>
|
<div className={ `nitro-layout-trophy trophy-${ color }` }>
|
||||||
<div className="trophy-header drag-handler">
|
<div className="trophy-header drag-handler">
|
||||||
<div className="float-end trophy-close" onClick={ onCloseClick }></div>
|
<div className="float-end trophy-close" onClick={ onCloseClick }></div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { DraggableWindow } from '../../../../../../layout';
|
import { DraggableWindow, DraggableWindowPosition } from '../../../../../../layout';
|
||||||
import { ObjectLocationView } from '../../../object-location/ObjectLocationView';
|
import { ObjectLocationView } from '../../../object-location/ObjectLocationView';
|
||||||
import { AvatarInfoRentableBotChatViewProps } from './AvatarInfoRentableBotChatView.types';
|
import { AvatarInfoRentableBotChatViewProps } from './AvatarInfoRentableBotChatView.types';
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ export const AvatarInfoRentableBotChatView: FC<AvatarInfoRentableBotChatViewProp
|
|||||||
const { chatEvent = null } = props;
|
const { chatEvent = null } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DraggableWindow noCenter={ true } handle=".drag-handler">
|
<DraggableWindow position={ DraggableWindowPosition.NOTHING } handleSelector=".drag-handler">
|
||||||
<ObjectLocationView objectId={ chatEvent.objectId } category={ chatEvent.category } noFollow={ true }>
|
<ObjectLocationView objectId={ chatEvent.objectId } category={ chatEvent.category } noFollow={ true }>
|
||||||
<div className="nitro-context-menu">
|
<div className="nitro-context-menu">
|
||||||
<div className="drag-handler">test!!!!!</div>
|
<div className="drag-handler">test!!!!!</div>
|
||||||
|
@ -119,7 +119,7 @@ export const FurnitureFriendFurniView: FC<{}> = props =>
|
|||||||
</div>
|
</div>
|
||||||
</NitroCardContentView>
|
</NitroCardContentView>
|
||||||
</NitroCardView> }
|
</NitroCardView> }
|
||||||
{ engravingLockData && engravingLockData.usernames.length > 0 && <DraggableWindow handle=".nitro-engraving-lock-view">
|
{ engravingLockData && engravingLockData.usernames.length > 0 && <DraggableWindow handleSelector=".nitro-engraving-lock-view">
|
||||||
<div className={ "nitro-engraving-lock-view engraving-lock-" + engravingLockData.type }>
|
<div className={ "nitro-engraving-lock-view engraving-lock-" + engravingLockData.type }>
|
||||||
<div className="engraving-lock-close" onClick={ event => processAction('close_view') }></div>
|
<div className="engraving-lock-close" onClick={ event => processAction('close_view') }></div>
|
||||||
<div className="d-flex justify-content-center">
|
<div className="d-flex justify-content-center">
|
||||||
|
@ -3,6 +3,7 @@ import { FC, useCallback, useState } from 'react';
|
|||||||
import { GetRoomEngine, GetRoomSession, GetSessionDataManager } from '../../../../../api';
|
import { GetRoomEngine, GetRoomSession, GetSessionDataManager } from '../../../../../api';
|
||||||
import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base';
|
import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base';
|
||||||
import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event';
|
import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event';
|
||||||
|
import { DraggableWindowPosition } from '../../../../../layout';
|
||||||
import { DraggableWindow } from '../../../../../layout/draggable-window/DraggableWindow';
|
import { DraggableWindow } from '../../../../../layout/draggable-window/DraggableWindow';
|
||||||
import { ColorUtils } from '../../../../../utils/ColorUtils';
|
import { ColorUtils } from '../../../../../utils/ColorUtils';
|
||||||
import { useRoomContext } from '../../../context/RoomContext';
|
import { useRoomContext } from '../../../context/RoomContext';
|
||||||
@ -114,7 +115,7 @@ export const FurnitureStickieView: FC<{}> = props =>
|
|||||||
if(!stickieData) return null;
|
if(!stickieData) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DraggableWindow handle=".drag-handler" noCenter={ true }>
|
<DraggableWindow handleSelector=".drag-handler" position={ DraggableWindowPosition.NOTHING }>
|
||||||
<div className={ "nitro-stickie nitro-stickie-image stickie-" + getStickieColorName(stickieData.color) }>
|
<div className={ "nitro-stickie nitro-stickie-image stickie-" + getStickieColorName(stickieData.color) }>
|
||||||
<div className="d-flex align-items-center stickie-header drag-handler">
|
<div className="d-flex align-items-center stickie-header drag-handler">
|
||||||
<div className="d-flex align-items-center flex-grow-1 h-100">
|
<div className="d-flex align-items-center flex-grow-1 h-100">
|
||||||
|
Loading…
Reference in New Issue
Block a user