04/05/15, 09:40 PM | #1 | ||
Join Date: Apr 2015
Posts: 2
|
Move PC 'F' Hold to Interact [SOLVED]
So, I tried a few searches looking for an addon that moves the 'F' Hold to Interact pop-up when you approach a player character. Found nothing (weird). I did find this thread: http://www.esoui.com/forums/showthread.php?p=7956
Rather than bumping a near 1 year old thread, this sub-forum seemed more appropriate. If not, please help me redirect. But, I really want this functionality for the same reason as the OP in that thread. I really Like FTCs Player and Target frames, And I really like having them right at the bottom and center next to each other just above the action bar. Problem is, the damn vanilla 'F' Hold to Interact' prompt with a players name is in that exact spot. I would love if it was moved to where the NPC version is (I have no idea why it's not by default... but I digress) Rather than request someone else make the addon I want, I though I would man up and try making it myself. Anyways, just tried doing a crash course in addon creation, and boy did I fail. I successfully made an addon that ESO recognizes and is up to date, but it doesn't do what I want. Here are my files. I am a noob when it comes to coding, so I am 100% sure I screwed it up somewhere (probably obvious to veterans). Browsing the API list in the Wiki got me nowhere, as I don't really even know what I'm looking for. Addon Folder Name: MoveHoldToInteractPlayer MoveHoldToInteractPlayer.txt
(Edit: and now it appears as though Forum posts don't recognize tabs from my code, trying to fix now. GOT IT! lua wrap function right in my face. Files are still attached anyways) Attempt 1: Lua Code:
Attempt 2: Lua Code:
Thanks in advance for your help. And if this is the wrong sub-forum. My apologies. Brand new to this game and loving it so far! -CrazyJay Last edited by CrazyJay : 04/05/15 at 10:29 PM. |
||
04/05/15, 10:28 PM | #2 | |
Join Date: Apr 2015
Posts: 2
|
I did it!
And the winner is: I'm an idiot. Just some error with cut/pasting from the code available in the thread I linked. Anyways, if anyone wants the final product here it is: Lua Code:
See attached SS for results. It's pretty damn close to the NPC version in location now. Now, if I can just figure out how to make it editable in game, I'll have a real winner and maybe I'll post the addon for others that may want it! (I'll take any pointers if you want to take a moment to share) |
|
04/05/15, 11:49 PM | #3 |
|
Heres an editable version. I tried to do what you asked, but keep it as simple as possible (no saved variables). So when you relog it will go back to the default position, but you can move it around the screen with the slash command:
Lua Code:
There is also a command to reset it back to the default position (default position we set, not the games default position). Lua Code:
I also changed the anchor point to the center of the screen. I thought that would be easier to guess what offset values you want, positive values move it right for offsetX (or down for offsetY), negative values move it left for offsetX (or up for offsetY). Feel free to do whatever you want with it. Lua Code:
|
04/06/15, 12:08 AM | #4 | |
Join Date: Mar 2014
Posts: 41
|
||
ESOUI » Developer Discussions » Lua/XML Help » Move PC 'F' Hold to Interact |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|