Jump to content
Cruzix

Looking for help to make KTM hide when solo/PvP

Recommended Posts

Try this. I haven't fully tested it, but it does hide it when I log in. However, I've not been in a party the while I've been testing, so perhaps it's hiding because it always will and the checks are broken. But give it a try and let me know.

Currently, there is no option to disable it (might add commands later if I'm bored). If you want to show it temporarily, you can do /klhtm g s to show it until your party or raid roster is updated (i.e. someone enters or leaves). If you want to disable it, you'd have to remove the code between lines 1033-1037, inclusive, in KTM_Frame.xml and relog (or just reinstall an unmodified version.)

Edited by Markk
Fixed command to show GUI

Share this post


Link to post
Share on other sites
1 hour ago, Markk said:

Try this. I haven't fully tested it, but it does hide it when I log in. However, I've not been in a party the while I've been testing, so perhaps it's hiding because it always will and the checks are broken. But give it a try and let me know.

Currently, there is no option to disable it (might add commands later if I'm bored). If you want to show it temporarily, you can do /klhtm g s to show it until your party or raid roster is updated (i.e. someone enters or leaves). If you want to disable it, you'd have to remove the code between lines 1033-1037, inclusive, in KTM_Frame.xml and relog (or just reinstall an unmodified version.)

It looks like it works perfectly, I'll report back if I find an issue with it! ;)

Thanks!

Share this post


Link to post
Share on other sites

@Markk Btw is the code you added to KTM_Frame.xml line 1033-1037 the only code you've added?
I'm asking because I had some custom made visuals on my own KTM that I made a long time ago and can't remember all the code for it, so I'd have to copy your code over to my KTM.

Share this post


Link to post
Share on other sites

I also added the RegisterEvents in KTM_Frame.xml lines 1019-1021 and the functions in KTM_Core.lua at lines 179-207 (the last function at lines 209-215, KTM_OnEvent, doesn't do anything and can safely be removed if you wish).

Share this post


Link to post
Share on other sites
1 hour ago, Markk said:

I also added the RegisterEvents in KTM_Frame.xml lines 1019-1021 and the functions in KTM_Core.lua at lines 179-207 (the last function at lines 209-215, KTM_OnEvent, doesn't do anything and can safely be removed if you wish).

Thanks! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×