How to change object's title (Fishing)?
Hello! I am kinda trying out making first addon.
I want a fishing bait to be named under each source of fish. Instead of standard "Fishing Hole" -> "Fishing Hole (Crawlers)" for example. So, the question is: can i change title of the fishing holes? If yes, how can i achieve that? Thanks in advance! |
Think of your question in a different way. Instead of renaming the fishing hole, you actually just want to display a different text under the cursor.
You can find the code for the cursor here: https://github.com/esoui/esoui/blob/...le/reticle.lua By looking at it (I haven't tested it) the reticle text is set in this line: https://github.com/esoui/esoui/blob/...ticle.lua#L237 You see that the function returns true, if a new text was set to the reticle/cursor, so you can do the following to change the displayed text: Lua Code:
I have not tested this code, it's just what I would try after reading the source code of ZO_Reticle. So beware of bugs. |
Quote:
Would you suggest any resources, where i can grab a ZO_XXX class or functions descriptions? Didn't even knew of ZO_Reticle existance. |
Quote:
Documentation Source Code |
All times are GMT -6. The time now is 08:11 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI