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