Skip to content

Commit

Permalink
Fix auto particle locating results in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
xDroni committed May 5, 2024
1 parent 428ad78 commit 4b2f7fe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lol-particle-tools",
"description": "Utility tool for League of Legends Creators that helps managing particles. (includes Particle Locator)",
"version": "2.0.1",
"version": "2.0.2",
"author": "Karol Rudnikowski (dxdroni)",
"private": true,
"homepage": "./",
Expand Down
2 changes: 1 addition & 1 deletion public/autoParticleLocator/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function drawRectangle() {
let mouseDown = false;

async function sendImageSrc() {
await new Promise((resolve) => setTimeout(resolve, 58));
await new Promise((resolve) => setTimeout(resolve, 75));
const cropImageSrc = await refreshScreen();
await window.electronAPI.sendImageSrcResponse(cropImageSrc);
}
Expand Down
18 changes: 16 additions & 2 deletions src/ModalContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ export default function ModalContainer({ handleModal }) {
<button onClick={handleModal}>Close</button>
{/* icon */}
</div>
<div className="mb-3 flex justify-between">
<p className="text-md italic">
If replay is not detected, try installing{' '}
<a
className="text-blue-400 underline"
target="_blank"
rel="noreferrer"
href="https://github.com/RiotGames/leaguedirector"
>
League Director
</a>{' '}
and make sure it works there first.
</p>
</div>
<h4 className="text-xl font-bold">Particle Locator</h4>
<h5 className="mt-2 text-lg text-teal-400">Auto mode</h5>
<div className="ml-1.5">
Expand Down Expand Up @@ -43,7 +57,7 @@ export default function ModalContainer({ handleModal }) {
className="text-blue-400 underline"
target="_blank"
rel="noreferrer"
href="https://github.com/xDroni/LoL-Particle-Tools/blob/autoLocating/demo/settings/shadow-quality.png?raw=true"
href="https://github.com/xDroni/LoL-Particle-Tools/blob/main/demo/settings/shadow-quality.png?raw=true"
>
screenshot
</a>
Expand All @@ -70,7 +84,7 @@ export default function ModalContainer({ handleModal }) {
https://youtu.be/FvQJKjt-hYk
</a>
</p>
<ul className="ml-8 list-decimal list-disc">
<ul className="ml-8 list-disc">
<li>
Same as auto mode, except that you have to manually select whether a particle has
changed its state (appeared / disappeared)
Expand Down

0 comments on commit 4b2f7fe

Please sign in to comment.