Merge pull request #132 from argonui/tour-starter
SCED Intro Tour, Final
This commit is contained in:
commit
f915d9ca14
@ -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": [
|
||||||
|
57
objects/SCEDTour.0e5aa8.json
Normal file
57
objects/SCEDTour.0e5aa8.json
Normal 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": ""
|
||||||
|
}
|
35
src/core/tour/TourStarter.ttslua
Normal file
35
src/core/tour/TourStarter.ttslua
Normal 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
|
Loading…
x
Reference in New Issue
Block a user