@rpg-engine/long-bow 0.6.70 → 0.6.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/QuestList.d.ts +2 -3
- package/dist/components/shared/Ellipsis.d.ts +1 -1
- package/dist/components/shared/SimpleTooltip.d.ts +12 -0
- package/dist/long-bow.cjs.development.js +258 -80
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +259 -81
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/QuestList.tsx +144 -107
- package/src/components/Table/Table.tsx +5 -1
- package/src/components/shared/Ellipsis.tsx +2 -2
- package/src/components/shared/SimpleTooltip.tsx +198 -0
- package/src/stories/QuestList.stories.tsx +12 -42
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IQuest } from '@rpg-engine/shared';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import 'react-tippy/dist/tippy.css';
|
|
3
|
+
import { IQuest } from '@rpg-engine/shared';
|
|
3
4
|
export interface IQuestListProps {
|
|
4
5
|
quests?: IQuest[];
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
scale?: number;
|
|
7
6
|
}
|
|
8
7
|
export declare const QuestList: React.FC<IQuestListProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface TooltipProps {
|
|
3
|
+
content: string | ReactNode;
|
|
4
|
+
direction?: 'top' | 'bottom' | 'left' | 'right';
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
textColor?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
showDelay?: number;
|
|
9
|
+
hideDelay?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const SimpleTooltip: React.FC<TooltipProps>;
|
|
12
|
+
export {};
|
|
@@ -19,6 +19,7 @@ var ReactDOM = _interopDefault(require('react-dom'));
|
|
|
19
19
|
var lodash = require('lodash');
|
|
20
20
|
var mobxReactLite = require('mobx-react-lite');
|
|
21
21
|
var ai = require('react-icons/ai');
|
|
22
|
+
require('react-tippy/dist/tippy.css');
|
|
22
23
|
require('rpgui/rpgui.css');
|
|
23
24
|
require('rpgui/rpgui.min.js');
|
|
24
25
|
var capitalize = _interopDefault(require('lodash/capitalize'));
|
|
@@ -25947,7 +25948,8 @@ var RightArrow = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
25947
25948
|
|
|
25948
25949
|
var Ellipsis = function Ellipsis(_ref) {
|
|
25949
25950
|
var children = _ref.children,
|
|
25950
|
-
maxLines = _ref.maxLines,
|
|
25951
|
+
_ref$maxLines = _ref.maxLines,
|
|
25952
|
+
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
25951
25953
|
maxWidth = _ref.maxWidth,
|
|
25952
25954
|
fontSize = _ref.fontSize,
|
|
25953
25955
|
center = _ref.center;
|
|
@@ -28794,18 +28796,15 @@ var Table = /*#__PURE__*/styled__default.table.withConfig({
|
|
|
28794
28796
|
var TableRow = /*#__PURE__*/styled__default.tr.withConfig({
|
|
28795
28797
|
displayName: "Table__TableRow",
|
|
28796
28798
|
componentId: "sc-1c24pcj-1"
|
|
28797
|
-
})(["&:nth-child(even){background-color:rgba(255,255,255,0.05) !important;}"]);
|
|
28799
|
+
})(["&:nth-child(even){background-color:rgba(255,255,255,0.05) !important;}&:hover{background-color:rgba(255,255,255,0.1) !important;}"]);
|
|
28798
28800
|
var TableHeader = /*#__PURE__*/styled__default.th.withConfig({
|
|
28799
28801
|
displayName: "Table__TableHeader",
|
|
28800
28802
|
componentId: "sc-1c24pcj-2"
|
|
28801
|
-
})(["text-align:left;padding:0.5rem;color:", " !important;border-bottom:1px solid ", ";"], uiColors.yellow, uiColors.lightGray);
|
|
28803
|
+
})(["text-align:left;padding:0.5rem;color:", " !important;border-bottom:1px solid ", ";text-shadow:-2px 0 black,0 2px black,2px 0 black,0 -2px black;"], uiColors.yellow, uiColors.lightGray);
|
|
28802
28804
|
var TableCell = /*#__PURE__*/styled__default.td.withConfig({
|
|
28803
28805
|
displayName: "Table__TableCell",
|
|
28804
28806
|
componentId: "sc-1c24pcj-3"
|
|
28805
|
-
})(["padding:0.5rem;color:", ";border-bottom:1px solid ", ";text-
|
|
28806
|
-
var align = _ref.align;
|
|
28807
|
-
return align ? align : 'left';
|
|
28808
|
-
});
|
|
28807
|
+
})(["padding:0.5rem;color:", ";border-bottom:1px solid ", ";text-shadow:-2px 0 black,0 2px black,2px 0 black,0 -2px black;"], uiColors.white, uiColors.lightGray);
|
|
28809
28808
|
var ActionButtons = /*#__PURE__*/styled__default.div.withConfig({
|
|
28810
28809
|
displayName: "Table__ActionButtons",
|
|
28811
28810
|
componentId: "sc-1c24pcj-4"
|
|
@@ -28813,8 +28812,8 @@ var ActionButtons = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
28813
28812
|
var UserActionLink = /*#__PURE__*/styled__default.span.withConfig({
|
|
28814
28813
|
displayName: "Table__UserActionLink",
|
|
28815
28814
|
componentId: "sc-1c24pcj-5"
|
|
28816
|
-
})(["color:", " !important;cursor:pointer;margin-right:0.5rem;&:hover{text-decoration:underline;}"], function (
|
|
28817
|
-
var color =
|
|
28815
|
+
})(["color:", " !important;cursor:pointer;margin-right:0.5rem;&:hover{text-decoration:underline;}"], function (_ref) {
|
|
28816
|
+
var color = _ref.color;
|
|
28818
28817
|
return color;
|
|
28819
28818
|
});
|
|
28820
28819
|
|
|
@@ -31914,54 +31913,256 @@ var Thumbnail = /*#__PURE__*/styled__default.img.withConfig({
|
|
|
31914
31913
|
componentId: "sc-15s2boc-8"
|
|
31915
31914
|
})(["color:white;z-index:22;width:32px * 1.5;margin-right:0.5rem;position:relative;top:-4px;"]);
|
|
31916
31915
|
|
|
31917
|
-
var
|
|
31918
|
-
var
|
|
31919
|
-
|
|
31920
|
-
|
|
31921
|
-
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
31925
|
-
|
|
31926
|
-
|
|
31927
|
-
|
|
31928
|
-
|
|
31916
|
+
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
31917
|
+
var children = _ref.children;
|
|
31918
|
+
return React__default.createElement(Container$r, null, children);
|
|
31919
|
+
};
|
|
31920
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
31921
|
+
displayName: "RPGUIScrollbar__Container",
|
|
31922
|
+
componentId: "sc-p3msmb-0"
|
|
31923
|
+
})([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
|
|
31924
|
+
|
|
31925
|
+
var RPGUIOverrides = function RPGUIOverrides(_ref) {
|
|
31926
|
+
var children = _ref.children;
|
|
31927
|
+
return React__default.createElement(RPGUIScrollbar, null, children);
|
|
31928
|
+
};
|
|
31929
|
+
|
|
31930
|
+
//@ts-ignore
|
|
31931
|
+
var _RPGUI = RPGUI;
|
|
31932
|
+
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
31933
|
+
var children = _ref.children;
|
|
31934
|
+
return React__default.createElement(RPGUIOverrides, null, React__default.createElement("div", {
|
|
31935
|
+
className: "rpgui-content"
|
|
31936
|
+
}, children));
|
|
31937
|
+
};
|
|
31938
|
+
|
|
31939
|
+
var SimpleTooltip = function SimpleTooltip(_ref) {
|
|
31940
|
+
var content = _ref.content,
|
|
31941
|
+
_ref$direction = _ref.direction,
|
|
31942
|
+
direction = _ref$direction === void 0 ? 'top' : _ref$direction,
|
|
31943
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
31944
|
+
backgroundColor = _ref$backgroundColor === void 0 ? uiColors.raisinBlack : _ref$backgroundColor,
|
|
31945
|
+
_ref$textColor = _ref.textColor,
|
|
31946
|
+
textColor = _ref$textColor === void 0 ? uiColors.white : _ref$textColor,
|
|
31947
|
+
children = _ref.children,
|
|
31948
|
+
_ref$showDelay = _ref.showDelay,
|
|
31949
|
+
showDelay = _ref$showDelay === void 0 ? 200 : _ref$showDelay,
|
|
31950
|
+
_ref$hideDelay = _ref.hideDelay,
|
|
31951
|
+
hideDelay = _ref$hideDelay === void 0 ? 200 : _ref$hideDelay;
|
|
31952
|
+
var _useState = React.useState(false),
|
|
31953
|
+
visible = _useState[0],
|
|
31954
|
+
setVisible = _useState[1];
|
|
31955
|
+
var _useState2 = React.useState({
|
|
31956
|
+
top: 0,
|
|
31957
|
+
left: 0
|
|
31958
|
+
}),
|
|
31959
|
+
tooltipPosition = _useState2[0],
|
|
31960
|
+
setTooltipPosition = _useState2[1];
|
|
31961
|
+
var tooltipRef = React.useRef(null);
|
|
31962
|
+
var triggerRef = React.useRef(null);
|
|
31963
|
+
var timeoutRef = React.useRef();
|
|
31964
|
+
var calculatePosition = function calculatePosition() {
|
|
31965
|
+
if (!triggerRef.current || !tooltipRef.current) return;
|
|
31966
|
+
var triggerRect = triggerRef.current.getBoundingClientRect();
|
|
31967
|
+
var tooltipRect = tooltipRef.current.getBoundingClientRect();
|
|
31968
|
+
var top, left;
|
|
31969
|
+
switch (direction) {
|
|
31970
|
+
case 'top':
|
|
31971
|
+
top = triggerRect.top - tooltipRect.height - 8;
|
|
31972
|
+
left = triggerRect.left + (triggerRect.width - tooltipRect.width) / 2;
|
|
31973
|
+
break;
|
|
31974
|
+
case 'bottom':
|
|
31975
|
+
top = triggerRect.bottom + 8;
|
|
31976
|
+
left = triggerRect.left + (triggerRect.width - tooltipRect.width) / 2;
|
|
31977
|
+
break;
|
|
31978
|
+
case 'left':
|
|
31979
|
+
top = triggerRect.top + (triggerRect.height - tooltipRect.height) / 2;
|
|
31980
|
+
left = triggerRect.left - tooltipRect.width - 8;
|
|
31981
|
+
break;
|
|
31982
|
+
case 'right':
|
|
31983
|
+
top = triggerRect.top + (triggerRect.height - tooltipRect.height) / 2;
|
|
31984
|
+
left = triggerRect.right + 8;
|
|
31985
|
+
break;
|
|
31986
|
+
default:
|
|
31987
|
+
top = triggerRect.top - tooltipRect.height - 8;
|
|
31988
|
+
left = triggerRect.left + (triggerRect.width - tooltipRect.width) / 2;
|
|
31989
|
+
}
|
|
31990
|
+
// Ensure the tooltip stays within the viewport
|
|
31991
|
+
if (left < 8) left = 8;
|
|
31992
|
+
if (left + tooltipRect.width > window.innerWidth) left = window.innerWidth - tooltipRect.width - 8;
|
|
31993
|
+
if (top < 8) top = 8;
|
|
31994
|
+
if (top + tooltipRect.height > window.innerHeight) top = window.innerHeight - tooltipRect.height - 8;
|
|
31995
|
+
setTooltipPosition({
|
|
31996
|
+
top: Math.round(top),
|
|
31997
|
+
left: Math.round(left)
|
|
31998
|
+
});
|
|
31999
|
+
};
|
|
32000
|
+
var showTooltip = function showTooltip() {
|
|
32001
|
+
clearTimeout(timeoutRef.current);
|
|
32002
|
+
timeoutRef.current = setTimeout(function () {
|
|
32003
|
+
setVisible(true);
|
|
32004
|
+
calculatePosition();
|
|
32005
|
+
}, showDelay);
|
|
32006
|
+
};
|
|
32007
|
+
var hideTooltip = function hideTooltip() {
|
|
32008
|
+
clearTimeout(timeoutRef.current);
|
|
32009
|
+
timeoutRef.current = setTimeout(function () {
|
|
32010
|
+
setVisible(false);
|
|
32011
|
+
}, hideDelay);
|
|
32012
|
+
};
|
|
32013
|
+
React.useEffect(function () {
|
|
32014
|
+
var handleMouseMove = function handleMouseMove(event) {
|
|
32015
|
+
if (visible && tooltipRef.current && triggerRef.current) {
|
|
32016
|
+
var tooltipRect = tooltipRef.current.getBoundingClientRect();
|
|
32017
|
+
var triggerRect = triggerRef.current.getBoundingClientRect();
|
|
32018
|
+
var isOutsideTooltip = event.clientX < tooltipRect.left || event.clientX > tooltipRect.right || event.clientY < tooltipRect.top || event.clientY > tooltipRect.bottom;
|
|
32019
|
+
var isOutsideTrigger = event.clientX < triggerRect.left || event.clientX > triggerRect.right || event.clientY < triggerRect.top || event.clientY > triggerRect.bottom;
|
|
32020
|
+
if (isOutsideTooltip && isOutsideTrigger) {
|
|
32021
|
+
hideTooltip();
|
|
32022
|
+
}
|
|
32023
|
+
}
|
|
32024
|
+
};
|
|
32025
|
+
var handleScroll = function handleScroll() {
|
|
32026
|
+
if (visible) {
|
|
32027
|
+
hideTooltip();
|
|
32028
|
+
}
|
|
32029
|
+
};
|
|
32030
|
+
var handleResize = function handleResize() {
|
|
32031
|
+
if (visible) {
|
|
32032
|
+
calculatePosition();
|
|
32033
|
+
}
|
|
32034
|
+
};
|
|
32035
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
32036
|
+
window.addEventListener('scroll', handleScroll);
|
|
32037
|
+
window.addEventListener('resize', handleResize);
|
|
32038
|
+
return function () {
|
|
32039
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
32040
|
+
window.removeEventListener('scroll', handleScroll);
|
|
32041
|
+
window.removeEventListener('resize', handleResize);
|
|
32042
|
+
clearTimeout(timeoutRef.current);
|
|
32043
|
+
};
|
|
32044
|
+
}, [visible]);
|
|
32045
|
+
return React__default.createElement(TooltipContainer, {
|
|
32046
|
+
ref: triggerRef,
|
|
32047
|
+
onMouseEnter: showTooltip,
|
|
32048
|
+
onMouseLeave: hideTooltip,
|
|
32049
|
+
onFocus: showTooltip,
|
|
32050
|
+
onBlur: hideTooltip
|
|
32051
|
+
}, children, visible && ReactDOM.createPortal(React__default.createElement(RPGUIRoot, null, React__default.createElement(TooltipBox, {
|
|
32052
|
+
ref: tooltipRef,
|
|
32053
|
+
direction: direction,
|
|
32054
|
+
backgroundColor: backgroundColor,
|
|
32055
|
+
textColor: textColor,
|
|
31929
32056
|
style: {
|
|
31930
|
-
|
|
32057
|
+
top: tooltipPosition.top,
|
|
32058
|
+
left: tooltipPosition.left
|
|
31931
32059
|
}
|
|
31932
|
-
},
|
|
31933
|
-
|
|
31934
|
-
|
|
31935
|
-
|
|
31936
|
-
|
|
32060
|
+
}, content)), document.body));
|
|
32061
|
+
};
|
|
32062
|
+
var TooltipContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
32063
|
+
displayName: "SimpleTooltip__TooltipContainer",
|
|
32064
|
+
componentId: "sc-l46vpo-0"
|
|
32065
|
+
})(["display:inline-block;cursor:inherit;"]);
|
|
32066
|
+
var fadeIn$1 = /*#__PURE__*/styled.keyframes(["from{opacity:0;transform:scale(0.95);}to{opacity:1;transform:scale(1);}"]);
|
|
32067
|
+
var TooltipBox = /*#__PURE__*/styled__default.div.withConfig({
|
|
32068
|
+
displayName: "SimpleTooltip__TooltipBox",
|
|
32069
|
+
componentId: "sc-l46vpo-1"
|
|
32070
|
+
})(["position:fixed;z-index:1000;background-color:", ";color:", ";padding:8px;border-radius:4px;font-size:0.65rem;max-width:250px;box-shadow:0px 4px 8px rgba(0,0,0,0.1);animation:", " 0.2s ease-out;line-height:1.3;"], function (_ref2) {
|
|
32071
|
+
var backgroundColor = _ref2.backgroundColor;
|
|
32072
|
+
return backgroundColor;
|
|
32073
|
+
}, function (_ref3) {
|
|
32074
|
+
var textColor = _ref3.textColor;
|
|
32075
|
+
return textColor;
|
|
32076
|
+
}, fadeIn$1);
|
|
32077
|
+
|
|
32078
|
+
var QuestList = function QuestList(_ref) {
|
|
32079
|
+
var quests = _ref.quests;
|
|
32080
|
+
return React__default.createElement(QuestListContainer, null, quests && quests.length > 0 ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Table, null, React__default.createElement("thead", null, React__default.createElement(TableRow, null, React__default.createElement(TableHeader, null, "Status"), React__default.createElement(TableHeader, null, "Title"), React__default.createElement(TableHeader, null, "Description"), React__default.createElement(TableHeader, null, "Objectives"), React__default.createElement(TableHeader, null, "Rewards"))), React__default.createElement("tbody", null, quests.map(function (quest, i) {
|
|
32081
|
+
var _quest$status;
|
|
32082
|
+
return React__default.createElement(TableRow, {
|
|
31937
32083
|
key: i
|
|
31938
|
-
}, React__default.createElement(
|
|
31939
|
-
|
|
31940
|
-
|
|
31941
|
-
|
|
31942
|
-
}, React__default.createElement(
|
|
31943
|
-
|
|
31944
|
-
|
|
31945
|
-
|
|
31946
|
-
|
|
31947
|
-
|
|
32084
|
+
}, React__default.createElement(TableCell, {
|
|
32085
|
+
style: {
|
|
32086
|
+
color: getStatusColor(quest.status)
|
|
32087
|
+
}
|
|
32088
|
+
}, (_quest$status = quest.status) != null ? _quest$status : 'Unknown'), React__default.createElement(TableCell, null, React__default.createElement(SimpleTooltip, {
|
|
32089
|
+
content: formatText(quest.title),
|
|
32090
|
+
direction: "bottom"
|
|
32091
|
+
}, React__default.createElement(Ellipsis, {
|
|
32092
|
+
maxWidth: "300px"
|
|
32093
|
+
}, formatText(quest.title)))), React__default.createElement(TableCell, null, React__default.createElement(SimpleTooltip, {
|
|
32094
|
+
content: quest.description,
|
|
32095
|
+
direction: "bottom"
|
|
32096
|
+
}, React__default.createElement(Ellipsis, {
|
|
32097
|
+
maxWidth: "300px"
|
|
32098
|
+
}, quest.description))), React__default.createElement(TableCell, null, React__default.createElement(SimpleTooltip, {
|
|
32099
|
+
content: formatObjectives(quest.objectives),
|
|
32100
|
+
direction: "bottom"
|
|
32101
|
+
}, React__default.createElement(Ellipsis, {
|
|
32102
|
+
maxWidth: "300px"
|
|
32103
|
+
}, formatObjectives(quest.objectives)))), React__default.createElement(TableCell, null, React__default.createElement(SimpleTooltip, {
|
|
32104
|
+
content: formatRewards(quest.rewards),
|
|
32105
|
+
direction: "bottom"
|
|
32106
|
+
}, React__default.createElement(Ellipsis, {
|
|
32107
|
+
maxWidth: "200px"
|
|
32108
|
+
}, formatRewards(quest.rewards)))));
|
|
32109
|
+
})))) : React__default.createElement(NoQuestContainer, null, React__default.createElement("p", null, "There are no ongoing quests")));
|
|
31948
32110
|
};
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
}
|
|
32111
|
+
// Updated helper function to format objectives
|
|
32112
|
+
var formatObjectives = function formatObjectives(objectives) {
|
|
32113
|
+
return objectives.map(function (objective) {
|
|
32114
|
+
if ('killCountTarget' in objective) {
|
|
32115
|
+
// This is an IQuestObjectiveKill
|
|
32116
|
+
var killObjective = objective;
|
|
32117
|
+
return "Kill " + formatText(killObjective.creatureKeys.join(', ')) + ": " + killObjective.killCount + "/" + killObjective.killCountTarget;
|
|
32118
|
+
} else if ('targetNPCkey' in objective) {
|
|
32119
|
+
var _interactionObjective;
|
|
32120
|
+
// This is an IQuestObjectiveInteraction
|
|
32121
|
+
var interactionObjective = objective;
|
|
32122
|
+
return "Interact with NPC: " + formatText((_interactionObjective = interactionObjective.targetNPCkey) != null ? _interactionObjective : 'Unknown');
|
|
32123
|
+
} else {
|
|
32124
|
+
return 'Unknown objective';
|
|
32125
|
+
}
|
|
32126
|
+
}).join('; ');
|
|
32127
|
+
};
|
|
32128
|
+
// Other helper functions remain the same
|
|
32129
|
+
var formatRewards = function formatRewards(rewards) {
|
|
32130
|
+
return rewards.map(function (reward) {
|
|
32131
|
+
return "" + formatText(reward.itemKeys.map(function (itemKey) {
|
|
32132
|
+
return itemKey + ' x' + reward.qty;
|
|
32133
|
+
}).join(', ')) + (reward.spellKeys ? ", Spells: " + formatText(reward.spellKeys.join(', ')) : '');
|
|
32134
|
+
}).join('; ');
|
|
32135
|
+
};
|
|
32136
|
+
var formatText = function formatText(text) {
|
|
32137
|
+
return text.split('-').map(function (word) {
|
|
32138
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
32139
|
+
}).join(' ');
|
|
32140
|
+
};
|
|
32141
|
+
var getStatusColor = function getStatusColor(status) {
|
|
32142
|
+
switch (status) {
|
|
32143
|
+
case shared.QuestStatus.Pending:
|
|
32144
|
+
return uiColors.orange;
|
|
32145
|
+
// Orange
|
|
32146
|
+
case shared.QuestStatus.InProgress:
|
|
32147
|
+
return uiColors.blue;
|
|
32148
|
+
// Deep Sky Blue
|
|
32149
|
+
case shared.QuestStatus.Completed:
|
|
32150
|
+
return uiColors.lightGreen;
|
|
32151
|
+
// Lime Green
|
|
32152
|
+
default:
|
|
32153
|
+
return uiColors.white;
|
|
32154
|
+
// Default to white
|
|
32155
|
+
}
|
|
32156
|
+
};
|
|
32157
|
+
// Styled components
|
|
31957
32158
|
var QuestListContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31958
32159
|
displayName: "QuestList__QuestListContainer",
|
|
31959
|
-
componentId: "sc-1a2vx6q-
|
|
31960
|
-
})(["margin-top:20px;margin-bottom:40px;overflow-y:auto;max-height:400px
|
|
32160
|
+
componentId: "sc-1a2vx6q-0"
|
|
32161
|
+
})(["margin-top:20px;margin-bottom:40px;overflow-y:auto;max-height:400px;background-color:", ";padding:20px;border-radius:10px;border:1px solid ", ";font-size:0.7rem;"], uiColors.darkGray, uiColors.gray);
|
|
31961
32162
|
var NoQuestContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31962
32163
|
displayName: "QuestList__NoQuestContainer",
|
|
31963
|
-
componentId: "sc-1a2vx6q-
|
|
31964
|
-
})(["text-align:center;p{margin-top:5px;}"]);
|
|
32164
|
+
componentId: "sc-1a2vx6q-1"
|
|
32165
|
+
})(["text-align:center;p{margin-top:5px;color:", ";}"], uiColors.lightGray);
|
|
31965
32166
|
|
|
31966
32167
|
var InputRadio$1 = function InputRadio(_ref) {
|
|
31967
32168
|
var name = _ref.name,
|
|
@@ -31995,29 +32196,6 @@ var InputRadio$1 = function InputRadio(_ref) {
|
|
|
31995
32196
|
}));
|
|
31996
32197
|
};
|
|
31997
32198
|
|
|
31998
|
-
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
31999
|
-
var children = _ref.children;
|
|
32000
|
-
return React__default.createElement(Container$r, null, children);
|
|
32001
|
-
};
|
|
32002
|
-
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32003
|
-
displayName: "RPGUIScrollbar__Container",
|
|
32004
|
-
componentId: "sc-p3msmb-0"
|
|
32005
|
-
})([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
|
|
32006
|
-
|
|
32007
|
-
var RPGUIOverrides = function RPGUIOverrides(_ref) {
|
|
32008
|
-
var children = _ref.children;
|
|
32009
|
-
return React__default.createElement(RPGUIScrollbar, null, children);
|
|
32010
|
-
};
|
|
32011
|
-
|
|
32012
|
-
//@ts-ignore
|
|
32013
|
-
var _RPGUI = RPGUI;
|
|
32014
|
-
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
32015
|
-
var children = _ref.children;
|
|
32016
|
-
return React__default.createElement(RPGUIOverrides, null, React__default.createElement("div", {
|
|
32017
|
-
className: "rpgui-content"
|
|
32018
|
-
}, children));
|
|
32019
|
-
};
|
|
32020
|
-
|
|
32021
32199
|
var Shortcuts = function Shortcuts(_ref) {
|
|
32022
32200
|
var shortcuts = _ref.shortcuts,
|
|
32023
32201
|
onShortcutCast = _ref.onShortcutCast,
|
|
@@ -32444,7 +32622,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32444
32622
|
castingType = spell.castingType,
|
|
32445
32623
|
cooldown = spell.cooldown,
|
|
32446
32624
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
32447
|
-
return React__default.createElement(Container$t, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$
|
|
32625
|
+
return React__default.createElement(Container$t, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$8, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
32448
32626
|
className: "label"
|
|
32449
32627
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
32450
32628
|
className: "value"
|
|
@@ -32474,7 +32652,7 @@ var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32474
32652
|
displayName: "SpellInfo__Container",
|
|
32475
32653
|
componentId: "sc-4hbw3q-0"
|
|
32476
32654
|
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
|
|
32477
|
-
var Title$
|
|
32655
|
+
var Title$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32478
32656
|
displayName: "SpellInfo__Title",
|
|
32479
32657
|
componentId: "sc-4hbw3q-1"
|
|
32480
32658
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -32669,7 +32847,7 @@ var Spell = function Spell(_ref) {
|
|
|
32669
32847
|
imgScale: IMAGE_SCALE,
|
|
32670
32848
|
containerStyle: CONTAINER_STYLE,
|
|
32671
32849
|
centered: true
|
|
32672
|
-
})), React__default.createElement(Info, null, React__default.createElement(Title$
|
|
32850
|
+
})), React__default.createElement(Info, null, React__default.createElement(Title$9, null, React__default.createElement("span", null, name), React__default.createElement("span", {
|
|
32673
32851
|
className: "spell"
|
|
32674
32852
|
}, "(", magicWords, ")")), React__default.createElement(Description$3, null, description)), React__default.createElement(Divider, null), React__default.createElement(Cost, null, React__default.createElement("span", null, "Mana cost:"), React__default.createElement("span", {
|
|
32675
32853
|
className: "mana"
|
|
@@ -32690,7 +32868,7 @@ var Info = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
32690
32868
|
displayName: "Spell__Info",
|
|
32691
32869
|
componentId: "sc-j96fa2-2"
|
|
32692
32870
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
32693
|
-
var Title$
|
|
32871
|
+
var Title$9 = /*#__PURE__*/styled__default.p.withConfig({
|
|
32694
32872
|
displayName: "Spell__Title",
|
|
32695
32873
|
componentId: "sc-j96fa2-3"
|
|
32696
32874
|
})(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:5px;margin:0;span{font-size:", " !important;font-weight:bold !important;color:", " !important;margin-right:0.5rem;}.spell{font-size:", " !important;font-weight:normal !important;color:", " !important;}"], uiFonts.size.medium, uiColors.yellow, uiFonts.size.small, uiColors.lightGray);
|
|
@@ -32754,7 +32932,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
32754
32932
|
height: "inherit",
|
|
32755
32933
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
32756
32934
|
scale: scale
|
|
32757
|
-
}, React__default.createElement(Container$x, null, React__default.createElement(Title$
|
|
32935
|
+
}, React__default.createElement(Container$x, null, React__default.createElement(Title$a, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
32758
32936
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
32759
32937
|
settingShortcutIndex: settingShortcutIndex,
|
|
32760
32938
|
shortcuts: shortcuts,
|
|
@@ -32786,7 +32964,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
32786
32964
|
}, spell)));
|
|
32787
32965
|
}))));
|
|
32788
32966
|
};
|
|
32789
|
-
var Title$
|
|
32967
|
+
var Title$a = /*#__PURE__*/styled__default.h1.withConfig({
|
|
32790
32968
|
displayName: "Spellbook__Title",
|
|
32791
32969
|
componentId: "sc-r02nfq-0"
|
|
32792
32970
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -33276,7 +33454,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
33276
33454
|
style: {
|
|
33277
33455
|
width: '100%'
|
|
33278
33456
|
}
|
|
33279
|
-
}, React__default.createElement(Title$
|
|
33457
|
+
}, React__default.createElement(Title$b, null, Capitalize(type), " Menu"), React__default.createElement("hr", {
|
|
33280
33458
|
className: "golden"
|
|
33281
33459
|
})), React__default.createElement(TradingComponentScrollWrapper, {
|
|
33282
33460
|
id: "TraderContainer"
|
|
@@ -33307,7 +33485,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
33307
33485
|
}
|
|
33308
33486
|
}, "Cancel"))));
|
|
33309
33487
|
};
|
|
33310
|
-
var Title$
|
|
33488
|
+
var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
|
|
33311
33489
|
displayName: "TradingMenu__Title",
|
|
33312
33490
|
componentId: "sc-1wjsz1l-0"
|
|
33313
33491
|
})(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
|