SCED Intro Tour, Final

Previous attempt got hosed with some merge conflicts, moving to a new branch to start clean
This commit is contained in:
Buhallin 2022-12-29 16:35:55 -08:00
parent 62f8978823
commit a744b882ae
No known key found for this signature in database
GPG Key ID: DB3C362823852294
3 changed files with 94 additions and 1 deletions

View File

@ -251,7 +251,8 @@
"ArkhamSCED240Page1-12102022.1dd55c", "ArkhamSCED240Page1-12102022.1dd55c",
"TokenSpawnTracker.e3ffc9", "TokenSpawnTracker.e3ffc9",
"TokenSource.124381", "TokenSource.124381",
"GameData.3dbe47" "GameData.3dbe47",
"SCEDTour.0e5aa8"
], ],
"PlayArea": 1, "PlayArea": 1,
"PlayerCounts": [ "PlayerCounts": [

View File

@ -0,0 +1,57 @@
{
"AltLookAngle": {
"x": 0,
"y": 0,
"z": 0
},
"Autoraise": true,
"ColorDiffuse": {
"b": 1,
"g": 1,
"r": 1
},
"CustomImage": {
"CustomToken": {
"MergeDistancePixels": 5,
"Stackable": false,
"StandUp": false,
"Thickness": 0.1
},
"ImageScalar": 1,
"ImageSecondaryURL": "",
"ImageURL": "https://i.imgur.com/Q1J2Dgl.png",
"WidthScale": 0
},
"Description": "",
"DragSelectable": true,
"GMNotes": "",
"GUID": "0e5aa8",
"Grid": true,
"GridProjection": false,
"Hands": false,
"HideWhenFaceDown": false,
"IgnoreFoW": false,
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScript": "require(\"core/tour/TourStarter\")",
"LuaScriptState": "",
"MeasureMovement": false,
"Name": "Custom_Token",
"Nickname": "SCED Tour",
"Snap": true,
"Sticky": true,
"Tooltip": false,
"Transform": {
"posX": -23.677,
"posY": 1.57,
"posZ": -0.03,
"rotX": 0,
"rotY": 270,
"rotZ": 0,
"scaleX": 3.38,
"scaleY": 1,
"scaleZ": 3.38
},
"Value": 0,
"XmlUI": ""
}

View File

@ -0,0 +1,35 @@
local tourManager = require("core/tour/TourManager")
function onLoad()
self.createButton({
click_function = "startTour",
function_owner = self,
position = { 1.27, 0.05, 0.035},
width = 500,
height = 20,
color = { 0, 0, 0, 0 },
-- TTS has a minium height for buttons, have to scale the Z-axis down to get the right size
scale = { 1, 1, 0.82 },
tooltip = "Start the Tour",
})
self.createButton({
click_function = "deleteStarter",
function_owner = self,
position = { 1.27, 0.05, 0.309},
width = 500,
height = 20,
color = { 0, 0, 0, 0 },
-- TTS has a minium height for buttons, have to scale the Z-axis down to get the right size
scale = { 1, 1, 0.82 },
tooltip = "Delete this Panel",
})
end
function startTour(_, playerColor, _)
broadcastToColor("Starting the tour, please wait", playerColor)
tourManager.startTour(playerColor)
end
function deleteStarter(_, _, _)
self.destruct()
end