|
09/13/14, 08:26 PM | #1 |
CustomCompassPins problem
Hi
I am trying to use custom pins like this: Lua Code:
COMPASS_PINS.pinLayouts[PINS_MAIQ].texture = "Destinations/Icons/maiq_colored_Green.dds" Shouldn't that line force that specific pin to be used, overriding the set texture for PINS_MAIQ? |
|
09/13/14, 09:36 PM | #2 |
I'd probably use additional layout:
Lua Code:
EDIT: Your code doesn't work because pin is not created immediately. CreatePin function just inserts pin information (i.e. reference to the pinLayout and pin coordiantes) to the internal table and pin itself is created when it should be displayed on the compass. If you want to modify pin texture, you will have to use additionalLayout or sizeCallback functions. Another solution would be using two different pin types with different pin layouts - one of complete and second for incomplete achievements. Last edited by Garkin : 09/14/14 at 04:17 AM. |
|
09/14/14, 12:00 AM | #3 |
Oh and as far as I can remember compass pin textures are stored in pinTexture, aboveTexture, belowTexture.
|
|
09/14/14, 09:20 AM | #4 |
@Garkin: I did think about that. Thanks
@Fyrakin: I'll keep that in mind. Thanks I consider this one closed then |
|
09/14/14, 01:26 PM | #5 | |
|
||
09/14/14, 02:37 PM | #6 | |
|
||
09/14/14, 07:55 PM | #7 | |
I know this part below is not a CompassPins problem. Now I need to make it show the pin text in a different color for the zones that's not completed. I am thinking of the "Lightbringer/Give to the Poor/Crime Pays" achievements in particular. When I have "Show completed achievements" on, then it shows the not completed ones with the correct pin, BUT it shows the text for the completed and not completed together. I'd like a custom color for the not completed ones, so they stand out. Let's say a green for completed ones and red for not completed (just to have some colors). |
||
09/14/14, 08:49 PM | #8 |
Pin text - you mean tooltips? If you use the same tooltip creator as for POI pins:
Lua Code:
You can use the following add callback to show colored tooltip lines: Lua Code:
Last edited by Garkin : 09/14/14 at 08:57 PM. |
|
09/14/14, 09:37 PM | #9 | |
Thank you once more |
||
ESOUI » Developer Discussions » General Authoring Discussion » CustomCompassPins problem |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|