Commit Graph

10 Commits

Author SHA1 Message Date
Anna ebd81da4b5
fix: update offsets for 5.4 2020-12-08 23:12:23 -05:00
Zacharie Day 65e649b8a8
feat: improve interactions with active HUD layout
Trying to preview different saved was more difficult than it
needed to be since after importing a layout, the user needed to
swap to another layout and then back to the original one in order
to see the changes. I changed this so that if a user imports a
layout to the currently active HUD slot, the plugin automatically
swaps to another HUD slot and back.

As a part of this also refined the general slot UI so that the
active slot is indicated in the slot selection UI for saving a
layout to game data.
2020-09-28 19:13:28 -04:00
Anna 03b0e232e3
chore: remove unused import 2020-08-13 06:59:55 -04:00
Anna 40a40a0964
feat: add window position handling
Also add /phud for swapping between saved layouts.

Currently only the map and chat box have saved positions, although the
implementation supports additional windows. There is a checkbox when
importing to turn on or off window position saving.
2020-08-03 22:13:29 -04:00
Anna ec06557c27
refactor: fix warnings and code smells 2020-07-31 13:58:56 -04:00
Anna f5a79ae081
feat: add clipboard export/import 2020-07-31 13:29:40 -04:00
Anna 1babe5147c
fix: back up the hotswap slot
The game checks if the slot being switched to is already selected and
does nothing if so. (For what it's worth, I did try changing the code
in memory to ignore these checks, but it didn't seem to work.) In
order to get the game to change slot, we write a different slot number
to the "current" slot in memory and then ask the game to change slot.

This doesn't swap the slot on screen and still works, which is
ideal. However, the game seems to overwrite the slot that is marked as
current when we do this. To remedy this issue, back up the slot before
telling the game to swap, then restore the slot afterwards.
2020-07-30 13:21:08 -04:00
Anna 11c9d92f4e
feat: infinite layout slots
Add a system to save layout slots and restore them, effectively
increasing the number of slots to an infinite amount.

Also add crafting and gathering layout swaps and make the UI more
reasonable.

Refactor out the combo boxes.
2020-07-29 21:01:22 -04:00
Anna 3f229724bc
refactor: remove unused imports 2020-07-29 12:30:14 -04:00
Anna de0168e5d0
chore: initial commit 2020-07-29 12:01:00 -04:00