Page 1 of 1

[MOTH Addon] How to make the tooltip static on the screen?

Posted: Mon Apr 10, 2023 10:29 pm
by Karrier
I like MOTH mouseover tooltip but I dont want it anchored to the cursor, I would like it fixed on the screen (like the default mouseover tooltip)

Does anyone know how to do it?


What I know so far:

On "MothProfiles.lua", line 34:

anchor = "cursor", -- | Moth Anchor Point -> String: cursor, or something else that's not "cursor", lol

If you change the word "cursor" to anything else, you can then move the "moth" window, using the layout editor ingame, but its position does not save if u re-start game, or if u do /reloadui
(see screenshots)

Image
Image


Any help is appreciated, thanks in advance :)

Re: [MOTH Addon] How to make the tooltip static on the screen?

Posted: Mon Apr 10, 2023 10:58 pm
by Omegus
This is untested, but try opening up Moth.xml and amending line 6 to:

Code: Select all

<Window name="Moth" handleinput="false" layer="default" savesettings="true">
That combined with changing the anchor to anything other than "cursor" as you mentioned in the OP should do the trick.

Re: [MOTH Addon] How to make the tooltip static on the screen?

Posted: Mon Apr 10, 2023 11:31 pm
by Karrier
Omegus wrote: Mon Apr 10, 2023 10:58 pm This is untested, but try opening up Moth.xml and amending line 6 to:

Code: Select all

<Window name="Moth" handleinput="false" layer="default" savesettings="true">
That combined with changing the anchor to anything other than "cursor" as you mentioned in the OP should do the trick.

oh thank you so much! it worked!

I was right now trying my luck with chatgpt AI (and failing a lot hehe) but your response was so fast :) thanks a lot

Re: [MOTH Addon] How to make the tooltip static on the screen?

Posted: Tue Apr 11, 2023 9:37 am
by Lilim
Omegus ChatGPT *noted*