New Developer Here, Couple Questions
Hi all,
I'm new to addon authoring but not to coding. I had a couple ideas in mind and was hoping to get some feedback/somewhere to start with them.
Where should I start with these ideas? I know that the function that actually makes your character sprint is private - does this mean my toggle sprint idea isn't possible? Since all the .dds files are rolled into .dat files in the game's code - does that mean changing the game's map pin colors won't be possible? Thanks for your time. |
The default sprinting button was a pain to get used to since it is an awkward angle, but I didn't have a better choice in mind. Due to sprinting being private, it does kill the most logical way of handling it. I'm not sure if it might be possible to keep a normal keybind from toggling it back off on release though.
As for changing the map pins, Harven's addon allows creating new custom map pins and perhaps it could allow reskinning existing ones? http://www.esoui.com/downloads/info3...nsMarkers.html |
You can colorize the map pin textures instead of exchanging them with new ones.
You just need to find their global name (using addon ZGOO and moving the mouse above the pin on the map and thenn type "/zgoo mouse" into the chat na dpress return), get the control for the name by Lua Code:
-> The pins should all be in ZO_WorldMapContainer as children, starting with "ZO_MapPin" and then a number. After this you can use somehting like this to colorize it Lua Code:
Where r = red, g= green, b=blue and a = alpha value (0 to 1, in 0.1 steps I think) To exchange the texture instead use: Lua Code:
|
Quote:
|
Yes, you can use custom textures placed in the addon's files. For example,[[DolgubonsLazySetCrafter/images/patterns/templateTexture.dds]]
|
/zgoo mouse is incredibly helpful, thank you Baertram. I'm starting to realize why an addon doesn't exist to re-color existing map pins already though (maybe lol) - it appears that every pin has its own control, even when they're the same icon. However, map pins (in the m_Pin table) have a sub-table called m_PinTags, and in this sub-table the path to the pin texture file is the second value.
Would it be possible to pull all pins into my code and re-color/re-texture them if they use a certain texture file? Or maybe there's some other identifying value that is the same across all pins of the same icon I can use? Getting the control for each pin individually would be incredibly time consuming... |
For your ergonomic issues you could try moving sprint to your mouse or some other key, like spacebar.
|
Quote:
|
I put sprint to "CTRL" and sneak to "<" for that reason.
|
Quote:
|
All times are GMT -6. The time now is 01:52 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI