Frame temporary properties (frame.86c52870)
In the QuestInfo frame, text sometimes appears in the element:
QuestInfoRewardsFrame.86c52870 but the number 86c52870 changes randomly. In the picture, this element contains the text "The following will be cast on you", which I would like to change in my addon. How to identify this changing element? |
It is an unnamed fontstring. Since it doesn't have a name, the reference you see to it (86c52870) is its address in memory.
You can try calling QuestInfoRewardsFrame:GetChildren() |
10 children, nothing special:
nil QuestInfoRewardsFrameQuestInfoItem1 QuestInfoMoneyFrame QuestInfoSkillPointFrame QuestInfoXPFrame nil nil QuestInfoPlayerTitleFrame QuestInfoItemHighlight nil |
QuestInfoRewardsFrame uses CreateFontStringPool for those. You will need to do something like:
Lua Code:
|
Super, Vrul, this work perfectly.
Thanks. And this element what method uses? QuestMapFrame.DetailsFrame.RewardsFrame.4501dab0 |
Lua Code:
|
Excellent, thank you very much, Vrul.
|
Vrul, and how to get objective text from block of ObjectiveTrackerBlocksFrame?
Code:
hooksecurefunc(QUEST_TRACKER_MODULE, "SetBlockHeader", MY_ObjectiveTracker_Reader); |
Lua Code:
|
Thanks Vrul, this is a good way, but not quite it working.
Lua Code:
Line 4. and 7. - does not change the text in ObjectiveTracker on the game. Blizzard does not support the Polish language in the game, so I developed some addons that display translated texts in key places in the game (quests, gossip, bubbles, cinematic subtitles, tutarials). |
Translated with Google:
Lua Code:
|
Yes, yes, Vrul, now it's working perfectly.
I'll write a special thank for you inside the addon body. Finally, I need a similar code to frame: Map & Quest Log. |
Lua Code:
|
And how to get questID for specific quests?
|
Lua Code:
|
Well done. Addon is complete.
Thanks again, Vrul, for you help. |
There is one more point where the objectives text does not update.
If I collect 5/5 items, the text changes to the next task within the same quest. Objective: "0/1 Cook the meat on the campfire" don't fired on QUEST_TRACKER_MODULE:EnumQuestWatchData or isn't in block.lines EDIT - OK, I already know - I should check the properties: block.currentLine.Text . |
And the last problem in this objects:
Section: Bonus Objectives - how to get to them? |
All times are GMT -6. The time now is 03:44 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI