11/13/14, 12:16 PM | #1 |
Problem with Destinations
I am stuck on a problem trying to make Destinations compatible with MiniMap by Fyrakin.
My "Semi-Real" pins was made in a very dirty way earlier. Now I want to add them correctly like this (short example): Lua Code:
Lua Code:
It is ONLY the unknown pins that do this and ONLY those using my "Semi_Real" pins. Any help will be appreciated Last edited by SnowmanDK : 11/13/14 at 09:11 PM. |
|
11/13/14, 02:48 PM | #2 |
Destinations addon uses pinTag for tooltips - pinTag contains table (array) of strings, each string is one text line on the tooltip. In your code is nothing what adds text to the tooltip. Can you post whole function?
|
|
11/13/14, 02:52 PM | #3 | |
Here is the entire function: Lua Code:
Last edited by SnowmanDK : 11/13/14 at 02:54 PM. |
||
11/13/14, 03:05 PM | #4 |
I do not see anything what can add multiple lines to the tooltip. Are you sure that CreateMapPins function is called only once per zone? If you call CreateMapPins function multiple times, you will have lots of pins at the same place. In this case tooltip shows text for all pins under the mouse cursor.
|
|
11/13/14, 03:26 PM | #5 | |
Lua Code:
|
||
11/13/14, 04:14 PM | #6 |
Ah, you are right. All pin types has the same creator function, so the same function is called for each pin type. Not only when you register pins using the AddPinType, but every time when you change zone.
There are several ways how to fix the issue, for example: - the same way as I have it done in SkyShards, call create function with some delay and make sure that you will call it just once. Simple function (I have a bit more complex function in SkyShards): Lua Code:
- make different function for each pintype. Again, this will be inefficient as you will need to go through your data table more times. |
|
11/13/14, 04:59 PM | #7 | |
Lua Code:
|
||
11/13/14, 05:23 PM | #8 | |
Lua Code:
Last edited by Garkin : 11/13/14 at 05:28 PM. |
||
11/13/14, 06:27 PM | #9 | |
Line 2406: Lua Code:
Lua Code:
|
||
11/13/14, 07:26 PM | #10 |
Not sure this is the final solution, but it seems to work.
I did this directly, bypassing a loop through "QueueCreatePins". Lua Code:
|
|
11/13/14, 07:58 PM | #11 |
After adding a function to toggle the RealPins on/off, and adding a call to that depending on switches in settings then it seems to work perfectly.
Once again you saved me Master Garkin Only one issue left, but that's minor thing. It's even present in the current release. Maybe you have an idea about what is going on with it. When RealPins are selected then only Quest Hubs are shown in Coldharbour and The Rift. It ONLY goes wrong in those 2 zones and ONLY when using "Semi-Real" pins. I must admit I am beginning to suspect a problem in the API, as I can't find the reason. |
|
ESOUI » Developer Discussions » General Authoring Discussion » Problem with Destinations |
«
Previous Thread
|
Next Thread
»
|
Thread Tools | |
Display Modes | |
|
|