AshitaXI / Ashita

Issue tracker and wiki for the Ashita project.
https://ashitaxi.com/
7 stars 1 forks source link

[BUG] PetInfo Addon, window will not stay in one spot #60

Open SerAM90 opened 6 months ago

SerAM90 commented 6 months ago

Ashita Version (Type /ashita in-game to get this.) Ashita v4.2.0.3

FFXI Version (Type /version in-game to get this.) HorizonXI v9 (update 9)

Windows Version (ie. Start > About Your PC) 64-bit operating system, x64-based processor

Describe The Bug For petinfo addon, when you move the petinfo window it does not stay in one place after logging out and logging back in. I have the same issue on both PC, and on Steamdeck.

Steps To Reproduce Load petinfo addon, log in to the game , move the window; if you log out and back in the window will not be in the spot that you moved it to but instead will move back to the original position.

Screenshots If applicable, add screenshots to help explain your problem.

Additional Information around line 124 in the petinfo.lua, with the if (imgui.Begin... etc), there is a setting 'ImGuiWindowFlags,NoSavedSettings' if you remove this line I believe this will resolve the issue.

HealsCodes commented 6 months ago

Not a bug, that's intended behaviour.

Petinfo explicitly sets the ImGuiWindowFlags_NoSavedSettings flag to prevent positions being saved.