Commit Graph

10 Commits

Author SHA1 Message Date
Anna 5935df195d
refactor: clean up old code 2020-12-29 11:08:21 -05:00
Anna a90eab013e
feat: add option to open examine window 2020-08-26 08:20:01 -04:00
Anna 4a3ed54f5d
refactor: use new Dalamud login hooks 2020-08-15 17:11:06 -04:00
Anna 7945690c7a
fix: distinguish between closed and hidden 2020-08-09 00:05:11 -04:00
Anna c3dfe31b9e
feat: use a thread to scan for targeters
Also make the poll interval configurable.

For the case of one targeter, the UI scans through the ActorTable to
find the relevant Actor, achieving either a partial or full scan. In
the case of more than one targeter, the UI constructs a Dictionary
mapping ActorId to Actor, then indexes that dictionary for each
targeter. This achieves one full scan, which may or may not be more
efficient than multiple partial scans, depending on where the actors
are located in the table.

The UI must do this because current targeters are no longer guaranteed
to be spawned anymore, especially with a high polling frequency, and
the UI needs accurate information about the targeters' address in
memory.
2020-08-08 16:59:06 -04:00
Anna ee2bbb0ec7
refactor: make other classes access plugin class 2020-08-08 06:11:52 -04:00
Anna 11032ada01
feat: add options for behaviour when closed 2020-08-08 06:05:23 -04:00
Anna 02dd910d86
refactor: pull targeting code out of ui
This has some consequences. First, LocalPlayer is no longer necessary
for rendering the UI, meaning the UI stays open even during loading
screens and other situations where there is no player.

Secondly, the sound effect will play even when the window is closed.

Thirdly, the history will update even when the window is closed.

The last two points will become config options in future.

I would also like to make TargetWatcher run in a task and run perhaps
every 100ms instead of every framework update.
2020-08-08 05:20:48 -04:00
Anna 978711be3e
feat: add option to open window on login 2020-08-07 19:37:01 -04:00
Anna d2a502eef9
chore: initial commit 2020-07-28 18:46:16 -04:00