So what I'm looking for is a mod that would modify the default quest tracker to Left Justify the text. I have a better placement for it on the left side of my screen space but I'm very OCD about having elements in my ui line up and the default Right Justification just doesn't do it for me. I've looked at a few quest mods but I am very single character/completionist minded, and the mods I've looked at seem to be much more feature heavy than I need.
So, if anyone's got some simple code I can throw in an lua I have for basic settings, or knows of a very very basic quest mod to set the text justification on the quest tracker I'd appreciate it! Thanks.
The function that do the justification is QuestLogTitleButton_Resize in QuestLogFrame.lua. You could hook and do your own justification or, if you are afraid of tainting something, secure hook the log update function and redo the justification on each button. Here is a code example that I have entirely stolen from Tekkub's Qelevel:
local function myQuestLogTitleButton_Resize(button)
-- some code here
end
local function QuestLog_Update()
for i,butt in pairs(QuestLogScrollFrame.buttons) do
myQuestLogTitleButton_Resize(butt)
end
end
hooksecurefunc("QuestLog_Update", QuestLog_Update)
hooksecurefunc(QuestLogScrollFrame, "update", QuestLog_Update)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So, if anyone's got some simple code I can throw in an lua I have for basic settings, or knows of a very very basic quest mod to set the text justification on the quest tracker I'd appreciate it! Thanks.