Skip to content

Commit b340ce2

Browse files
committed
Add missing (Quest) prefix in gossip frames (fixes #11)
1 parent ef8ca83 commit b340ce2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ function DialogKey:OnGossipFrameUpdate(GossipFrame)
205205
if tag then
206206
if self.db.numKeysForGossip then
207207
local oldText = data.info[tag]
208+
if (FlagsUtil.IsSet(data.info.flags, Enum.GossipOptionRecFlags.QuestLabelPrepend)) then
209+
oldText = GOSSIP_QUEST_OPTION_PREPEND:format(oldText);
210+
end
208211
local newText = (n % 10) .. ". " .. (oldText:match("^%d. (.+)$") or oldText)
209212
if self.db.riskyNumKeysForGossip then
210213
data.info[tag] = newText -- this may not be safe, but it looks like the only somewhat reliable way to ensure the scrollbar is enabled when needed

0 commit comments

Comments
 (0)