@rpg-engine/long-bow 0.4.93 → 0.4.95

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.
@@ -12972,7 +12972,7 @@ var CircularController = function CircularController(_ref) {
12972
12972
  })));
12973
12973
  };
12974
12974
  return React.createElement(ButtonsContainer, null, React.createElement(ShortcutsContainer, null, Array.from({
12975
- length: 6
12975
+ length: 12
12976
12976
  }).map(function (_, i) {
12977
12977
  return renderShortcut(i);
12978
12978
  })), React.createElement(Button$2, {
@@ -12988,19 +12988,19 @@ var CircularController = function CircularController(_ref) {
12988
12988
  var Button$2 = /*#__PURE__*/styled.button.withConfig({
12989
12989
  displayName: "CircularController__Button",
12990
12990
  componentId: "sc-1fewf3h-0"
12991
- })(["width:4.3rem;height:4.3rem;background-color:", ";border:2px solid ", ";border-radius:50%;text-transform:uppercase;font-size:0.7rem;font-weight:bold;display:flex;align-items:center;justify-content:center;position:relative;transition:all 0.1s;margin-top:-3rem;&.active{background-color:", ";border-color:", ";}.sword{transform:rotate(-45deg);height:2.5rem;width:1.9rem;pointer-events:none;}"], uiColors.lightGray, uiColors.darkGray, uiColors.gray, uiColors.yellow);
12991
+ })(["width:4.3rem;height:4.3rem;background-color:", ";border:2px solid ", ";border-radius:50%;text-transform:uppercase;font-size:0.7rem;font-weight:bold;display:flex;align-items:center;justify-content:center;position:relative;transition:all 0.1s;margin-top:-3rem;top:-144px;&.active{background-color:", ";border-color:", ";}.sword{transform:rotate(-45deg);height:2.5rem;width:1.9rem;pointer-events:none;}"], uiColors.lightGray, uiColors.darkGray, uiColors.gray, uiColors.yellow);
12992
12992
  var CancelButton = /*#__PURE__*/styled(Button$2).withConfig({
12993
12993
  displayName: "CircularController__CancelButton",
12994
12994
  componentId: "sc-1fewf3h-1"
12995
- })(["width:3rem;height:3rem;font-size:0.8rem;span{margin-top:4px;margin-left:2px;pointer-events:none;}"]);
12995
+ })(["width:3rem;height:3rem;font-size:0.8rem;position:relative;left:2.6rem;span{margin-top:4px;margin-left:2px;pointer-events:none;}"]);
12996
12996
  var ButtonsContainer = /*#__PURE__*/styled.div.withConfig({
12997
12997
  displayName: "CircularController__ButtonsContainer",
12998
12998
  componentId: "sc-1fewf3h-2"
12999
- })(["display:flex;align-items:center;justify-content:center;gap:0.5rem;"]);
12999
+ })(["display:flex;align-items:center;justify-content:center;gap:0.5rem;scale:0.9;"]);
13000
13000
  var ShortcutsContainer = /*#__PURE__*/styled.div.withConfig({
13001
13001
  displayName: "CircularController__ShortcutsContainer",
13002
13002
  componentId: "sc-1fewf3h-3"
13003
- })(["display:flex;align-items:center;justify-content:center;gap:0.5rem;flex-direction:column;margin-top:3rem;.top{transform:translate(93%,25%);}.bottom-0{transform:translate(93%,-25%);}.bottom-1{transform:translate(-120%,calc(-5.5rem));}.bottom-2{transform:translate(-30%,calc(-5.5rem - 25%));}"]);
13003
+ })(["display:flex;align-items:center;justify-content:center;gap:0.5rem;flex-direction:column;margin-top:3rem;.top{transform:translate(93%,25%);}.bottom-0{transform:translate(93%,-25%);}.bottom-1{transform:translate(320%,calc(-4.5rem));}.bottom-2{transform:translate(-13.5%,calc(-5.6rem - 25%));}.bottom-3{transform:translate(318%,calc(-15.8rem - 25%));}.bottom-4{transform:translate(-15%,calc(-20.2rem - 25%));}.bottom-5{transform:translate(210%,calc(-15rem - 25%));}.bottom-6{transform:translate(210%,calc(-25.7rem - 25%));}.bottom-7{transform:translate(304%,calc(-24.9rem - 25%));}.bottom-8{transform:translate(-101%,calc(-27.7rem - 25%));}"]);
13004
13004
  var StyledShortcut = /*#__PURE__*/styled(SingleShortcut).withConfig({
13005
13005
  displayName: "CircularController__StyledShortcut",
13006
13006
  componentId: "sc-1fewf3h-4"
@@ -13127,7 +13127,7 @@ var Container$6 = /*#__PURE__*/styled.div.withConfig({
13127
13127
  var CloseButton$1 = /*#__PURE__*/styled.div.withConfig({
13128
13128
  displayName: "DraggableContainer__CloseButton",
13129
13129
  componentId: "sc-184mpyl-1"
13130
- })(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.1rem;@media (max-width:950px){font-size:1.7rem;padding:12px;}"]);
13130
+ })(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;@media (max-width:950px){font-size:1.7rem;padding:12px;}"]);
13131
13131
  var TitleContainer = /*#__PURE__*/styled.div.withConfig({
13132
13132
  displayName: "DraggableContainer__TitleContainer",
13133
13133
  componentId: "sc-184mpyl-2"
@@ -15372,9 +15372,9 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
15372
15372
  }, atlasJSON),
15373
15373
  width: 32,
15374
15374
  height: 32,
15375
- imgScale: 1.6,
15375
+ imgScale: 1.2,
15376
15376
  imgStyle: {
15377
- left: '5px'
15377
+ left: '3px'
15378
15378
  }
15379
15379
  });
15380
15380
  }
@@ -15386,7 +15386,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
15386
15386
  return React.createElement(Container$i, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
15387
15387
  id: "shortcuts_list"
15388
15388
  }, Array.from({
15389
- length: 6
15389
+ length: 12
15390
15390
  }).map(function (_, i) {
15391
15391
  return React.createElement(Shortcut, {
15392
15392
  key: i,
@@ -15404,18 +15404,18 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
15404
15404
  var Container$i = /*#__PURE__*/styled.div.withConfig({
15405
15405
  displayName: "ShortcutsSetter__Container",
15406
15406
  componentId: "sc-xuouuf-0"
15407
- })(["p{margin:0;margin-left:0.5rem;}"]);
15407
+ })(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
15408
15408
  var Shortcut = /*#__PURE__*/styled.button.withConfig({
15409
15409
  displayName: "ShortcutsSetter__Shortcut",
15410
15410
  componentId: "sc-xuouuf-1"
15411
- })(["width:2.6rem;height:2.6rem;background-color:", ";border:2px solid ", ";border-radius:50%;text-transform:uppercase;font-size:0.7rem;font-weight:bold;display:flex;align-items:center;justify-content:center;span{margin-top:4px;}&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}&:disabled{opacity:0.5;}"], uiColors.lightGray, function (_ref2) {
15411
+ })(["width:2.4rem;height:2.4rem;background-color:", ";border:2px solid ", ";border-radius:50%;text-transform:uppercase;font-size:0.7rem;font-weight:bold;display:flex;align-items:center;justify-content:center;span{margin-top:4px;}&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}&:disabled{opacity:0.5;}"], uiColors.lightGray, function (_ref2) {
15412
15412
  var isBeingSet = _ref2.isBeingSet;
15413
15413
  return isBeingSet ? uiColors.yellow : uiColors.darkGray;
15414
15414
  }, uiColors.darkGray, uiColors.gray);
15415
15415
  var List = /*#__PURE__*/styled.div.withConfig({
15416
15416
  displayName: "ShortcutsSetter__List",
15417
15417
  componentId: "sc-xuouuf-2"
15418
- })(["width:100%;display:flex;align-items:center;gap:0.5rem;padding-bottom:0.5rem;padding-left:0.5rem;box-sizing:border-box;margin:0 !important;"]);
15418
+ })(["width:100%;display:flex;align-items:center;gap:0.4rem;box-sizing:border-box;margin:0 !important;flex-wrap:wrap;padding:0.3rem;padding-bottom:1rem;"]);
15419
15419
 
15420
15420
  var ItemContainer$1 = function ItemContainer(_ref) {
15421
15421
  var itemContainer = _ref.itemContainer,
@@ -16864,7 +16864,7 @@ var Shortcuts = function Shortcuts(_ref) {
16864
16864
  var handleKeyDown = function handleKeyDown(e) {
16865
16865
  if (isBlockedCastingByKeyboard) return;
16866
16866
  var shortcutIndex = Number(e.key) - 1;
16867
- if (shortcutIndex >= 0 && shortcutIndex <= 5) {
16867
+ if (shortcutIndex >= 0 && shortcutIndex <= 11) {
16868
16868
  var _shortcutsRefs$curren;
16869
16869
  handleShortcutCast(shortcutIndex);
16870
16870
  (_shortcutsRefs$curren = shortcutsRefs.current[shortcutIndex]) == null ? void 0 : _shortcutsRefs$curren.classList.add('active');
@@ -16880,7 +16880,7 @@ var Shortcuts = function Shortcuts(_ref) {
16880
16880
  };
16881
16881
  }, [shortcuts, isBlockedCastingByKeyboard, shortcutCooldown]);
16882
16882
  return React.createElement(List$1, null, Array.from({
16883
- length: 6
16883
+ length: 12
16884
16884
  }).map(function (_, i) {
16885
16885
  var _shortcuts$i, _shortcuts$i3, _spellCooldowns$paylo, _payload$manaCost;
16886
16886
  var buildClassName = function buildClassName(classBase, isOnCooldown) {
@@ -16958,7 +16958,7 @@ var StyledShortcut$1 = /*#__PURE__*/styled(SingleShortcut).withConfig({
16958
16958
  var List$1 = /*#__PURE__*/styled.p.withConfig({
16959
16959
  displayName: "Shortcuts__List",
16960
16960
  componentId: "sc-kgtsi7-1"
16961
- })(["width:100%;display:flex;align-items:center;justify-content:center;gap:0.5rem;box-sizing:border-box;margin:0 !important;"]);
16961
+ })(["width:100%;display:flex;align-items:center;justify-content:center;gap:0.5rem;box-sizing:border-box;margin:0 !important;scale:0.9;"]);
16962
16962
 
16963
16963
  var SimpleProgressBar = function SimpleProgressBar(_ref) {
16964
16964
  var value = _ref.value,