@rpg-engine/long-bow 0.2.41 → 0.2.42
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/ListMenu.d.ts +0 -1
- package/dist/constants/uiColors.d.ts +12 -2
- package/dist/constants/uiFonts.d.ts +12 -0
- package/dist/long-bow.cjs.development.js +52 -34
- 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 +52 -34
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Button.tsx +2 -1
- package/src/components/Chat/Chat.tsx +4 -3
- package/src/components/DraggableContainer.tsx +3 -2
- package/src/components/Item/Cards/ItemTooltip.tsx +2 -1
- package/src/components/ListMenu.tsx +3 -5
- package/src/components/ProgressBar.tsx +2 -1
- package/src/components/PropertySelect/PropertySelect.tsx +6 -0
- package/src/components/QuestInfo/QuestInfo.tsx +8 -5
- package/src/components/QuestList.tsx +2 -1
- package/src/components/ScrollList.tsx +3 -2
- package/src/components/SkillsContainer.tsx +5 -5
- package/src/components/TradingMenu/TradingItemRow.tsx +4 -4
- package/src/constants/uiColors.ts +15 -5
- package/src/constants/uiFonts.ts +12 -0
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/NPCDialog/img/.DS_Store +0 -0
- package/src/mocks/.DS_Store +0 -0
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
1
|
+
export declare const uiColors: {
|
|
2
|
+
lightGray: string;
|
|
3
|
+
gray: string;
|
|
4
|
+
darkGray: string;
|
|
3
5
|
darkYellow: string;
|
|
6
|
+
yellow: string;
|
|
4
7
|
orange: string;
|
|
5
8
|
cardinal: string;
|
|
9
|
+
red: string;
|
|
10
|
+
darkRed: string;
|
|
6
11
|
raisinBlack: string;
|
|
7
12
|
navyBlue: string;
|
|
8
13
|
purple: string;
|
|
14
|
+
darkPurple: string;
|
|
9
15
|
blue: string;
|
|
16
|
+
darkBlue: string;
|
|
17
|
+
brown: string;
|
|
18
|
+
lightGreen: string;
|
|
19
|
+
brownGreen: string;
|
|
10
20
|
};
|
|
@@ -60,6 +60,19 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
60
60
|
return target;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
var uiFonts = {
|
|
64
|
+
size: {
|
|
65
|
+
xxsmall: '8px',
|
|
66
|
+
xsmall: '9px',
|
|
67
|
+
small: '12px',
|
|
68
|
+
medium: '14px',
|
|
69
|
+
large: '16px',
|
|
70
|
+
xLarge: '18px',
|
|
71
|
+
xxLarge: '20px',
|
|
72
|
+
xxxLarge: '24px'
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
63
76
|
var _excluded = ["disabled", "children", "buttonType"];
|
|
64
77
|
(function (ButtonTypes) {
|
|
65
78
|
ButtonTypes["RPGUIButton"] = "rpgui-button";
|
|
@@ -79,7 +92,7 @@ var Button = function Button(_ref) {
|
|
|
79
92
|
var ButtonContainer = /*#__PURE__*/styled.button.withConfig({
|
|
80
93
|
displayName: "Button__ButtonContainer",
|
|
81
94
|
componentId: "sc-obzd3o-0"
|
|
82
|
-
})(["height:45px;font-size:
|
|
95
|
+
})(["height:45px;font-size:", ";"], uiFonts.size.small);
|
|
83
96
|
|
|
84
97
|
var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
85
98
|
var atlasJSON = _ref.atlasJSON,
|
|
@@ -27406,7 +27419,7 @@ var PropertySelect = function PropertySelect(_ref) {
|
|
|
27406
27419
|
var Item = /*#__PURE__*/styled.span.withConfig({
|
|
27407
27420
|
displayName: "PropertySelect__Item",
|
|
27408
27421
|
componentId: "sc-12uqx6s-0"
|
|
27409
|
-
})(["font-size:1rem;color:white;text-align:center;z-index:1;position:absolute;top:12px;width:100%;"]);
|
|
27422
|
+
})(["font-size:1rem;color:white;text-align:center;z-index:1;position:absolute;top:12px;width:100%;p{margin:0 auto;font-size:", ";}"], uiFonts.size.small);
|
|
27410
27423
|
var TextOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
27411
27424
|
displayName: "PropertySelect__TextOverlay",
|
|
27412
27425
|
componentId: "sc-12uqx6s-1"
|
|
@@ -27473,15 +27486,25 @@ var Container$3 = /*#__PURE__*/styled.div.withConfig({
|
|
|
27473
27486
|
componentId: "sc-b34498-0"
|
|
27474
27487
|
})(["display:flex;flex-direction:column;align-items:center;image-rendering:pixelated;"]);
|
|
27475
27488
|
|
|
27476
|
-
var
|
|
27477
|
-
|
|
27489
|
+
var uiColors = {
|
|
27490
|
+
lightGray: '#757161',
|
|
27491
|
+
gray: '#4E4A4E',
|
|
27492
|
+
darkGray: '#3e3e3e',
|
|
27478
27493
|
darkYellow: '#FFC857',
|
|
27479
|
-
|
|
27494
|
+
yellow: '#FFFF00',
|
|
27495
|
+
orange: '#D27D2C',
|
|
27480
27496
|
cardinal: '#C5283D',
|
|
27497
|
+
red: '#D04648',
|
|
27498
|
+
darkRed: '#442434',
|
|
27481
27499
|
raisinBlack: '#191923',
|
|
27482
27500
|
navyBlue: '#0E79B2',
|
|
27483
|
-
purple: '#
|
|
27484
|
-
|
|
27501
|
+
purple: '#6833A3',
|
|
27502
|
+
darkPurple: '#522761',
|
|
27503
|
+
blue: '#597DCE',
|
|
27504
|
+
darkBlue: '#30346D',
|
|
27505
|
+
brown: '#854C30',
|
|
27506
|
+
lightGreen: '#6DAA2C',
|
|
27507
|
+
brownGreen: '#346524'
|
|
27485
27508
|
};
|
|
27486
27509
|
|
|
27487
27510
|
var Input = function Input(_ref) {
|
|
@@ -27632,7 +27655,7 @@ var CustomContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
|
|
|
27632
27655
|
componentId: "sc-1bk05n6-3"
|
|
27633
27656
|
})(["display:block;opacity:", ";&:hover{opacity:1;}.dark-background{background-color:", " !important;}.chat-body{&.rpgui-container.framed-grey{background:unset;}max-height:170px;overflow-y:auto;}"], function (props) {
|
|
27634
27657
|
return props.opacity;
|
|
27635
|
-
},
|
|
27658
|
+
}, uiColors.darkGray);
|
|
27636
27659
|
var Form = /*#__PURE__*/styled.form.withConfig({
|
|
27637
27660
|
displayName: "Chat__Form",
|
|
27638
27661
|
componentId: "sc-1bk05n6-4"
|
|
@@ -27640,7 +27663,7 @@ var Form = /*#__PURE__*/styled.form.withConfig({
|
|
|
27640
27663
|
var MessageText = /*#__PURE__*/styled.p.withConfig({
|
|
27641
27664
|
displayName: "Chat__MessageText",
|
|
27642
27665
|
componentId: "sc-1bk05n6-5"
|
|
27643
|
-
})(["display:block !important;width:100%;font-size:
|
|
27666
|
+
})(["display:block !important;width:100%;font-size:", " !important;overflow-y:auto;margin:0;"], uiFonts.size.xsmall);
|
|
27644
27667
|
|
|
27645
27668
|
var CheckButton = function CheckButton(_ref) {
|
|
27646
27669
|
var items = _ref.items,
|
|
@@ -27783,11 +27806,11 @@ var TitleContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
27783
27806
|
var Title = /*#__PURE__*/styled.h1.withConfig({
|
|
27784
27807
|
displayName: "DraggableContainer__Title",
|
|
27785
27808
|
componentId: "sc-184mpyl-3"
|
|
27786
|
-
})(["color:white;z-index:22;font-size:
|
|
27809
|
+
})(["color:white;z-index:22;font-size:", ";"], uiFonts.size.large);
|
|
27787
27810
|
var Icon = /*#__PURE__*/styled.img.withConfig({
|
|
27788
27811
|
displayName: "DraggableContainer__Icon",
|
|
27789
27812
|
componentId: "sc-184mpyl-4"
|
|
27790
|
-
})(["color:white;z-index:22;font-size:
|
|
27813
|
+
})(["color:white;z-index:22;font-size:", ";width:", ";margin-right:0.5rem;"], uiFonts.size.xsmall, function (props) {
|
|
27791
27814
|
return props.width;
|
|
27792
27815
|
});
|
|
27793
27816
|
|
|
@@ -27891,7 +27914,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
|
|
|
27891
27914
|
var Container$8 = /*#__PURE__*/styled.div.withConfig({
|
|
27892
27915
|
displayName: "ItemTooltip__Container",
|
|
27893
27916
|
componentId: "sc-11d9r7x-0"
|
|
27894
|
-
})(["z-index:2;position:absolute;top:1rem;left:4rem;font-size:
|
|
27917
|
+
})(["z-index:2;position:absolute;top:1rem;left:4rem;font-size:", ";color:white;background-color:black;border-radius:5px;padding:0.5rem;min-width:20px;width:100%;text-align:center;opacity:0.75;"], uiFonts.size.xxsmall);
|
|
27895
27918
|
|
|
27896
27919
|
var generateContextMenuListOptions = function generateContextMenuListOptions(actionsByTypeList) {
|
|
27897
27920
|
var contextMenu = actionsByTypeList.map(function (action) {
|
|
@@ -28807,13 +28830,10 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
28807
28830
|
var options = _ref.options,
|
|
28808
28831
|
onSelected = _ref.onSelected,
|
|
28809
28832
|
x = _ref.x,
|
|
28810
|
-
y = _ref.y
|
|
28811
|
-
_ref$fontSize = _ref.fontSize,
|
|
28812
|
-
fontSize = _ref$fontSize === void 0 ? 0.8 : _ref$fontSize;
|
|
28833
|
+
y = _ref.y;
|
|
28813
28834
|
return React__default.createElement(Container$e, {
|
|
28814
28835
|
x: x,
|
|
28815
|
-
y: y
|
|
28816
|
-
fontSize: fontSize
|
|
28836
|
+
y: y
|
|
28817
28837
|
}, React__default.createElement("ul", {
|
|
28818
28838
|
className: "rpgui-list-imp",
|
|
28819
28839
|
style: {
|
|
@@ -28831,13 +28851,11 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
28831
28851
|
var Container$e = /*#__PURE__*/styled.div.withConfig({
|
|
28832
28852
|
displayName: "ListMenu__Container",
|
|
28833
28853
|
componentId: "sc-i9097t-0"
|
|
28834
|
-
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", "
|
|
28854
|
+
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
|
|
28835
28855
|
return props.y || 0;
|
|
28836
28856
|
}, function (props) {
|
|
28837
28857
|
return props.x || 0;
|
|
28838
|
-
},
|
|
28839
|
-
return props.fontSize;
|
|
28840
|
-
});
|
|
28858
|
+
}, uiFonts.size.xsmall);
|
|
28841
28859
|
var ListElement$1 = /*#__PURE__*/styled.li.withConfig({
|
|
28842
28860
|
displayName: "ListMenu__ListElement",
|
|
28843
28861
|
componentId: "sc-i9097t-1"
|
|
@@ -28884,7 +28902,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
28884
28902
|
var ProgressBarText = /*#__PURE__*/styled.span.withConfig({
|
|
28885
28903
|
displayName: "ProgressBar__ProgressBarText",
|
|
28886
28904
|
componentId: "sc-qa6fzh-0"
|
|
28887
|
-
})(["font-size:
|
|
28905
|
+
})(["font-size:", " !important;color:white;text-align:center;z-index:1;position:absolute;left:50%;transform:translateX(-50%);top:12px;"], uiFonts.size.small);
|
|
28888
28906
|
var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
28889
28907
|
displayName: "ProgressBar__TextOverlay",
|
|
28890
28908
|
componentId: "sc-qa6fzh-1"
|
|
@@ -29004,19 +29022,19 @@ var QuestSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
29004
29022
|
var QuestColumn = /*#__PURE__*/styled(Column).withConfig({
|
|
29005
29023
|
displayName: "QuestInfo__QuestColumn",
|
|
29006
29024
|
componentId: "sc-15s2boc-5"
|
|
29007
|
-
})(["
|
|
29025
|
+
})(["padding-top:5px;margin-bottom:20px;display:flex;justify-content:space-evenly;"]);
|
|
29008
29026
|
var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
29009
29027
|
displayName: "QuestInfo__TitleContainer",
|
|
29010
29028
|
componentId: "sc-15s2boc-6"
|
|
29011
|
-
})(["
|
|
29029
|
+
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
29012
29030
|
var Title$1 = /*#__PURE__*/styled.h1.withConfig({
|
|
29013
29031
|
displayName: "QuestInfo__Title",
|
|
29014
29032
|
componentId: "sc-15s2boc-7"
|
|
29015
|
-
})(["color:white;z-index:22;font-size:
|
|
29033
|
+
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
29016
29034
|
var Thumbnail = /*#__PURE__*/styled.img.withConfig({
|
|
29017
29035
|
displayName: "QuestInfo__Thumbnail",
|
|
29018
29036
|
componentId: "sc-15s2boc-8"
|
|
29019
|
-
})(["color:white;z-index:22;
|
|
29037
|
+
})(["color:white;z-index:22;width:32px * 1.5;margin-right:0.5rem;position:relative;top:-4px;"]);
|
|
29020
29038
|
|
|
29021
29039
|
var QuestList = function QuestList(_ref) {
|
|
29022
29040
|
var quests = _ref.quests,
|
|
@@ -29055,7 +29073,7 @@ var QuestDraggableContainer$1 = /*#__PURE__*/styled(DraggableContainer).withConf
|
|
|
29055
29073
|
var Title$2 = /*#__PURE__*/styled.h1.withConfig({
|
|
29056
29074
|
displayName: "QuestList__Title",
|
|
29057
29075
|
componentId: "sc-1a2vx6q-1"
|
|
29058
|
-
})(["z-index:22;font-size:
|
|
29076
|
+
})(["z-index:22;font-size:", " !important;color:yellow !important;"], uiFonts.size.medium);
|
|
29059
29077
|
var QuestListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29060
29078
|
displayName: "QuestList__QuestListContainer",
|
|
29061
29079
|
componentId: "sc-1a2vx6q-2"
|
|
@@ -29232,7 +29250,7 @@ var ProgressTitle = /*#__PURE__*/styled.div.withConfig({
|
|
|
29232
29250
|
|
|
29233
29251
|
var skillProps = {
|
|
29234
29252
|
attributes: {
|
|
29235
|
-
color:
|
|
29253
|
+
color: uiColors.purple,
|
|
29236
29254
|
values: {
|
|
29237
29255
|
stamina: 'spell-icons/regenerate.png',
|
|
29238
29256
|
magic: 'spell-icons/fireball.png',
|
|
@@ -29243,7 +29261,7 @@ var skillProps = {
|
|
|
29243
29261
|
}
|
|
29244
29262
|
},
|
|
29245
29263
|
combat: {
|
|
29246
|
-
color:
|
|
29264
|
+
color: uiColors.cardinal,
|
|
29247
29265
|
values: {
|
|
29248
29266
|
first: 'gloves/leather-gloves.png',
|
|
29249
29267
|
club: 'maces/club.png',
|
|
@@ -29255,7 +29273,7 @@ var skillProps = {
|
|
|
29255
29273
|
}
|
|
29256
29274
|
},
|
|
29257
29275
|
crafting: {
|
|
29258
|
-
color:
|
|
29276
|
+
color: uiColors.blue,
|
|
29259
29277
|
values: {
|
|
29260
29278
|
fishing: 'foods/fish.png',
|
|
29261
29279
|
mining: 'crafting-resources/iron-ingot.png',
|
|
@@ -29303,7 +29321,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
29303
29321
|
className: "golden"
|
|
29304
29322
|
}), React__default.createElement(SkillProgressBar, {
|
|
29305
29323
|
skillName: 'Level',
|
|
29306
|
-
bgColor:
|
|
29324
|
+
bgColor: uiColors.navyBlue,
|
|
29307
29325
|
level: Math.round(skill.level) || 0,
|
|
29308
29326
|
skillPoints: Math.round(skill.experience) || 0,
|
|
29309
29327
|
skillPointsToNextLevel: Math.round(skill.xpToNextLevel) || 0,
|
|
@@ -29395,7 +29413,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
29395
29413
|
var ItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29396
29414
|
displayName: "TradingItemRow__ItemWrapper",
|
|
29397
29415
|
componentId: "sc-mja0b5-0"
|
|
29398
|
-
})(["width:100%;margin:auto;display:flex;justify-content:space-between;margin-bottom:1rem;&:hover{background-color:", ";}padding:0.5rem;"],
|
|
29416
|
+
})(["width:100%;margin:auto;display:flex;justify-content:space-between;margin-bottom:1rem;&:hover{background-color:", ";}padding:0.5rem;"], uiColors.darkGray);
|
|
29399
29417
|
var ItemNameContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29400
29418
|
displayName: "TradingItemRow__ItemNameContainer",
|
|
29401
29419
|
componentId: "sc-mja0b5-1"
|
|
@@ -29415,7 +29433,7 @@ var NameValue = /*#__PURE__*/styled.div.withConfig({
|
|
|
29415
29433
|
var Item$1 = /*#__PURE__*/styled.span.withConfig({
|
|
29416
29434
|
displayName: "TradingItemRow__Item",
|
|
29417
29435
|
componentId: "sc-mja0b5-5"
|
|
29418
|
-
})(["
|
|
29436
|
+
})(["color:white;text-align:center;z-index:1;width:100%;"]);
|
|
29419
29437
|
var TextOverlay$2 = /*#__PURE__*/styled.div.withConfig({
|
|
29420
29438
|
displayName: "TradingItemRow__TextOverlay",
|
|
29421
29439
|
componentId: "sc-mja0b5-6"
|
|
@@ -29427,7 +29445,7 @@ var QuantityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
29427
29445
|
var QuantityDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
29428
29446
|
displayName: "TradingItemRow__QuantityDisplay",
|
|
29429
29447
|
componentId: "sc-mja0b5-8"
|
|
29430
|
-
})(["font-size:
|
|
29448
|
+
})(["font-size:", ";"], uiFonts.size.small);
|
|
29431
29449
|
|
|
29432
29450
|
var TradingMenu = function TradingMenu(_ref) {
|
|
29433
29451
|
var traderItems = _ref.traderItems,
|