public
Description: WoW Powerleveling addon
Homepage: http://www.tekkub.net/
Clone URL: git://github.com/tekkub/tourguide.git
Click here to lend your support to: tourguide and make a donation at www.pledgie.com !
Add |T| tag.  Makes objectives show up with a green background, used to 
indicate the player should be doing things in a "town"
tekkub (author)
Sat Jan 05 09:20:57 -0800 2008
commit  c651abe466bf639071ec2686ef4336b34345791b
tree    44589b96681e6e4a49d50d30eae628b85cbe9bfc
parent  b8ce5346762adb8b52f0da8724d8d8d24aefe92f
...
5
6
7
8
9
10
 
 
 
11
12
13
...
89
90
91
 
92
93
94
95
 
 
96
 
97
98
99
 
 
100
101
102
103
 
104
105
106
...
164
165
166
167
 
168
169
 
 
170
171
172
...
5
6
7
 
 
 
8
9
10
11
12
13
...
89
90
91
92
93
94
 
 
95
96
97
98
99
 
 
100
101
102
103
104
 
105
106
107
108
...
166
167
168
 
169
170
171
172
173
174
175
176
0
@@ -5,9 +5,9 @@ local L = TourGuide.Locale
0
 local ww = WidgetWarlock
0
 
0
 
0
-local ROWHEIGHT = 26
0
-local ROWOFFSET = 4
0
-local NUMROWS = math.floor(305/(ROWHEIGHT+4))
0
+local ROWHEIGHT = 30
0
+local ROWOFFSET = 6
0
+local NUMROWS = math.floor(305/ROWHEIGHT)
0
 
0
 
0
 local offset = 0
0
@@ -89,18 +89,20 @@ function TourGuide:CreateObjectivePanel()
0
   end)
0
 
0
   local function LevelCorrection(f) f:SetFrameLevel(frame:GetFrameLevel()+1); f:SetScript("OnShow", nil) end
0
+ local bg = {bgFile = "Interface/Tooltips/UI-Tooltip-Background"}
0
   for i=1,NUMROWS do
0
     local row = CreateFrame("Button", nil, frame)
0
- row:SetPoint("TOPLEFT", i == 1 and frame or rows[i-1], i == 1 and "TOPLEFT" or "BOTTOMLEFT", 0, -ROWOFFSET)
0
- row:SetWidth(630)
0
+ row:SetPoint("TOPLEFT", i == 1 and frame or rows[i-1], i == 1 and "TOPLEFT" or "BOTTOMLEFT", 0, i == 1 and -3 or 0)
0
+ row:SetWidth(630-20)
0
     row:SetHeight(ROWHEIGHT)
0
+ row:SetBackdrop(bg)
0
 
0
- local check = ww.SummonCheckBox(ROWHEIGHT, row, "TOPLEFT", ROWOFFSET, 0)
0
- local icon = ww.SummonTexture(row, nil, ROWHEIGHT, ROWHEIGHT, nil, "TOPLEFT", check, "TOPRIGHT", ROWOFFSET, 0)
0
+ local check = ww.SummonCheckBox(ROWHEIGHT-ROWOFFSET, row, "LEFT", ROWOFFSET, 0)
0
+ local icon = ww.SummonTexture(row, nil, ROWHEIGHT-ROWOFFSET, ROWHEIGHT-ROWOFFSET, nil, "LEFT", check, "RIGHT", ROWOFFSET, 0)
0
     local text = ww.SummonFontString(row, nil, "GameFontNormal", nil, "LEFT", icon, "RIGHT", ROWOFFSET, 0)
0
 
0
     local detailhover = CreateFrame("Button", nil, frame)
0
- detailhover:SetHeight(ROWHEIGHT)
0
+ detailhover:SetHeight(ROWHEIGHT-ROWOFFSET)
0
     detailhover:SetPoint("LEFT", text, "RIGHT", ROWOFFSET*3, 0)
0
     detailhover:SetPoint("RIGHT", scrollbar, "LEFT", -ROWOFFSET-7, 0)
0
     detailhover:SetScript("OnEnter", ShowTooltip)
0
@@ -164,9 +166,11 @@ function TourGuide:UpdateOHPanel(value)
0
     if not name then row:Hide()
0
     else
0
       local turnedin, logi, complete = self:GetObjectiveStatus(i + offset)
0
- local optional = self:GetObjectiveTag("O", i + offset)
0
+ local optional, intown = self:GetObjectiveTag("O", i + offset), self:GetObjectiveTag("T", i + offset)
0
       row:Show()
0
 
0
+ if intown then row:SetBackdropColor(0,0.5,0,0.5) else row:SetBackdropColor(0,0,0,0) end
0
+
0
       local shortname = name:gsub(L.PART_GSUB, "")
0
       logi = not turnedin and (not accepted[shortname] or (accepted[shortname] == name)) and logi
0
       complete = not turnedin and (not accepted[shortname] or (accepted[shortname] == name)) and complete
...
24
25
26
 
27
28
29
...
24
25
26
27
28
29
30
0
@@ -24,6 +24,7 @@ function TourGuide:GetObjectiveTag(tag, i)
0
   if not tags then return end
0
 
0
   if tag == "O" then return tags:find("|O|")
0
+ elseif tag == "T" then return tags:find("|T|")
0
   elseif tag == "L" then
0
     local _, _, lootitem, lootqty = tags:find("|L|(%d+)%s?(%d*)|")
0
     lootqty = tonumber(lootqty) or 1
...
115
116
117
 
118
119
120
...
115
116
117
118
119
120
121
0
@@ -115,6 +115,7 @@ function TourGuide:SetText(i)
0
 
0
   icon:SetTexture(self.icons[action])
0
   if action ~= "ACCEPT" and action ~= "TURNIN" then icon:SetTexCoord(4/48, 44/48, 4/48, 44/48) end
0
+ if self:GetObjectiveTag("T") then f:SetBackdropColor(0.09, 0.5, 0.19, 0.5) else f:SetBackdropColor(0.09, 0.09, 0.19, 0.5) end
0
   text:SetText(newtext)
0
   check:SetChecked(false)
0
   check:SetButtonState("NORMAL")
...
8
9
10
11
12
13
14
15
16
 
 
 
 
 
 
17
18
19
...
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
 
 
 
 
 
 
 
 
 
 
43
44
45
...
60
61
62
63
64
65
66
 
 
 
 
67
68
69
...
73
74
75
76
77
78
79
 
 
 
 
80
81
82
...
92
93
94
95
96
97
98
99
100
 
 
 
 
 
 
101
102
 
103
104
105
...
172
173
174
175
176
 
 
177
178
179
...
217
218
219
220
 
221
222
223
...
8
9
10
 
 
 
 
 
 
11
12
13
14
15
16
17
18
19
...
29
30
31
 
 
 
 
 
 
 
 
 
 
 
32
33
34
35
36
37
38
39
40
41
42
43
44
45
...
60
61
62
 
 
 
 
63
64
65
66
67
68
69
...
73
74
75
 
 
 
 
76
77
78
79
80
81
82
...
92
93
94
 
 
 
 
 
 
95
96
97
98
99
100
101
 
102
103
104
105
...
172
173
174
 
 
175
176
177
178
179
...
217
218
219
 
220
221
222
223
0
@@ -8,12 +8,12 @@ A Besieged!
0
 C Besieged!
0
 T Besieged!
0
 A To Legion Hold
0
-A The Sketh'lon Wreckage
0
-A A Ghost in the Machine
0
-h Wildhammer Stronghold
0
-A The Hand of Gul'dan
0
-A Put On Yer Kneepads...
0
-A Spleendid!
0
+A The Sketh'lon Wreckage |T|
0
+A A Ghost in the Machine |T|
0
+h Wildhammer Stronghold |T|
0
+A The Hand of Gul'dan |T|
0
+A Put On Yer Kneepads... |T|
0
+A Spleendid! |T|
0
 
0
 N Kill crap... |N|Kill any Felboars, Vilewing Chimaeras and Scorchshell Pincers you come across for "Put On Yer Kneepads..." Also loot any [Ever-burning Ash] you see, and kill Diemetradons for "Spleendid!"|
0
 T The Hand of Gul'dan |N|Northeast at the Altar of Damnation (42,45)|
0
@@ -29,17 +29,17 @@ C A Ghost in the Machine
0
 
0
 C To Legion Hold |N|Northwest at Legion Hold (23,36). Find the Legion Communication Device up in the building and use your "disguise".| |U|30638|
0
 
0
-T A Ghost in the Machine |N|Back at Wildhammer Stronghold|
0
-A Harbingers of Shadowmoon
0
-T Spleendid!
0
-A The Second Course...
0
-
0
-U Put on your Spectrecles |U|30719|
0
-C Harbingers of Shadowmoon |N|You don't have to leave the stronghold!|
0
-T Harbingers of Shadowmoon
0
-A Teron Gorefiend - Lore and Legend
0
-T The Sketh'lon Wreckage
0
-A Find the Deserter
0
+T A Ghost in the Machine |N|Back at Wildhammer Stronghold| |T|
0
+A Harbingers of Shadowmoon |T|
0
+T Spleendid! |T|
0
+A The Second Course... |T|
0
+
0
+U Put on your Spectrecles |U|30719| |T|
0
+C Harbingers of Shadowmoon |N|You don't have to leave the stronghold!| |T|
0
+T Harbingers of Shadowmoon |T|
0
+A Teron Gorefiend - Lore and Legend |T|
0
+T The Sketh'lon Wreckage |T|
0
+A Find the Deserter |T|
0
 T To Legion Hold
0
 A Setting Up the Bomb
0
 
0
@@ -60,10 +60,10 @@ C Setting Up the Bomb |N|Armor Plating is near the fel reaver (22.21, 35.59), Po
0
 
0
 T Setting Up the Bomb |N|Back at Wildhammer Stronghold|
0
 A Blast the Infernals!
0
-T The Second Course...
0
-A The Main Course!
0
-A Illidari-Bane Shard |U|30756|
0
-T Illidari-Bane Shard
0
+T The Second Course... |T|
0
+A The Main Course! |T|
0
+A Illidari-Bane Shard |U|30756| |T|
0
+T Illidari-Bane Shard |T|
0
 
0
 C Blast the Infernals! |N|Again at Legion Hold. Find the green circle near the infernal ranks (22.63, 39.93), use the bomb.| |U|30614|
0
 
0
@@ -73,10 +73,10 @@ A The Deathforge
0
 C The Rod of Lianthe |N|Kill Blood Elves at Eclipse Point to the southeast for the key. Strongbox is east of the elite (47.53, 71.66).|
0
 C Enraged Spirits of Air |N|Take the road east to the Netherwing Fields, drop totem, kill air elementals.| |U|30094|
0
 
0
-A The Ashtongue Tribe |N|ALDOR ONLY! North at the Altar of Sha'tar (62,30)|
0
-A The Ashtongue Broken |N|SCRYER ONLY West at the Sanctum of the Stars (54,58)|
0
-A Tablets of Baa'ri
0
-A Karabor Training Grounds
0
+A The Ashtongue Tribe |N|ALDOR ONLY! North at the Altar of Sha'tar (62,30)| |T|
0
+A The Ashtongue Broken |N|SCRYER ONLY West at the Sanctum of the Stars (54,58)| |T|
0
+A Tablets of Baa'ri |T|
0
+A Karabor Training Grounds |T|
0
 
0
 T Teron Gorefiend - Lore and Legend |N|South at the Altar of Shadows (58,70)|
0
 A Divination: Gorefiend's Cloak
0
@@ -92,14 +92,14 @@ C The Ashtongue Broken |O| |N|At the Ruins of Baa'ri|
0
 C Tablets of Baa'ri
0
 C Karabor Training Grounds |N|Inside the Black Temple, take the first right (68,50). Kill Demon Hunter Supplicants and Initiates, try to catch them after a duel when they are low on HP.|
0
 
0
-T The Ashtongue Tribe |O| |N|Back at the Altar of Sha'tar|
0
-T The Ashtongue Broken |O| |N|Back at the Sanctum of the Stars|
0
-A Oronu the Elder
0
-T Tablets of Baa'ri
0
-T Karabor Training Grounds
0
-A A Necessary Distraction
0
+T The Ashtongue Tribe |O| |N|Back at the Altar of Sha'tar| |T|
0
+T The Ashtongue Broken |O| |N|Back at the Sanctum of the Stars| |T|
0
+A Oronu the Elder |T|
0
+T Tablets of Baa'ri |T|
0
+T Karabor Training Grounds |T|
0
+A A Necessary Distraction |T|
0
 
0
-T The Main Course! |N|Back at Wildhammer Stronghold|
0
+T The Main Course! |N|Back at Wildhammer Stronghold| |T|
0
 T Enraged Spirits of Air |N|Back at the Altar of Damnation|
0
 A Oronok Torn-heart
0
 
0
@@ -172,8 +172,8 @@ A Of Thistleheads and Eggs...
0
 C Of Thistleheads and Eggs...
0
 
0
 F Shattrath City
0
-T Of Thistleheads and Eggs... |N|In Lower City|
0
-A The Bundle of Bloodthistle
0
+T Of Thistleheads and Eggs... |N|In Lower City| |T|
0
+A The Bundle of Bloodthistle |T|
0
 
0
 H Wildhammer Stronghold
0
 T The Bundle of Bloodthistle
0
@@ -217,7 +217,7 @@ C Divination: Gorefiend's Truncheon |N|Ghostriders of Karabor circling The Hand
0
 T Put On Yer Kneepads...
0
 T Divination: Gorefiend's Truncheon
0
 T Divination: Gorefiend's Cloak
0
-T A Necessary Distraction
0
+T A Necessary Distraction |T|
0
 T The Cipher of Damnation - The First Fragment Recovered |NODEBUG|
0
 T The Cipher of Damnation - The Second Fragment Recovered |NODEBUG|
0
 ]]

Comments

    No one has commented yet.