Download
(49MB)
Download
Updated: 12-25-22 01:22 PM
Pictures
File Info
Compatibility:
Dragonflight (10.0.2)
Shadowlands patch (9.0.2)
Visions of N'Zoth (8.3.0)
Updated:12-25-22 01:22 PM
Created:unknown
Downloads:5,593,211
Favorites:7,690
MD5:

LightHeaded  Popular! (More than 5000 hits)

Version: v100002-1.0.0-2022-12-15
by: Cladhaire [More]

Classic not updated at the moment, only retail.


LightHeaded is a very simple addon that displays quest information and comments from http://www.wowhead.com in game, eliminating the need to Alt-Tab when you get stuck on quest. This addon was inspired by qcomments and wowhead_quests, which both serve a similar purpose. Data is only loaded when you first request it, so you can be sure you're not using more memory than you need to.

I HIGHLY suggest using this addon with TomTom, another one of my addons (http://www.wowinterface.com/download...32-TomTom.html ). This allows you to simply click any coordinate in LightHeaded to add it to your map as a waypoint.

The following slash commands are valid:
  • /lh attach - Attaches the frame to the quest log
  • /lh detach - Detaches the frame, allows you to resize and move it
  • /lh sound - Toggles the open/close sound
  • /lh page - Toggles showing all comments on one page, or with multiple pages
  • /lh bgalpha <0.0-1.0> - Changes the alpha of the LH window background textures, so you can see the world.
  • /lh debug - Enables or disabled debug messages when loading quest databases
  • /lh config - Opens the LightHeaded configuration window
  • /lh autodetails - Toggle automatic opening of the Lightheaded window when clicking a quest in the objective tracker

LightHeaded now includes the English descriptions and introductory text for most of the quests in the game. This is disabled by default, but can be enabled for those players that are not playing in their native locale.

LightHeaded supports sending coordinates to TomTom, MapNotes, Cartographer2 and Cartographer3.

IMPORTANT: Addon authors that wish to use this API and data should
include the wowhead logo in the frame that displays this information.
They are kind enough to let me continue parsing their database, and we
owe them at least that much. Thank you.

Thanks for using my addons!

Updated 2022-12-15 for retail.
Beta Files (7)
File Name
Version
Hits
Size
Author
Date
v30401-1.1.0-2022-12-15
0
32MB
Cladhaire
02-04-23 03:41 AM
v11302-1.0.0-2020-05-01
591
10MB
Cladhaire
05-05-20 11:47 AM
v11302-1.1.0
1,322
10MB
Cladhaire
10-04-19 11:26 AM
v11302-1.0.0
1,464
10MB
Cladhaire
09-05-19 12:16 AM
v70100-1.1.0-2016-12-29
299
30MB
Cladhaire
01-12-17 02:27 PM
v70000-1.0.0-beta
307
27MB
Cladhaire
09-05-16 07:11 AM
v60000-0.1.0
1,012
22MB
Cladhaire
10-20-14 02:50 PM


Archived Files (1)
File Name
Version
Size
Author
Date
v90200-1.0.0-2020-12-09
42MB
Cladhaire
01-03-21 09:37 AM


Post A Reply Comment Options
Unread 12-20-10, 10:56 AM  
smariot
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Code:
hooksecurefunc("QuestLog_OpenToQuest", function ()
  -- If the detail frame is visible...
  if QuestLogDetailFrame:IsVisible() then
    -- ... make sure the entire quest log frame is visible.
    ShowUIPanel(QuestLogFrame)
  end
end)
This might be a little too hackish for your tastes, but it will allow LH to show up when someone selects 'Open Quest Details' from Blizzard's watch frame.
Report comment to moderator  
Reply With Quote
Unread 12-22-10, 12:01 AM  
smariot
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Here's a patch I made trying to get LH to work with the QuestLogDetailsFrame.

It creates an invisible frame attached to QuestLogFrame or QuestLogDetailsFrame - which ever LightHeadedFrame isn't currently using as a parent - and reparents it when that frame becomes visible.

Plus some extra stuff to make Showing/Hiding/Attaching/Detaching continue to work as expected.

Code:
--- LightHeaded/LightHeaded.lua	2010-10-13 17:24:34.000000000 +0000
+++ LightHeaded-Smariot/LightHeaded.lua	2010-12-22 05:45:58.000000000 +0000
@@ -1232,6 +1232,37 @@
 	
 end
 
+local frame_offsets = {
+	[QuestLogFrame] = {-15, 0},
+	[QuestLogDetailFrame] = {-13, -4}
+}
+
+function LightHeaded:AdjustGUIParent()
+	if LightHeadedFrame then
+		local parent = QuestLogDetailFrame
+		
+		if QuestLogFrame:IsVisible() then
+			parent = QuestLogFrame
+			LightHeaded_FrameWatchBug:SetParent(QuestLogDetailFrame)
+		else
+			LightHeaded_FrameWatchBug:SetParent(QuestLogFrame)
+		end
+		
+		LightHeadedFrame:SetParent(parent)
+		LightHeadedFrame:SetFrameLevel(0)
+		
+		if self.db.profile.attached then
+			local x, y = unpack(frame_offsets[parent])
+			
+			if not self.db.profile.open then
+				x = x - 313
+			end
+			
+			LightHeadedFrame:SetPoint("LEFT", parent, "RIGHT", x, y)
+		end
+	end
+end
+
 function LightHeaded:CreateGUI()
 	if LightHeadedFrame then
 		return
@@ -1239,9 +1270,8 @@
 
 	local lhframe = CreateFrame("Frame", "LightHeadedFrame", QuestLogFrame)
 
-	lhframe:SetWidth(640)
-	lhframe:SetHeight(512)
-	lhframe:SetPoint("LEFT", QuestLogFrame, "RIGHT", 0, 0)
+	CreateFrame("Frame", "LightHeaded_FrameWatchBug", QuestLogDetailFrame):SetScript("OnShow", function() LightHeaded:AdjustGUIParent() end)
+	lhframe:SetScript("OnShow", function() LightHeaded:AdjustGUIParent() end)
 
 	local topleft = lhframe:CreateTexture(nil, "ARTWORK")
 	topleft:SetTexture("Interface\\WorldStateFrame\\WorldStateFinalScoreFrame-TopLeft")
@@ -1354,8 +1384,6 @@
 	lhframe:SetMovable(1)
 	lhframe:SetResizable(1)
 	lhframe:SetMinResize(300, 300)
-	lhframe:SetWidth(400)
-	lhframe:SetFrameLevel(0)
 	lhframe:SetWidth(325)
 	lhframe:SetHeight(450)
 
@@ -1385,7 +1413,7 @@
 		return y1+(y2-y1)*(1 - cos(pi*mu))/2
 	end
 
-	local min,max = -328, -15
+	local min,max,y
 	local steps = 45
 	local timeToFade = 1.5
 	local mod = 1/timeToFade
@@ -1425,12 +1453,7 @@
 		end
 		
 		local offset = cosineInterpolation(min, max, mod * totalElapsed)
-		self:SetPoint("LEFT", QuestLogFrame, "RIGHT", offset, 0)
-	end
-
-	-- Flip min and max, if we're supposed to be open
-	if self.db.profile.open then
-		min,max = max,min
+		self:SetPoint("LEFT", self:GetParent(), "RIGHT", offset, y)
 	end
 
 	if not lhframe.handle then
@@ -1444,6 +1467,13 @@
 
 	lhframe.handle:RegisterForClicks("AnyUp")
 	lhframe.handle:SetScript("OnClick", function(self, button)
+											max, y = unpack(frame_offsets[lhframe:GetParent()])
+											min = max-313
+											
+											if LightHeaded.db.profile.open then
+												min,max = max,min
+											end
+											
 											lhframe:SetScript("OnUpdate", onupdate)
 											if LightHeaded.db.profile.sound then
 												PlaySoundFile("Sound\\Doodad\\Karazahn_WoodenDoors_Close_A.wav")
@@ -1738,20 +1768,19 @@
 		LightHeadedFrame.resizebg(LightHeadedFrame)
 		LightHeadedFrame:SetFrameStrata("MEDIUM")
 		LightHeadedFrame.close:Show()
-		LightHeadedFrame:SetParent(QuestLogFrame)
 
 		lhframe.text:UpdateSize()
 
 		if self.db.profile.open then
-			LightHeadedFrame:SetPoint("LEFT", QuestLogFrame, "RIGHT", -15, -1)
 			lhframe:Show()
 			lhframe:SetAlpha(1)
 			lhframe.open = true
 		else
-			LightHeadedFrame:SetPoint("LEFT", QuestLogFrame, "RIGHT", -328, -1)
 			lhframe:Hide()
 			lhframe:SetAlpha(0)
 		end
+		
+		LightHeaded:AdjustGUIParent()
 	else
 		-- Unlock the frame
 		LightHeadedFrame.titlereg:Show()
Report comment to moderator  
Reply With Quote
Unread 12-22-10, 07:57 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
I'm not sure how this will interact with other addons that manipulate the LH frame, hut I can always make this optional. I wont be able to are this until after the new year, but feel free to pester me after the 1st, and thanks for taking a stab at it!
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 12-25-10, 09:14 PM  
ragnarok00
A Kobold Labourer

Forum posts: 0
File comments: 49
Uploads: 0
Originally posted by smariot
Here's a patch I made trying to get LH to work with the QuestLogDetailsFrame.

It creates an invisible frame attached to QuestLogFrame or QuestLogDetailsFrame - which ever LightHeadedFrame isn't currently using as a parent - and reparents it when that frame becomes visible.

Plus some extra stuff to make Showing/Hiding/Attaching/Detaching continue to work as expected.

Code:
--- LightHeaded/LightHeaded.lua	2010-10-13 17:24:34.000000000 +0000
+++ LightHeaded-Smariot/LightHeaded.lua	2010-12-22 05:45:58.000000000 +0000
@@ -1232,6 +1232,37 @@
 	
 end
 
+local frame_offsets = {
+	[QuestLogFrame] = {-15, 0},
+	[QuestLogDetailFrame] = {-13, -4}
+}
+
+function LightHeaded:AdjustGUIParent()
+	if LightHeadedFrame then
+		local parent = QuestLogDetailFrame
+		
+		if QuestLogFrame:IsVisible() then
+			parent = QuestLogFrame
+			LightHeaded_FrameWatchBug:SetParent(QuestLogDetailFrame)
+		else
+			LightHeaded_FrameWatchBug:SetParent(QuestLogFrame)
+		end
+		
+		LightHeadedFrame:SetParent(parent)
+		LightHeadedFrame:SetFrameLevel(0)
+		
+		if self.db.profile.attached then
+			local x, y = unpack(frame_offsets[parent])
+			
+			if not self.db.profile.open then
+				x = x - 313
+			end
+			
+			LightHeadedFrame:SetPoint("LEFT", parent, "RIGHT", x, y)
+		end
+	end
+end
+
 function LightHeaded:CreateGUI()
 	if LightHeadedFrame then
 		return
@@ -1239,9 +1270,8 @@
 
 	local lhframe = CreateFrame("Frame", "LightHeadedFrame", QuestLogFrame)
 
-	lhframe:SetWidth(640)
-	lhframe:SetHeight(512)
-	lhframe:SetPoint("LEFT", QuestLogFrame, "RIGHT", 0, 0)
+	CreateFrame("Frame", "LightHeaded_FrameWatchBug", QuestLogDetailFrame):SetScript("OnShow", function() LightHeaded:AdjustGUIParent() end)
+	lhframe:SetScript("OnShow", function() LightHeaded:AdjustGUIParent() end)
 
 	local topleft = lhframe:CreateTexture(nil, "ARTWORK")
 	topleft:SetTexture("Interface\\WorldStateFrame\\WorldStateFinalScoreFrame-TopLeft")
@@ -1354,8 +1384,6 @@
 	lhframe:SetMovable(1)
 	lhframe:SetResizable(1)
 	lhframe:SetMinResize(300, 300)
-	lhframe:SetWidth(400)
-	lhframe:SetFrameLevel(0)
 	lhframe:SetWidth(325)
 	lhframe:SetHeight(450)
 
@@ -1385,7 +1413,7 @@
 		return y1+(y2-y1)*(1 - cos(pi*mu))/2
 	end
 
-	local min,max = -328, -15
+	local min,max,y
 	local steps = 45
 	local timeToFade = 1.5
 	local mod = 1/timeToFade
@@ -1425,12 +1453,7 @@
 		end
 		
 		local offset = cosineInterpolation(min, max, mod * totalElapsed)
-		self:SetPoint("LEFT", QuestLogFrame, "RIGHT", offset, 0)
-	end
-
-	-- Flip min and max, if we're supposed to be open
-	if self.db.profile.open then
-		min,max = max,min
+		self:SetPoint("LEFT", self:GetParent(), "RIGHT", offset, y)
 	end
 
 	if not lhframe.handle then
@@ -1444,6 +1467,13 @@
 
 	lhframe.handle:RegisterForClicks("AnyUp")
 	lhframe.handle:SetScript("OnClick", function(self, button)
+											max, y = unpack(frame_offsets[lhframe:GetParent()])
+											min = max-313
+											
+											if LightHeaded.db.profile.open then
+												min,max = max,min
+											end
+											
 											lhframe:SetScript("OnUpdate", onupdate)
 											if LightHeaded.db.profile.sound then
 												PlaySoundFile("Sound\\Doodad\\Karazahn_WoodenDoors_Close_A.wav")
@@ -1738,20 +1768,19 @@
 		LightHeadedFrame.resizebg(LightHeadedFrame)
 		LightHeadedFrame:SetFrameStrata("MEDIUM")
 		LightHeadedFrame.close:Show()
-		LightHeadedFrame:SetParent(QuestLogFrame)
 
 		lhframe.text:UpdateSize()
 
 		if self.db.profile.open then
-			LightHeadedFrame:SetPoint("LEFT", QuestLogFrame, "RIGHT", -15, -1)
 			lhframe:Show()
 			lhframe:SetAlpha(1)
 			lhframe.open = true
 		else
-			LightHeadedFrame:SetPoint("LEFT", QuestLogFrame, "RIGHT", -328, -1)
 			lhframe:Hide()
 			lhframe:SetAlpha(0)
 		end
+		
+		LightHeaded:AdjustGUIParent()
 	else
 		-- Unlock the frame
 		LightHeadedFrame.titlereg:Show()
How to apply this patch to the source?
Report comment to moderator  
Reply With Quote
Unread 12-26-10, 02:43 AM  
abraXas-
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Can you change or add an option for the cross to not close the entire Quest Log but only the LightHeaded frame? To open it up again might add a keycombinating like ALT+Click. Or remove it altogether and add an ">" / "<" button to the default Quest Log that hides and unhides the LightHeaded frame. That'd be nice.
Report comment to moderator  
Reply With Quote
Unread 12-29-10, 04:20 PM  
phaser1701
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Question Adding Info

How can we add info to the help pages?
Report comment to moderator  
Reply With Quote
Unread 12-31-10, 04:56 AM  
Mafriki
A Murloc Raider

Forum posts: 4
File comments: 7
Uploads: 0
Re: Adding Info

Originally posted by phaser1701
How can we add info to the help pages?
I take it you mean the actual LightHeaded comments thing? You post a comment on the relevant www.wowhead.com quest page.
Report comment to moderator  
Reply With Quote
Unread 01-02-11, 05:18 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Thanks for the patch smariot, I've tossed it in along with support for LoD on the QLDF. Running a new parse and will push it out.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 01-02-11, 05:07 PM  
runingwolves
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Question lighted frame is the but to small to read

I downloaded you update today and now the lighthead fram is showing but it so small u can hardly see it. Is the a way to make it larger like it was before you patched it on 1-2-11. thanks
Report comment to moderator  
Reply With Quote
Unread 01-02-11, 05:40 PM  
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 628
Uploads: 1
Re: lighted frame is the but to small to read

Originally posted by runingwolves
I downloaded you update today and now the lighthead fram is showing but it so small u can hardly see it. Is the a way to make it larger like it was before you patched it on 1-2-11. thanks
I have the same problem, I even tried without any AddOns and it still doesn't show up really; just a tiny little thing to the right of the questlog. Here is a screenshot that shows it, for a better descriptions:

Report comment to moderator  
Reply With Quote
Unread 01-02-11, 06:18 PM  
moondoggy
A Fallenroot Satyr
 
moondoggy's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 24
File comments: 92
Uploads: 1
i have the same problem with latest version as well. so small you cant see it
using carbonite as user is in posted SS not sure if this is reason yet.
Report comment to moderator  
Reply With Quote
Unread 01-02-11, 06:33 PM  
Yelina
An Aku'mai Servant

Forum posts: 37
File comments: 51
Uploads: 0
I have the same problem the last three posters have.
I deleted version r325 and reinstalled r 322 for now.
So I can read it again
Report comment to moderator  
Reply With Quote
Unread 01-02-11, 06:41 PM  
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 628
Uploads: 1
Originally posted by moondoggy
i have the same problem with latest version as well. so small you cant see it
using carbonite as user is in posted SS not sure if this is reason yet.
Nope, it's not Carbonite causing the problem. As I stated below I have tried it without any AddOns at all.
Report comment to moderator  
Reply With Quote
Unread 01-02-11, 07:19 PM  
Mafriki
A Murloc Raider

Forum posts: 4
File comments: 7
Uploads: 0
Originally posted by Rammoth
Nope, it's not Carbonite causing the problem. As I stated below I have tried it without any AddOns at all.
Oddly for me with Carbonite it is tiny but if I press Alt+L for the normal questlog (Carbonite option) then I see it attached normally and fullsize to the default quest log. Weirdness.

[edited for clarity]
Last edited by Mafriki : 01-03-11 at 03:44 AM.
Report comment to moderator  
Reply With Quote
Unread 01-03-11, 01:28 AM  
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2364
File comments: 116
Uploads: 11
Originally posted by Mafriki
Oddly for me with Carbonite it is tiny but if I press Alt+L for the normal questlog (Carbonite option) then I see it normally attached to the default quest log. Weirdness.
Same, same, but don't know why.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: