Thread Tools Display Modes
07-21-22, 02:32 PM   #1
MtNa
A Defias Bandit
Join Date: Jul 2022
Posts: 2
Minimap arrow frame

Hi. Is it possible to control player arrow on minimap like frame/region object? Where is placed that object (like _G["Minimap"])? Thx.

Last edited by MtNa : 07-21-22 at 03:21 PM.
  Reply With Quote
07-21-22, 04:17 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,925
What were you hoping to do with it ?

Looking at the blizzard files for the minimap, there isn't any customization functionality that I could see.

There might be a way to override the texture but I have never done that before myself so not sure if it is or not.

Of course there might be something I haven't found that someone else knows about.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
07-21-22, 05:58 PM   #3
MtNa
A Defias Bandit
Join Date: Jul 2022
Posts: 2
Texture can be changed by specific function, but not like simple frame. I want to move it and to do some changes with specific reactions on player actions, like highlight, change textures, size and etc. One of important part its a GetRotation() like trigger, but its a frame function and minimap doesnt have it like specific function for object and i hope to take functions from parent class "frame". I think arrow its an another frame.

Last edited by MtNa : 07-22-22 at 12:46 AM.
  Reply With Quote
07-22-22, 01:38 PM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,925
Because Minimap is it's own frame base, it might not be possible for addons to do everything you want. But you could see if one of the minimap addons have managed to do something similar which might offer a clue as to how you might be able to do it if it is possible.

Lua Code:
  1. <Minimap name="Minimap" enableMouse="true">
  2. ...
  3. </>
XML File: https://www.townlong-yak.com/framexml/live/Minimap.xml
Source File : https://www.townlong-yak.com/framexml/live/Minimap.lua


However, looking at wowpedia ..
``Minimap (inherits from Frame) ``

Could mean that it has access to some of the frame functionality.
https://wowpedia.fandom.com/wiki/UIOBJECT_Minimap

As to triggers, seeing as your character arrow should react to player actions, maybe monitoring those triggers would help.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 07-22-22 at 05:46 PM.
  Reply With Quote
07-23-22, 01:15 AM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
The Minimap has been known to act as an intrinsic frame, meaning it's a custom frame type that works very similar to how templates and inheritance works. An example of an intrinsic frame is the ScrollingMessageFrame.



For example, people used to probe Minimap:GetRegions() to find the player arrow texture and calculate the rotation from TexCoords to get player facing. This was before GetPlayerFacing() existed.

This is similar to how people used to probe WorldFrame:GetChildren() to find nameplates before the entire NamePlate system was rewritten as a LoD AddOn.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Minimap arrow frame

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off