Merge pull request #132 from argonui/tour-starter

SCED Intro Tour, Final
This commit is contained in:
Chr1Z 2022-12-30 02:36:52 +01:00 committed by GitHub
commit f915d9ca14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 94 additions and 1 deletions

View File

@ -251,7 +251,8 @@
"ArkhamSCED240Page1-12102022.1dd55c",
"TokenSpawnTracker.e3ffc9",
"TokenSource.124381",
"GameData.3dbe47"
"GameData.3dbe47",
"SCEDTour.0e5aa8"
],
"PlayArea": 1,
"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