mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-12 10:45:54 +00:00
Merge remote-tracking branch 'leesolway/sig-panel-pr' into sig-panel
# Conflicts: # assets/js/hooks/Mapper/mapRootProvider/hooks/useMapRootHandlers.ts
This commit is contained in:
@@ -9,6 +9,7 @@ import { MapContextMenu } from '@/hooks/Mapper/components/mapRootContent/compone
|
||||
import { useSkipContextMenu } from '@/hooks/Mapper/hooks/useSkipContextMenu';
|
||||
import { MapSettings } from '@/hooks/Mapper/components/mapRootContent/components/MapSettings';
|
||||
import { CharacterActivity } from '@/hooks/Mapper/components/mapRootContent/components/CharacterActivity';
|
||||
import { WormholeSignaturesDialog } from '@/hooks/Mapper/components/mapRootContent/components/WormholeSignaturesDialog';
|
||||
import { useCharacterActivityHandlers } from './hooks/useCharacterActivityHandlers';
|
||||
import { TrackingDialog } from '@/hooks/Mapper/components/mapRootContent/components/TrackingDialog';
|
||||
import { useMapEventListener } from '@/hooks/Mapper/events';
|
||||
@@ -34,6 +35,7 @@ export const MapRootContent = ({}: MapRootContentProps) => {
|
||||
const [showOnTheMap, setShowOnTheMap] = useState(false);
|
||||
const [showMapSettings, setShowMapSettings] = useState(false);
|
||||
const [showTrackingDialog, setShowTrackingDialog] = useState(false);
|
||||
const [showWormholeSignatures, setShowWormholeSignatures] = useState(false);
|
||||
|
||||
/* Important Notice - this solution needs for use one instance of MapInterface */
|
||||
const mapInterface = isReady ? <MapInterface /> : null;
|
||||
@@ -47,6 +49,10 @@ export const MapRootContent = ({}: MapRootContentProps) => {
|
||||
setShowTrackingDialog(true);
|
||||
return true;
|
||||
}
|
||||
if (event.name === Commands.showWormholeSignatures) {
|
||||
setShowWormholeSignatures(true);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
useSkipContextMenu();
|
||||
@@ -93,6 +99,12 @@ export const MapRootContent = ({}: MapRootContentProps) => {
|
||||
{showTrackingDialog && (
|
||||
<TrackingDialog visible={showTrackingDialog} onHide={() => setShowTrackingDialog(false)} />
|
||||
)}
|
||||
{showWormholeSignatures && (
|
||||
<WormholeSignaturesDialog
|
||||
visible={showWormholeSignatures}
|
||||
onHide={() => setShowWormholeSignatures(false)}
|
||||
/>
|
||||
)}
|
||||
|
||||
{hasOldSettings && <OldSettingsDialog />}
|
||||
</Layout>
|
||||
|
||||
Reference in New Issue
Block a user