Thread Tools Display Modes
02/14/16, 06:38 AM   #1
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,579
[outdated] Compass

I have been tinkering with the compass yesterday and found that there is not much to tinker with.
The compass is a black box and there is no way to do most of the things that I want to do.

Some practical example what I would like to be able to do:
  • Modify the color and icon of a ping based on its unitTag
  • Hide an existing pin based on certain conditions
  • Create a custom compass pin for an already existing custom map pin
  • Change the label of a compass pin without the need to hook into GetCenterOveredPinInfo

This should be possible if you add the following features to the compass:
  • Register, add and remove custom pins
  • Modify pin types (e.g. disable, change icon, color, ...)
  • Modify individual pins (e.g. hide, change icon, color, alpha, size, label, ...)

Basically getters and setters for everything on the compass. I know that there is a library that can "add" custom pins, but that just creates pin lookalikes instead of adding real pins to the real compass.

I'd also like to have some insight into what the alpha and scale coefficients are supposed to do. I tried a few different values, but couldn't really see any difference.
 
02/14/16, 10:34 AM   #2
antihax
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 23
I did a little digging into the main compass while i was writing a simple compass addon. It looks like there are a number of separate namespaces for the compass, so what you are looking to do could be quite possible, just very hard to locate.

You have:
  1. ZO_Compass
  2. COMPASS
  3. Compass
  4. CompassFrame
  5. COMPASS_FRAME
 
02/15/16, 12:35 PM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,579
I did look at the ui source and also checked ingame and it does not add the pins in lua. They just appear out of nowhere.
 

ESOUI » Developer Discussions » Wish List » [outdated] Compass


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