@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, Component, useRef, useContext, createContex
|
|
|
2
2
|
import { BeatLoader } from 'react-spinners';
|
|
3
3
|
import styled, { css, keyframes } from 'styled-components';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
|
-
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemRarities, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemSubType, ItemSlotType, isMobileOrTablet, CharacterClass, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
|
|
5
|
+
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemRarities, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemSubType, ItemSlotType, isMobileOrTablet, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
8
8
|
import { RxPaperPlane, RxMagnifyingGlass, RxCross2 } from 'react-icons/rx';
|
|
@@ -11,6 +11,7 @@ import ReactDOM from 'react-dom';
|
|
|
11
11
|
import { camelCase, debounce } from 'lodash-es';
|
|
12
12
|
import { observer } from 'mobx-react-lite';
|
|
13
13
|
import { AiFillCaretRight } from 'react-icons/ai';
|
|
14
|
+
import 'react-tippy/dist/tippy.css';
|
|
14
15
|
import 'rpgui/rpgui.css';
|
|
15
16
|
import 'rpgui/rpgui.min.js';
|
|
16
17
|
import capitalize from 'lodash-es/capitalize';
|
|
@@ -25940,7 +25941,8 @@ var RightArrow = /*#__PURE__*/styled.span.withConfig({
|
|
|
25940
25941
|
|
|
25941
25942
|
var Ellipsis = function Ellipsis(_ref) {
|
|
25942
25943
|
var children = _ref.children,
|
|
25943
|
-
maxLines = _ref.maxLines,
|
|
25944
|
+
_ref$maxLines = _ref.maxLines,
|
|
25945
|
+
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
25944
25946
|
maxWidth = _ref.maxWidth,
|
|
25945
25947
|
fontSize = _ref.fontSize,
|
|
25946
25948
|
center = _ref.center;
|
|
@@ -28788,18 +28790,15 @@ var Table = /*#__PURE__*/styled.table.withConfig({
|
|
|
28788
28790
|
var TableRow = /*#__PURE__*/styled.tr.withConfig({
|
|
28789
28791
|
displayName: "Table__TableRow",
|
|
28790
28792
|
componentId: "sc-1c24pcj-1"
|
|
28791
|
-
})(["&:nth-child(even){background-color:rgba(255,255,255,0.05) !important;}"]);
|
|
28793
|
+
})(["&:nth-child(even){background-color:rgba(255,255,255,0.05) !important;}&:hover{background-color:rgba(255,255,255,0.1) !important;}"]);
|
|
28792
28794
|
var TableHeader = /*#__PURE__*/styled.th.withConfig({
|
|
28793
28795
|
displayName: "Table__TableHeader",
|
|
28794
28796
|
componentId: "sc-1c24pcj-2"
|
|
28795
|
-
})(["text-align:left;padding:0.5rem;color:", " !important;border-bottom:1px solid ", ";"], uiColors.yellow, uiColors.lightGray);
|
|
28797
|
+
})(["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);
|
|
28796
28798
|
var TableCell = /*#__PURE__*/styled.td.withConfig({
|
|
28797
28799
|
displayName: "Table__TableCell",
|
|
28798
28800
|
componentId: "sc-1c24pcj-3"
|
|
28799
|
-
})(["padding:0.5rem;color:", ";border-bottom:1px solid ", ";text-
|
|
28800
|
-
var align = _ref.align;
|
|
28801
|
-
return align ? align : 'left';
|
|
28802
|
-
});
|
|
28801
|
+
})(["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);
|
|
28803
28802
|
var ActionButtons = /*#__PURE__*/styled.div.withConfig({
|
|
28804
28803
|
displayName: "Table__ActionButtons",
|
|
28805
28804
|
componentId: "sc-1c24pcj-4"
|
|
@@ -28807,8 +28806,8 @@ var ActionButtons = /*#__PURE__*/styled.div.withConfig({
|
|
|
28807
28806
|
var UserActionLink = /*#__PURE__*/styled.span.withConfig({
|
|
28808
28807
|
displayName: "Table__UserActionLink",
|
|
28809
28808
|
componentId: "sc-1c24pcj-5"
|
|
28810
|
-
})(["color:", " !important;cursor:pointer;margin-right:0.5rem;&:hover{text-decoration:underline;}"], function (
|
|
28811
|
-
var color =
|
|
28809
|
+
})(["color:", " !important;cursor:pointer;margin-right:0.5rem;&:hover{text-decoration:underline;}"], function (_ref) {
|
|
28810
|
+
var color = _ref.color;
|
|
28812
28811
|
return color;
|
|
28813
28812
|
});
|
|
28814
28813
|
|
|
@@ -31912,54 +31911,256 @@ var Thumbnail = /*#__PURE__*/styled.img.withConfig({
|
|
|
31912
31911
|
componentId: "sc-15s2boc-8"
|
|
31913
31912
|
})(["color:white;z-index:22;width:32px * 1.5;margin-right:0.5rem;position:relative;top:-4px;"]);
|
|
31914
31913
|
|
|
31915
|
-
var
|
|
31916
|
-
var
|
|
31917
|
-
|
|
31918
|
-
|
|
31919
|
-
|
|
31920
|
-
|
|
31921
|
-
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
31925
|
-
|
|
31926
|
-
|
|
31914
|
+
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
31915
|
+
var children = _ref.children;
|
|
31916
|
+
return React.createElement(Container$r, null, children);
|
|
31917
|
+
};
|
|
31918
|
+
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
31919
|
+
displayName: "RPGUIScrollbar__Container",
|
|
31920
|
+
componentId: "sc-p3msmb-0"
|
|
31921
|
+
})([".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;}"]);
|
|
31922
|
+
|
|
31923
|
+
var RPGUIOverrides = function RPGUIOverrides(_ref) {
|
|
31924
|
+
var children = _ref.children;
|
|
31925
|
+
return React.createElement(RPGUIScrollbar, null, children);
|
|
31926
|
+
};
|
|
31927
|
+
|
|
31928
|
+
//@ts-ignore
|
|
31929
|
+
var _RPGUI = RPGUI;
|
|
31930
|
+
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
31931
|
+
var children = _ref.children;
|
|
31932
|
+
return React.createElement(RPGUIOverrides, null, React.createElement("div", {
|
|
31933
|
+
className: "rpgui-content"
|
|
31934
|
+
}, children));
|
|
31935
|
+
};
|
|
31936
|
+
|
|
31937
|
+
var SimpleTooltip = function SimpleTooltip(_ref) {
|
|
31938
|
+
var content = _ref.content,
|
|
31939
|
+
_ref$direction = _ref.direction,
|
|
31940
|
+
direction = _ref$direction === void 0 ? 'top' : _ref$direction,
|
|
31941
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
31942
|
+
backgroundColor = _ref$backgroundColor === void 0 ? uiColors.raisinBlack : _ref$backgroundColor,
|
|
31943
|
+
_ref$textColor = _ref.textColor,
|
|
31944
|
+
textColor = _ref$textColor === void 0 ? uiColors.white : _ref$textColor,
|
|
31945
|
+
children = _ref.children,
|
|
31946
|
+
_ref$showDelay = _ref.showDelay,
|
|
31947
|
+
showDelay = _ref$showDelay === void 0 ? 200 : _ref$showDelay,
|
|
31948
|
+
_ref$hideDelay = _ref.hideDelay,
|
|
31949
|
+
hideDelay = _ref$hideDelay === void 0 ? 200 : _ref$hideDelay;
|
|
31950
|
+
var _useState = useState(false),
|
|
31951
|
+
visible = _useState[0],
|
|
31952
|
+
setVisible = _useState[1];
|
|
31953
|
+
var _useState2 = useState({
|
|
31954
|
+
top: 0,
|
|
31955
|
+
left: 0
|
|
31956
|
+
}),
|
|
31957
|
+
tooltipPosition = _useState2[0],
|
|
31958
|
+
setTooltipPosition = _useState2[1];
|
|
31959
|
+
var tooltipRef = useRef(null);
|
|
31960
|
+
var triggerRef = useRef(null);
|
|
31961
|
+
var timeoutRef = useRef();
|
|
31962
|
+
var calculatePosition = function calculatePosition() {
|
|
31963
|
+
if (!triggerRef.current || !tooltipRef.current) return;
|
|
31964
|
+
var triggerRect = triggerRef.current.getBoundingClientRect();
|
|
31965
|
+
var tooltipRect = tooltipRef.current.getBoundingClientRect();
|
|
31966
|
+
var top, left;
|
|
31967
|
+
switch (direction) {
|
|
31968
|
+
case 'top':
|
|
31969
|
+
top = triggerRect.top - tooltipRect.height - 8;
|
|
31970
|
+
left = triggerRect.left + (triggerRect.width - tooltipRect.width) / 2;
|
|
31971
|
+
break;
|
|
31972
|
+
case 'bottom':
|
|
31973
|
+
top = triggerRect.bottom + 8;
|
|
31974
|
+
left = triggerRect.left + (triggerRect.width - tooltipRect.width) / 2;
|
|
31975
|
+
break;
|
|
31976
|
+
case 'left':
|
|
31977
|
+
top = triggerRect.top + (triggerRect.height - tooltipRect.height) / 2;
|
|
31978
|
+
left = triggerRect.left - tooltipRect.width - 8;
|
|
31979
|
+
break;
|
|
31980
|
+
case 'right':
|
|
31981
|
+
top = triggerRect.top + (triggerRect.height - tooltipRect.height) / 2;
|
|
31982
|
+
left = triggerRect.right + 8;
|
|
31983
|
+
break;
|
|
31984
|
+
default:
|
|
31985
|
+
top = triggerRect.top - tooltipRect.height - 8;
|
|
31986
|
+
left = triggerRect.left + (triggerRect.width - tooltipRect.width) / 2;
|
|
31987
|
+
}
|
|
31988
|
+
// Ensure the tooltip stays within the viewport
|
|
31989
|
+
if (left < 8) left = 8;
|
|
31990
|
+
if (left + tooltipRect.width > window.innerWidth) left = window.innerWidth - tooltipRect.width - 8;
|
|
31991
|
+
if (top < 8) top = 8;
|
|
31992
|
+
if (top + tooltipRect.height > window.innerHeight) top = window.innerHeight - tooltipRect.height - 8;
|
|
31993
|
+
setTooltipPosition({
|
|
31994
|
+
top: Math.round(top),
|
|
31995
|
+
left: Math.round(left)
|
|
31996
|
+
});
|
|
31997
|
+
};
|
|
31998
|
+
var showTooltip = function showTooltip() {
|
|
31999
|
+
clearTimeout(timeoutRef.current);
|
|
32000
|
+
timeoutRef.current = setTimeout(function () {
|
|
32001
|
+
setVisible(true);
|
|
32002
|
+
calculatePosition();
|
|
32003
|
+
}, showDelay);
|
|
32004
|
+
};
|
|
32005
|
+
var hideTooltip = function hideTooltip() {
|
|
32006
|
+
clearTimeout(timeoutRef.current);
|
|
32007
|
+
timeoutRef.current = setTimeout(function () {
|
|
32008
|
+
setVisible(false);
|
|
32009
|
+
}, hideDelay);
|
|
32010
|
+
};
|
|
32011
|
+
useEffect(function () {
|
|
32012
|
+
var handleMouseMove = function handleMouseMove(event) {
|
|
32013
|
+
if (visible && tooltipRef.current && triggerRef.current) {
|
|
32014
|
+
var tooltipRect = tooltipRef.current.getBoundingClientRect();
|
|
32015
|
+
var triggerRect = triggerRef.current.getBoundingClientRect();
|
|
32016
|
+
var isOutsideTooltip = event.clientX < tooltipRect.left || event.clientX > tooltipRect.right || event.clientY < tooltipRect.top || event.clientY > tooltipRect.bottom;
|
|
32017
|
+
var isOutsideTrigger = event.clientX < triggerRect.left || event.clientX > triggerRect.right || event.clientY < triggerRect.top || event.clientY > triggerRect.bottom;
|
|
32018
|
+
if (isOutsideTooltip && isOutsideTrigger) {
|
|
32019
|
+
hideTooltip();
|
|
32020
|
+
}
|
|
32021
|
+
}
|
|
32022
|
+
};
|
|
32023
|
+
var handleScroll = function handleScroll() {
|
|
32024
|
+
if (visible) {
|
|
32025
|
+
hideTooltip();
|
|
32026
|
+
}
|
|
32027
|
+
};
|
|
32028
|
+
var handleResize = function handleResize() {
|
|
32029
|
+
if (visible) {
|
|
32030
|
+
calculatePosition();
|
|
32031
|
+
}
|
|
32032
|
+
};
|
|
32033
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
32034
|
+
window.addEventListener('scroll', handleScroll);
|
|
32035
|
+
window.addEventListener('resize', handleResize);
|
|
32036
|
+
return function () {
|
|
32037
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
32038
|
+
window.removeEventListener('scroll', handleScroll);
|
|
32039
|
+
window.removeEventListener('resize', handleResize);
|
|
32040
|
+
clearTimeout(timeoutRef.current);
|
|
32041
|
+
};
|
|
32042
|
+
}, [visible]);
|
|
32043
|
+
return React.createElement(TooltipContainer, {
|
|
32044
|
+
ref: triggerRef,
|
|
32045
|
+
onMouseEnter: showTooltip,
|
|
32046
|
+
onMouseLeave: hideTooltip,
|
|
32047
|
+
onFocus: showTooltip,
|
|
32048
|
+
onBlur: hideTooltip
|
|
32049
|
+
}, children, visible && ReactDOM.createPortal(React.createElement(RPGUIRoot, null, React.createElement(TooltipBox, {
|
|
32050
|
+
ref: tooltipRef,
|
|
32051
|
+
direction: direction,
|
|
32052
|
+
backgroundColor: backgroundColor,
|
|
32053
|
+
textColor: textColor,
|
|
31927
32054
|
style: {
|
|
31928
|
-
|
|
32055
|
+
top: tooltipPosition.top,
|
|
32056
|
+
left: tooltipPosition.left
|
|
31929
32057
|
}
|
|
31930
|
-
},
|
|
31931
|
-
|
|
31932
|
-
|
|
31933
|
-
|
|
31934
|
-
|
|
32058
|
+
}, content)), document.body));
|
|
32059
|
+
};
|
|
32060
|
+
var TooltipContainer = /*#__PURE__*/styled.div.withConfig({
|
|
32061
|
+
displayName: "SimpleTooltip__TooltipContainer",
|
|
32062
|
+
componentId: "sc-l46vpo-0"
|
|
32063
|
+
})(["display:inline-block;cursor:inherit;"]);
|
|
32064
|
+
var fadeIn$1 = /*#__PURE__*/keyframes(["from{opacity:0;transform:scale(0.95);}to{opacity:1;transform:scale(1);}"]);
|
|
32065
|
+
var TooltipBox = /*#__PURE__*/styled.div.withConfig({
|
|
32066
|
+
displayName: "SimpleTooltip__TooltipBox",
|
|
32067
|
+
componentId: "sc-l46vpo-1"
|
|
32068
|
+
})(["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) {
|
|
32069
|
+
var backgroundColor = _ref2.backgroundColor;
|
|
32070
|
+
return backgroundColor;
|
|
32071
|
+
}, function (_ref3) {
|
|
32072
|
+
var textColor = _ref3.textColor;
|
|
32073
|
+
return textColor;
|
|
32074
|
+
}, fadeIn$1);
|
|
32075
|
+
|
|
32076
|
+
var QuestList = function QuestList(_ref) {
|
|
32077
|
+
var quests = _ref.quests;
|
|
32078
|
+
return React.createElement(QuestListContainer, null, quests && quests.length > 0 ? React.createElement(React.Fragment, null, React.createElement(Table, null, React.createElement("thead", null, React.createElement(TableRow, null, React.createElement(TableHeader, null, "Status"), React.createElement(TableHeader, null, "Title"), React.createElement(TableHeader, null, "Description"), React.createElement(TableHeader, null, "Objectives"), React.createElement(TableHeader, null, "Rewards"))), React.createElement("tbody", null, quests.map(function (quest, i) {
|
|
32079
|
+
var _quest$status;
|
|
32080
|
+
return React.createElement(TableRow, {
|
|
31935
32081
|
key: i
|
|
31936
|
-
}, React.createElement(
|
|
31937
|
-
|
|
31938
|
-
|
|
31939
|
-
|
|
31940
|
-
}, React.createElement(
|
|
31941
|
-
|
|
31942
|
-
|
|
31943
|
-
|
|
31944
|
-
|
|
31945
|
-
|
|
32082
|
+
}, React.createElement(TableCell, {
|
|
32083
|
+
style: {
|
|
32084
|
+
color: getStatusColor(quest.status)
|
|
32085
|
+
}
|
|
32086
|
+
}, (_quest$status = quest.status) != null ? _quest$status : 'Unknown'), React.createElement(TableCell, null, React.createElement(SimpleTooltip, {
|
|
32087
|
+
content: formatText(quest.title),
|
|
32088
|
+
direction: "bottom"
|
|
32089
|
+
}, React.createElement(Ellipsis, {
|
|
32090
|
+
maxWidth: "300px"
|
|
32091
|
+
}, formatText(quest.title)))), React.createElement(TableCell, null, React.createElement(SimpleTooltip, {
|
|
32092
|
+
content: quest.description,
|
|
32093
|
+
direction: "bottom"
|
|
32094
|
+
}, React.createElement(Ellipsis, {
|
|
32095
|
+
maxWidth: "300px"
|
|
32096
|
+
}, quest.description))), React.createElement(TableCell, null, React.createElement(SimpleTooltip, {
|
|
32097
|
+
content: formatObjectives(quest.objectives),
|
|
32098
|
+
direction: "bottom"
|
|
32099
|
+
}, React.createElement(Ellipsis, {
|
|
32100
|
+
maxWidth: "300px"
|
|
32101
|
+
}, formatObjectives(quest.objectives)))), React.createElement(TableCell, null, React.createElement(SimpleTooltip, {
|
|
32102
|
+
content: formatRewards(quest.rewards),
|
|
32103
|
+
direction: "bottom"
|
|
32104
|
+
}, React.createElement(Ellipsis, {
|
|
32105
|
+
maxWidth: "200px"
|
|
32106
|
+
}, formatRewards(quest.rewards)))));
|
|
32107
|
+
})))) : React.createElement(NoQuestContainer, null, React.createElement("p", null, "There are no ongoing quests")));
|
|
31946
32108
|
};
|
|
31947
|
-
|
|
31948
|
-
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
|
|
31954
|
-
}
|
|
32109
|
+
// Updated helper function to format objectives
|
|
32110
|
+
var formatObjectives = function formatObjectives(objectives) {
|
|
32111
|
+
return objectives.map(function (objective) {
|
|
32112
|
+
if ('killCountTarget' in objective) {
|
|
32113
|
+
// This is an IQuestObjectiveKill
|
|
32114
|
+
var killObjective = objective;
|
|
32115
|
+
return "Kill " + formatText(killObjective.creatureKeys.join(', ')) + ": " + killObjective.killCount + "/" + killObjective.killCountTarget;
|
|
32116
|
+
} else if ('targetNPCkey' in objective) {
|
|
32117
|
+
var _interactionObjective;
|
|
32118
|
+
// This is an IQuestObjectiveInteraction
|
|
32119
|
+
var interactionObjective = objective;
|
|
32120
|
+
return "Interact with NPC: " + formatText((_interactionObjective = interactionObjective.targetNPCkey) != null ? _interactionObjective : 'Unknown');
|
|
32121
|
+
} else {
|
|
32122
|
+
return 'Unknown objective';
|
|
32123
|
+
}
|
|
32124
|
+
}).join('; ');
|
|
32125
|
+
};
|
|
32126
|
+
// Other helper functions remain the same
|
|
32127
|
+
var formatRewards = function formatRewards(rewards) {
|
|
32128
|
+
return rewards.map(function (reward) {
|
|
32129
|
+
return "" + formatText(reward.itemKeys.map(function (itemKey) {
|
|
32130
|
+
return itemKey + ' x' + reward.qty;
|
|
32131
|
+
}).join(', ')) + (reward.spellKeys ? ", Spells: " + formatText(reward.spellKeys.join(', ')) : '');
|
|
32132
|
+
}).join('; ');
|
|
32133
|
+
};
|
|
32134
|
+
var formatText = function formatText(text) {
|
|
32135
|
+
return text.split('-').map(function (word) {
|
|
32136
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
32137
|
+
}).join(' ');
|
|
32138
|
+
};
|
|
32139
|
+
var getStatusColor = function getStatusColor(status) {
|
|
32140
|
+
switch (status) {
|
|
32141
|
+
case QuestStatus.Pending:
|
|
32142
|
+
return uiColors.orange;
|
|
32143
|
+
// Orange
|
|
32144
|
+
case QuestStatus.InProgress:
|
|
32145
|
+
return uiColors.blue;
|
|
32146
|
+
// Deep Sky Blue
|
|
32147
|
+
case QuestStatus.Completed:
|
|
32148
|
+
return uiColors.lightGreen;
|
|
32149
|
+
// Lime Green
|
|
32150
|
+
default:
|
|
32151
|
+
return uiColors.white;
|
|
32152
|
+
// Default to white
|
|
32153
|
+
}
|
|
32154
|
+
};
|
|
32155
|
+
// Styled components
|
|
31955
32156
|
var QuestListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31956
32157
|
displayName: "QuestList__QuestListContainer",
|
|
31957
|
-
componentId: "sc-1a2vx6q-
|
|
31958
|
-
})(["margin-top:20px;margin-bottom:40px;overflow-y:auto;max-height:400px
|
|
32158
|
+
componentId: "sc-1a2vx6q-0"
|
|
32159
|
+
})(["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);
|
|
31959
32160
|
var NoQuestContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31960
32161
|
displayName: "QuestList__NoQuestContainer",
|
|
31961
|
-
componentId: "sc-1a2vx6q-
|
|
31962
|
-
})(["text-align:center;p{margin-top:5px;}"]);
|
|
32162
|
+
componentId: "sc-1a2vx6q-1"
|
|
32163
|
+
})(["text-align:center;p{margin-top:5px;color:", ";}"], uiColors.lightGray);
|
|
31963
32164
|
|
|
31964
32165
|
var InputRadio$1 = function InputRadio(_ref) {
|
|
31965
32166
|
var name = _ref.name,
|
|
@@ -31993,29 +32194,6 @@ var InputRadio$1 = function InputRadio(_ref) {
|
|
|
31993
32194
|
}));
|
|
31994
32195
|
};
|
|
31995
32196
|
|
|
31996
|
-
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
31997
|
-
var children = _ref.children;
|
|
31998
|
-
return React.createElement(Container$r, null, children);
|
|
31999
|
-
};
|
|
32000
|
-
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
32001
|
-
displayName: "RPGUIScrollbar__Container",
|
|
32002
|
-
componentId: "sc-p3msmb-0"
|
|
32003
|
-
})([".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;}"]);
|
|
32004
|
-
|
|
32005
|
-
var RPGUIOverrides = function RPGUIOverrides(_ref) {
|
|
32006
|
-
var children = _ref.children;
|
|
32007
|
-
return React.createElement(RPGUIScrollbar, null, children);
|
|
32008
|
-
};
|
|
32009
|
-
|
|
32010
|
-
//@ts-ignore
|
|
32011
|
-
var _RPGUI = RPGUI;
|
|
32012
|
-
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
32013
|
-
var children = _ref.children;
|
|
32014
|
-
return React.createElement(RPGUIOverrides, null, React.createElement("div", {
|
|
32015
|
-
className: "rpgui-content"
|
|
32016
|
-
}, children));
|
|
32017
|
-
};
|
|
32018
|
-
|
|
32019
32197
|
var Shortcuts = function Shortcuts(_ref) {
|
|
32020
32198
|
var shortcuts = _ref.shortcuts,
|
|
32021
32199
|
onShortcutCast = _ref.onShortcutCast,
|
|
@@ -32442,7 +32620,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32442
32620
|
castingType = spell.castingType,
|
|
32443
32621
|
cooldown = spell.cooldown,
|
|
32444
32622
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
32445
|
-
return React.createElement(Container$t, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$
|
|
32623
|
+
return React.createElement(Container$t, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$8, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
32446
32624
|
className: "label"
|
|
32447
32625
|
}, "Casting Type:"), React.createElement("div", {
|
|
32448
32626
|
className: "value"
|
|
@@ -32472,7 +32650,7 @@ var Container$t = /*#__PURE__*/styled.div.withConfig({
|
|
|
32472
32650
|
displayName: "SpellInfo__Container",
|
|
32473
32651
|
componentId: "sc-4hbw3q-0"
|
|
32474
32652
|
})(["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);
|
|
32475
|
-
var Title$
|
|
32653
|
+
var Title$8 = /*#__PURE__*/styled.div.withConfig({
|
|
32476
32654
|
displayName: "SpellInfo__Title",
|
|
32477
32655
|
componentId: "sc-4hbw3q-1"
|
|
32478
32656
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -32667,7 +32845,7 @@ var Spell = function Spell(_ref) {
|
|
|
32667
32845
|
imgScale: IMAGE_SCALE,
|
|
32668
32846
|
containerStyle: CONTAINER_STYLE,
|
|
32669
32847
|
centered: true
|
|
32670
|
-
})), React.createElement(Info, null, React.createElement(Title$
|
|
32848
|
+
})), React.createElement(Info, null, React.createElement(Title$9, null, React.createElement("span", null, name), React.createElement("span", {
|
|
32671
32849
|
className: "spell"
|
|
32672
32850
|
}, "(", magicWords, ")")), React.createElement(Description$3, null, description)), React.createElement(Divider, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
|
|
32673
32851
|
className: "mana"
|
|
@@ -32688,7 +32866,7 @@ var Info = /*#__PURE__*/styled.span.withConfig({
|
|
|
32688
32866
|
displayName: "Spell__Info",
|
|
32689
32867
|
componentId: "sc-j96fa2-2"
|
|
32690
32868
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
32691
|
-
var Title$
|
|
32869
|
+
var Title$9 = /*#__PURE__*/styled.p.withConfig({
|
|
32692
32870
|
displayName: "Spell__Title",
|
|
32693
32871
|
componentId: "sc-j96fa2-3"
|
|
32694
32872
|
})(["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);
|
|
@@ -32752,7 +32930,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
32752
32930
|
height: "inherit",
|
|
32753
32931
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
32754
32932
|
scale: scale
|
|
32755
|
-
}, React.createElement(Container$x, null, React.createElement(Title$
|
|
32933
|
+
}, React.createElement(Container$x, null, React.createElement(Title$a, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
32756
32934
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
32757
32935
|
settingShortcutIndex: settingShortcutIndex,
|
|
32758
32936
|
shortcuts: shortcuts,
|
|
@@ -32784,7 +32962,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
32784
32962
|
}, spell)));
|
|
32785
32963
|
}))));
|
|
32786
32964
|
};
|
|
32787
|
-
var Title$
|
|
32965
|
+
var Title$a = /*#__PURE__*/styled.h1.withConfig({
|
|
32788
32966
|
displayName: "Spellbook__Title",
|
|
32789
32967
|
componentId: "sc-r02nfq-0"
|
|
32790
32968
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -33274,7 +33452,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
33274
33452
|
style: {
|
|
33275
33453
|
width: '100%'
|
|
33276
33454
|
}
|
|
33277
|
-
}, React.createElement(Title$
|
|
33455
|
+
}, React.createElement(Title$b, null, Capitalize(type), " Menu"), React.createElement("hr", {
|
|
33278
33456
|
className: "golden"
|
|
33279
33457
|
})), React.createElement(TradingComponentScrollWrapper, {
|
|
33280
33458
|
id: "TraderContainer"
|
|
@@ -33305,7 +33483,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
33305
33483
|
}
|
|
33306
33484
|
}, "Cancel"))));
|
|
33307
33485
|
};
|
|
33308
|
-
var Title$
|
|
33486
|
+
var Title$b = /*#__PURE__*/styled.h1.withConfig({
|
|
33309
33487
|
displayName: "TradingMenu__Title",
|
|
33310
33488
|
componentId: "sc-1wjsz1l-0"
|
|
33311
33489
|
})(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
|