@rpg-engine/long-bow 0.3.55 → 0.3.58
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/CircularController/CircularController.d.ts +1 -1
- package/dist/components/QuestInfo/QuestInfo.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +4 -4
- 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 +4 -4
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CircularController/CircularController.tsx +3 -3
- package/src/components/QuestInfo/QuestInfo.tsx +3 -3
- package/src/stories/CircullarController.stories.tsx +1 -1
- package/src/stories/QuestInfo.stories.tsx +3 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRawSpell } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare type CircularControllerProps = {
|
|
4
|
-
|
|
4
|
+
onActionClick: () => void;
|
|
5
5
|
onCancelClick: () => void;
|
|
6
6
|
onSpellClick: (spellKey: string) => void;
|
|
7
7
|
mana: number;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
export interface IQuestsButtonProps {
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
title: string;
|
|
6
|
-
|
|
6
|
+
onClick: (questId: string, npcId: string) => void;
|
|
7
7
|
}
|
|
8
8
|
export interface IQuestInfoProps {
|
|
9
9
|
onClose?: () => void;
|
|
@@ -33105,7 +33105,7 @@ var List = /*#__PURE__*/styled.p.withConfig({
|
|
|
33105
33105
|
})(["width:100%;display:flex;align-items:center;justify-content:center;gap:0.5rem;box-sizing:border-box;margin:0 !important;"]);
|
|
33106
33106
|
|
|
33107
33107
|
var CircularController = function CircularController(_ref) {
|
|
33108
|
-
var
|
|
33108
|
+
var onActionClick = _ref.onActionClick,
|
|
33109
33109
|
onCancelClick = _ref.onCancelClick,
|
|
33110
33110
|
onSpellClick = _ref.onSpellClick,
|
|
33111
33111
|
mana = _ref.mana,
|
|
@@ -33142,7 +33142,7 @@ var CircularController = function CircularController(_ref) {
|
|
|
33142
33142
|
})));
|
|
33143
33143
|
})), React__default.createElement(Button$2, {
|
|
33144
33144
|
onTouchStart: onTouchStart,
|
|
33145
|
-
onTouchEnd: onTouchEnd.bind(null,
|
|
33145
|
+
onTouchEnd: onTouchEnd.bind(null, onActionClick)
|
|
33146
33146
|
}, React__default.createElement("div", {
|
|
33147
33147
|
className: "rpgui-icon sword"
|
|
33148
33148
|
})), React__default.createElement(CancelButton, {
|
|
@@ -35189,7 +35189,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
35189
35189
|
return React__default.createElement(Button, {
|
|
35190
35190
|
key: index,
|
|
35191
35191
|
onPointerDown: function onPointerDown() {
|
|
35192
|
-
return button.
|
|
35192
|
+
return button.onClick(quests[currentIndex]._id, quests[currentIndex].npcId);
|
|
35193
35193
|
},
|
|
35194
35194
|
disabled: button.disabled,
|
|
35195
35195
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
@@ -35208,7 +35208,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
35208
35208
|
return React__default.createElement(Button, {
|
|
35209
35209
|
key: index,
|
|
35210
35210
|
onPointerDown: function onPointerDown() {
|
|
35211
|
-
return button.
|
|
35211
|
+
return button.onClick(quests[0]._id, quests[0].npcId);
|
|
35212
35212
|
},
|
|
35213
35213
|
disabled: button.disabled,
|
|
35214
35214
|
buttonType: exports.ButtonTypes.RPGUIButton,
|