CustomCompassPins: What am I doing wrong?
I am trying to add color to my compass pins, to accomodate my recent changes to Destinations.
I would have thought I should do somthing like this (by adding additionalLayout): Lua Code:
Code:
user:/AddOns/SkyShards/Libs/CustomCompassPins/CustomCompassPins.lua:227: function expected instead of nil I am probably just overlooking something... |
Lua Code:
COMPASS_PINS.pinLayouts should be for your current case COMPASS_PINS["PINS_QUESTS_DONE"] I think? The ResetPin(pin) function tries to call the layout callback function that you have defined beyond "pinLayout_QuestsDone.additionalLayout" at index [2]. But there does not seeem to be an index [2] in your definition. I think you need to define it like this then: Lua Code:
EDIT: I just saw that in the function CompassPinManager:Update() there is another call to the addiitonal layouts and there is used the index [1]: Lua Code:
So index [1] seems to be a function too, with the parameters pin, angle, normalizedAngle, normalizedDistance |
The odd thing is Garkin makes it work without reference to any index. This is a copy directly from "PublicDungeonChampions":
Lua Code:
Lua Code:
Quote:
|
Library description says:
Quote:
Quote:
Lua Code:
|
Thanks for the replies :)
I was sure I tried it, but I guess I made some mistake... This is the solution (using my first code example as template): Lua Code:
Case closed ;) |
All times are GMT -6. The time now is 12:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI