aram-mayhem-dsh 0.4.1 → 0.4.2
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/package.json +1 -1
- package/scripts/desktop_overlay.py +18 -5
- package/scripts/dsh_service.py +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aram-mayhem-dsh",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ARAM: Mayhem companion for DSH: an on-demand local service, screen-top desktop icon, sidebar page with LCU state, champion/augment statistics, builds and screen OCR, with nine agent tools.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -636,7 +636,7 @@ class FloatingOverlay(QWidget):
|
|
|
636
636
|
self._hide_timer.stop()
|
|
637
637
|
self._peeked = True
|
|
638
638
|
self._snap_icon(peek=True, animate=False)
|
|
639
|
-
self.setWindowOpacity(0.
|
|
639
|
+
self.setWindowOpacity(0.62)
|
|
640
640
|
self._raise_topmost()
|
|
641
641
|
|
|
642
642
|
def _edge_x(self, peek: bool) -> int:
|
|
@@ -645,8 +645,8 @@ class FloatingOverlay(QWidget):
|
|
|
645
645
|
return self.x()
|
|
646
646
|
area = screen.availableGeometry()
|
|
647
647
|
if peek:
|
|
648
|
-
ratio = 0.
|
|
649
|
-
visible = max(
|
|
648
|
+
ratio = 0.30
|
|
649
|
+
visible = max(24, round(self.width() * (1.0 - ratio)))
|
|
650
650
|
return area.right() - visible
|
|
651
651
|
return area.right() - self.width() + 1
|
|
652
652
|
|
|
@@ -667,7 +667,7 @@ class FloatingOverlay(QWidget):
|
|
|
667
667
|
self._peeked = peek
|
|
668
668
|
if not animate or not self.isVisible():
|
|
669
669
|
self.move(target)
|
|
670
|
-
self.setWindowOpacity(0.
|
|
670
|
+
self.setWindowOpacity(0.62 if peek else 1.0)
|
|
671
671
|
return
|
|
672
672
|
if self._icon_animation is not None:
|
|
673
673
|
self._icon_animation.stop()
|
|
@@ -680,7 +680,7 @@ class FloatingOverlay(QWidget):
|
|
|
680
680
|
fade = QPropertyAnimation(self, b"windowOpacity", group)
|
|
681
681
|
fade.setDuration(180)
|
|
682
682
|
fade.setStartValue(float(self.windowOpacity()))
|
|
683
|
-
fade.setEndValue(0.
|
|
683
|
+
fade.setEndValue(0.62 if peek else 1.0)
|
|
684
684
|
fade.setEasingCurve(QEasingCurve.Type.OutCubic)
|
|
685
685
|
group.addAnimation(move)
|
|
686
686
|
group.addAnimation(fade)
|
|
@@ -699,6 +699,17 @@ class FloatingOverlay(QWidget):
|
|
|
699
699
|
return
|
|
700
700
|
self._snap_icon(peek=True, animate=True)
|
|
701
701
|
|
|
702
|
+
def _startup_peek(self) -> None:
|
|
703
|
+
"""Show the icon fully for a moment when it first launches."""
|
|
704
|
+
if self.expanded:
|
|
705
|
+
return
|
|
706
|
+
self._snap_icon(peek=False, animate=True)
|
|
707
|
+
QTimer.singleShot(1800, self._startup_settle)
|
|
708
|
+
|
|
709
|
+
def _startup_settle(self) -> None:
|
|
710
|
+
if not self.expanded and not self.underMouse():
|
|
711
|
+
self._snap_icon(peek=True, animate=True)
|
|
712
|
+
|
|
702
713
|
def enterEvent(self, event):
|
|
703
714
|
self._hide_timer.stop()
|
|
704
715
|
if not self.expanded:
|
|
@@ -1393,6 +1404,8 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
1393
1404
|
persist_pref=bool(args.pid_file),
|
|
1394
1405
|
)
|
|
1395
1406
|
overlay.show()
|
|
1407
|
+
if not args.expanded:
|
|
1408
|
+
QTimer.singleShot(300, overlay._startup_peek)
|
|
1396
1409
|
if args.tab != "champ":
|
|
1397
1410
|
QTimer.singleShot(300, lambda: overlay._select_tab(args.tab))
|
|
1398
1411
|
if args.screenshot:
|
package/scripts/dsh_service.py
CHANGED
|
@@ -65,7 +65,7 @@ from src.lcu.listener import parse_champ_select, parse_queue_info
|
|
|
65
65
|
log = logging.getLogger("aram-dsh-service")
|
|
66
66
|
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
67
67
|
|
|
68
|
-
VERSION = "0.4.
|
|
68
|
+
VERSION = "0.4.2"
|
|
69
69
|
IN_GAME_PHASES = {"InProgress", "Reconnect"}
|
|
70
70
|
|
|
71
71
|
|