Recent Topics

Ads

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

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
Karrier
Posts: 6

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

Post#1 » Mon Apr 10, 2023 10:29 pm

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 :)

Ads
User avatar
Omegus
Posts: 1398

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

Post#2 » 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.
Zomega: RR8x Zealot

Karrier
Posts: 6

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

Post#3 » Mon Apr 10, 2023 11:31 pm

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

User avatar
Lilim
Posts: 1322

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

Post#4 » Tue Apr 11, 2023 9:37 am

Omegus ChatGPT *noted*

Who is online

Users browsing this forum: No registered users and 1 guest