Integrate view-map into ordoor

Now we can view scenario maps from the main game interface. We can't
cancel out of a scenario yet, though.
This commit is contained in:
2020-04-11 00:13:28 +01:00
parent 0025daf8dd
commit 5f8606377a
10 changed files with 289 additions and 233 deletions

View File

@@ -29,7 +29,10 @@ func (f *Flow) linkLevelPly() {
// FIXME: we should select a savegame if Mighty Hero is selected here
// FIXME: we should show a movie here. Need an internal SMK player first
// FIXME: we should set up new game state here!
f.onClick(levelPly, "2.7", f.setDriver(bridge)) // Select button
f.onClick(levelPly, "2.7", func() { // Select button
f.ship.NextScenario = f.generic.CampaignMaps[0]
f.setDriverNow(bridge)
})
// Link children
f.linkBridge()