Skip to content

Commit 04bc62e

Browse files
authored
Merge pull request #35 from xrandox/dev_null
Dev null
2 parents 78df1ab + 588b5e1 commit 04bc62e

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

TehsTrails/Data/TehsTrails/Scripts/follower.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Teh.heartfollower = {
99

1010
Debug:Watch("Teh_HeartFollower", Teh.heartfollower)
1111

12-
local category = World:CategoryByType("tt.s.tgsp")
12+
local category = World:CategoryByType("tt.mc")
1313

1414
--Creates a follower targeting the specified target GUID
1515
local function createFollower(heartMarker, targetGuid)

TehsTrails/Data/TehsTrails/Scripts/highlight.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Debug:Watch("Teh_Highlight", Teh.highlight)
1414
local MAX_SIZE = 150
1515
local MIN_SIZE = 75
1616

17+
local cat = World:CategoryByType("tt.mc.cm.nwm")
18+
if (cat:IsVisible() == false) then
19+
cat:Show()
20+
end
21+
1722
-- Resets the highlight
1823
function Teh_HighlightReset()
1924
local waypoint = Teh.highlight.currentWaypoint

TehsTrails/Data/TehsTrails/Scripts/trailcolors.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ Teh.trailcolors = {
2121
}
2222

2323
Debug:Watch("Teh_TrailColors", Teh.trailcolors)
24-
2524
local mainTrail = World:TrailByGuid("cb6VPxgSL0yytSwws/y+Vg==")
26-
local texture = I:Texture(Pack, "Data/TehsTrails/Markers/trailwhite.png")
2725

2826
-- Change the color of the main trail to the requested color name
2927
function Teh_ChangeColor(name)
@@ -35,7 +33,7 @@ function Teh_ChangeColor(name)
3533
for _, value in ipairs(Teh.trailcolors.colors) do
3634
if (value[1] == name) then
3735
mainTrail.Tint = value[2]
38-
mainTrail.Texture = texture
36+
mainTrail.Texture = I:Texture(Pack, "Data/TehsTrails/Markers/trailwhite.png")
3937
mainTrail.TrailSampleColor = value[2]
4038
mainTrail.InGameVisibility = true
4139
Teh_SaveValue("trailColor", name)

TehsTrails/Data/TehsTrails/Scripts/tutorial.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,10 @@ function Teh_ToggleTutorial()
232232
end
233233
end
234234

235-
local function tutorialTickHandler(gametime)
235+
function Teh_TutorialTickHandler(gametime)
236236
if (Teh.tutorial.shown) then
237237
if ((Mumble.PlayerCharacter.Position - Teh.tutorial.origin):Length() > 50) then
238238
hideTutorial()
239239
end
240240
end
241-
end
242-
243-
Event:OnTick(tutorialTickHandler)
241+
end

TehsTrails/Pack.lua

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Teh = {}
2-
TehsTrailsVersion = "Release v4.0.0"
2+
TehsTrailsVersion = "Release v4.0.1"
33

44
Debug:Print("Pathing Version: v" .. PathingVersion)
55
Debug:Print("TehsTrails Version: " .. TehsTrailsVersion)
@@ -14,12 +14,18 @@ Pack:Require("Data/TehsTrails/Scripts/versioncheck.lua")
1414
-- If the version check is good, then we load everything else
1515
if (Teh_VersionCheck()) then
1616
-- Load storage first
17+
Pack:Require("Data/TehsTrails/Scripts/staticcategories.lua")
18+
19+
if (Teh_MapIsIn(Teh.static.maps.all, Mumble.CurrentMap.Id) == false) then
20+
Debug:Print('Not in a map the pack is in. Stopped loading TehsTrails scripts.')
21+
return
22+
end
23+
1724
Pack:Require("Data/TehsTrails/Scripts/storage.lua")
1825
Pack:Require("Data/TehsTrails/Scripts/trailcolors.lua")
1926
Pack:Require("Data/TehsTrails/Scripts/alternatemounts.lua")
2027
Pack:Require("Data/TehsTrails/Scripts/mmtoggle.lua")
2128
Pack:Require("Data/TehsTrails/Scripts/lookups.lua")
22-
Pack:Require("Data/TehsTrails/Scripts/staticcategories.lua")
2329
Pack:Require("Data/TehsTrails/Scripts/bounce.lua")
2430
Pack:Require("Data/TehsTrails/Scripts/highlight.lua")
2531
Pack:Require("Data/TehsTrails/Scripts/globalmarker.lua")
@@ -50,6 +56,7 @@ if (Teh_VersionCheck()) then
5056

5157
Teh_CopyTickHandler()
5258

59+
Teh_TutorialTickHandler(gameTime)
5360
end
5461

5562
--Teh_Convert_Markers() used only when generating lookups

TehsTrails/TehsTrails.taco

84 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)