+
nodeVars.dbClick(e)} className={classes.Handlers}>
id="d"
/>
+
>
);
});
diff --git a/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemNodeTheme.module.scss b/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemNodeTheme.module.scss
index 2bceef0e..181b0006 100644
--- a/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemNodeTheme.module.scss
+++ b/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemNodeTheme.module.scss
@@ -1,91 +1,6 @@
@import './SolarSystemNodeDefault.module.scss';
-/* ---------------------------
- Only override what's different
---------------------------- */
-
-/* 1) .RootCustomNode:
- - new background-color using CSS var
- - plus color, font-family, and font-weight */
-.RootCustomNode {
- background-color: var(--rf-node-bg-color, #202020) !important;
- color: var(--rf-text-color, #ffffff);
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
-}
-
-/* 2) .Bookmarks:
- - add var-based font family/weight
-*/
-.Bookmarks {
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
-}
-
-/* 3) .HeadRow, .classTitle, .classSystemName:
- - add new references to var-based font family/weight
-*/
-.HeadRow {
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
-
- .classTitle {
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
- }
-
- @-moz-document url-prefix() {
- .classSystemName {
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
- }
- }
-
- .classSystemName {
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
- }
-}
-
-/* 4) .BottomRow:
- - introduces .tagTitle, .regionName, .customName, .localCounter
- referencing new CSS variables */
-.BottomRow {
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
-
- .tagTitle {
- font-size: 11px;
- font-weight: medium;
- text-shadow: 0 0 2px rgba(231, 146, 52, 0.73);
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
- color: var(--rf-tag-color, #38BDF8);
- }
-
- .regionName {
- color: var(--rf-region-name, #D6D3D1);
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
- }
-
- .customName {
- color: var(--rf-custom-name, #93C5FD);
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
- }
-
- .localCounter {
- display: flex;
- color: var(--rf-has-user-characters, #fbbf24);
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
- gap: 2px;
-
- .hasUserCharacters {
- color: var(--rf-has-user-characters, #fbbf24);
- font-family: var(--rf-node-font-family, inherit) !important;
- font-weight: var(--rf-node-font-weight, inherit) !important;
- }
- }
-}
+/* ---------------------------------------------
+ Only override what's different from the base
+ Currently none required
+---------------------------------------------- */
diff --git a/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemNodeTheme.tsx b/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemNodeTheme.tsx
index d9283bbd..5e9539ed 100644
--- a/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemNodeTheme.tsx
+++ b/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemNodeTheme.tsx
@@ -1,20 +1,23 @@
import { memo } from 'react';
import { MapSolarSystemType } from '../../map.types';
-import { Handle, Position, NodeProps } from 'reactflow';
+import { Handle, NodeProps, Position } from 'reactflow';
import clsx from 'clsx';
import classes from './SolarSystemNodeTheme.module.scss';
import { PrimeIcons } from 'primereact/api';
-import { useSolarSystemNode } from '../../hooks/useSolarSystemNode';
+import { useLocalCounter, useSolarSystemNode } from '../../hooks/useSolarSystemLogic';
import {
+ EFFECT_BACKGROUND_STYLES,
MARKER_BOOKMARK_BG_STYLES,
STATUS_CLASSES,
- EFFECT_BACKGROUND_STYLES,
} from '@/hooks/Mapper/components/map/constants';
import { WormholeClassComp } from '@/hooks/Mapper/components/map/components/WormholeClassComp';
import { UnsplashedSignature } from '@/hooks/Mapper/components/map/components/UnsplashedSignature';
+import { LocalCounter } from './SolarSystemLocalCounter';
+import { KillsCounter } from './SolarSystemKillsCounter';
export const SolarSystemNodeTheme = memo((props: NodeProps
) => {
const nodeVars = useSolarSystemNode(props);
+ const { localCounterCharacters } = useLocalCounter(nodeVars);
return (
<>
@@ -32,13 +35,19 @@ export const SolarSystemNodeTheme = memo((props: NodeProps)
)}
- {nodeVars.killsCount && (
-