Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share Location Button #54

Open
Gogo1951 opened this issue Oct 24, 2024 · 0 comments
Open

Share Location Button #54

Gogo1951 opened this issue Oct 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Gogo1951
Copy link

Gogo1951 commented Oct 24, 2024

Is your feature request related to a problem? Please describe.
I'd like to have a share location button I could send people I chat with.

Pasted_Image_10_23_24__9_35 PM

It should just add like "{rt7} : I'm located in Ironforge (33,65)."

Here's the function I used to create that. Just toss that into your frame and you should be set. (=

/run local m=C_Map.GetBestMapForUnit("player") if m then local p=C_Map.GetPlayerMapPosition(m,"player") if p then local x,y=p:GetXY() print("{rt7} : I'm in "..C_Map.GetMapInfo(m).name..format(" (%.0f,%.0f)",x100,y100)..".") end end

@Pazza Pazza added the enhancement New feature or request label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants