WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Turn on Personal Resource Display via Script? (https://www.wowinterface.com/forums/showthread.php?t=55960)

Wolryr 01-09-18 05:05 PM

Turn on Personal Resource Display via Script?
 
Hello.

I was wondering about a way to turn on/off the Personal Resource Display via Scrip or something? To turn that into a macro or an AddOn...

I'm talking about



Been trying to get a scripted way to turn that on and back off w/o having to literally click in there. It'll fix another big issue I'm having with nameplates.

It's all about the standard Blizzard UI, not using another AddOns or anything. I just want to run a script or something that turns on/off that option at least 10 or 15 times and then leave it turned off, but without manually having to click on that 10 or 15 times every time I login or /reload. Doing so, I'll be able to fix a really annoying situacion with Nameplates in WoW (the default ones, no AddOns or anything). My issue in particular gets fixed by clicking the box to turn on and off the Personal Resource Display around 15 times in a row, but all is lost upon login off or reloading the UI. So I'm aiming for a way to automate that process.

Sorry if I'm not being clear enough. It's a really weird thing to ask, I know.

Thank you for your thoughts.

EDIT: Trying with: /run SetCVar("nameplatePersonalShowAlways", 1), or '0', doesn't seem to do anything.

----------------

Fizzlemizz 01-09-18 05:32 PM

/run SetCVar("nameplateShowSelf", 1)

Ammako 01-09-18 05:33 PM

For what it's worth, SetCVar cannot be called in combat from non-secure code.

Edit: Actually it looks like it's not all CVars, but I know some Nameplate CVars were protected, so you'd have to see if it also affects that particular CVar.

Wolryr 01-09-18 05:47 PM

Thanks,

Yes, just tried and said CVar cannot be called in combat, will only work if I am not.

Sadly, it won't be doing much to fix my nameplate situation, but thanks for your help though. Seems I have to literally click that option repeatedly from the Interface panel for it to work.

Thanks again.

Wolryr 01-09-18 05:57 PM

This is what I mean, actually: https://youtu.be/KLfypp8Lt24

Clicking that box repeatedly will have an effect on the nameplates as seen, so they will "reset" themselves or something.

That's the behavior I'm trying to recreate without the need of a literal click.

Maybe is there another way to do that?

Sorry.

PD.: That's a great place to test that nameplate glitch, btw in Azsuna.

Fizzlemizz 01-09-18 05:59 PM

You could move/re-parent the check box to UIParent (also adjusting any other options widgets that use this as an anchor to use something else).

Very naff but how desperate are you?

Wolryr 01-09-18 06:09 PM

Quote:

Originally Posted by Fizzlemizz (Post 326413)
You could move/re-parent the check box to UIParent (also adjusting any other options widgets that use this as an anchor to use something else).

Very naff but how desperate are you?

Very. VERY desperate. Ammako sort of knows the struggle since this post I made some time ago about this crap I've been experiencing for almost half a year: https://www.youtube.com/watch?v=zAeheTpqats

So, messing like that with the Personal Resource Display kinda "solved" the issue as long as I don't log off, or reload or get into a loading screen, etc.

Anyway, it's been a pain.

Ussing no AddOns whatsoever, btw. And my LUA/coding knowledge is terrible; that's why I always end up here. I'll google about the check box "re-parenting" thing for sure.


All times are GMT -6. The time now is 05:38 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI