Added Remove Tour Support
Added very simple functionality to delete the tour object on import.
This commit is contained in:
parent
92c8d9c6d1
commit
e4dbbc29fe
@ -51,6 +51,7 @@ local playAreaAPI = require("core/PlayAreaApi")
|
|||||||
local deckImporterApi = require("arkhamdb/DeckImporterApi")
|
local deckImporterApi = require("arkhamdb/DeckImporterApi")
|
||||||
local optionPanelApi = require("core/OptionPanelApi")
|
local optionPanelApi = require("core/OptionPanelApi")
|
||||||
local blessCurseApi = require("chaosbag/BlessCurseManagerApi")
|
local blessCurseApi = require("chaosbag/BlessCurseManagerApi")
|
||||||
|
local tourApi = require("core/tour/TourApi")
|
||||||
|
|
||||||
local campaignBoxGUID
|
local campaignBoxGUID
|
||||||
|
|
||||||
@ -169,6 +170,7 @@ function createCampaignFromToken(importData)
|
|||||||
function() optionPanelApi.loadSettings(importData["options"]) end,
|
function() optionPanelApi.loadSettings(importData["options"]) end,
|
||||||
0.5
|
0.5
|
||||||
)
|
)
|
||||||
|
tourApi.deleteTour()
|
||||||
broadcastToAll("Campaign successfully imported!", Color.Green)
|
broadcastToAll("Campaign successfully imported!", Color.Green)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
11
src/core/tour/TourApi.ttslua
Normal file
11
src/core/tour/TourApi.ttslua
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
do
|
||||||
|
local TourApi = {}
|
||||||
|
|
||||||
|
local TOUR_GUID = "0e5aa8"
|
||||||
|
|
||||||
|
TourApi.deleteTour = function()
|
||||||
|
getObjectFromGUID(TOUR_GUID).call("deleteStarter", nil, nil, nil)
|
||||||
|
end
|
||||||
|
|
||||||
|
return TourApi
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user