From 2e9f5ece775d5cd4af2e7b048c9abdc70e278a1c Mon Sep 17 00:00:00 2001 From: Matt Wagner Date: Wed, 9 Dec 2020 08:35:39 -0800 Subject: [PATCH] Add missing spacetick trigger, immnet trigger, fix wimpy bar --- mfile | 2 +- src/scripts/info-panel/info-panel.lua | 2 +- src/triggers/chat/triggers.json | 4 ++++ src/triggers/info-panel/triggers.json | 4 ++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mfile b/mfile index c56d3c3..76e523e 100644 --- a/mfile +++ b/mfile @@ -1,4 +1,4 @@ { "package": "lotj-ui", - "version": "1.0" + "version": "1.1" } \ No newline at end of file diff --git a/src/scripts/info-panel/info-panel.lua b/src/scripts/info-panel/info-panel.lua index 977cbe8..41092cf 100644 --- a/src/scripts/info-panel/info-panel.lua +++ b/src/scripts/info-panel/info-panel.lua @@ -83,7 +83,7 @@ function lotj.infoPanel.createBasicStats(container) local wimpyBar = Geyser.Label:new({ x=0, y=0, width=2, height="100%", - }, healthGauge.front) + }, healthGauge.back) wimpyBar:setStyleSheet([[ background-color: yellow; ]]) diff --git a/src/triggers/chat/triggers.json b/src/triggers/chat/triggers.json index a265a31..c8a6281 100644 --- a/src/triggers/chat/triggers.json +++ b/src/triggers/chat/triggers.json @@ -55,6 +55,10 @@ { "pattern": "^\\( IMM \\| CHAT \\)\\[.*\\]: '.*'$", "type": "regex" + }, + { + "pattern": "^ImmNet\\[.*\\]: .*$", + "type": "regex" } ], "script": "lotj.chat.routeMessage(\"imm\")" diff --git a/src/triggers/info-panel/triggers.json b/src/triggers/info-panel/triggers.json index 5efdb32..22bc9ef 100644 --- a/src/triggers/info-panel/triggers.json +++ b/src/triggers/info-panel/triggers.json @@ -9,6 +9,10 @@ { "pattern": "^Speed: [0-9]+ Fuel Level: [0-9]+% Coords: [-0-9]+ [-0-9]+ [-0-9]+$", "type": "regex" + }, + { + "pattern": "^Target: .* [-0-9]+ [-0-9]+ [-0-9]+ \\(Prox: [0-9]+\\)", + "type": "regex" } ], "script": "lotj.infoPanel.markSpaceTick()"