Wire up inventory select to ship state
Also mixed into this commit: * Use returning drivers where possible * Make the credits screen returnable via click
This commit is contained in:
@@ -4,11 +4,13 @@ func (f *Flow) linkBridge() {
|
||||
// FIXME: sometimes these doors are frozen, depending on ship state, but we
|
||||
// don't implement that yet.
|
||||
|
||||
f.onClick(bridge, "2.1", f.setDriver(briefing)) // Mission briefing clickable
|
||||
f.onClick(bridge, "2.2", f.setDriver(choices)) // Options door hotspot
|
||||
f.onClick(bridge, "2.4", f.playNextScenario(bridge)) // Enter combat door hotspot
|
||||
f.setFreeze(bridge, "2.6", true) // TODO: Vehicle configure door hotspot
|
||||
f.onClick(bridge, "2.8", f.setDriver(arrange)) // Squads configure door hotspot
|
||||
f.onClick(bridge, "2.1", f.setReturningDriver(bridge, briefing)) // Mission briefing clickable
|
||||
f.onClick(bridge, "2.2", f.setReturningDriver(bridge, choices)) // Options door hotspot
|
||||
f.onClick(bridge, "2.4", f.playNextScenario(bridge)) // Enter combat door hotspot
|
||||
f.setFreeze(bridge, "2.6", true) // TODO: Vehicle configure door hotspot
|
||||
|
||||
// FIXME: setReturningDriver would leave behind junk
|
||||
f.onClick(bridge, "2.8", f.setDriver(arrange)) // Squads configure door hotspot.
|
||||
|
||||
// link children
|
||||
f.linkBriefing()
|
||||
@@ -21,19 +23,6 @@ func (f *Flow) linkBriefing() {
|
||||
f.onClick(briefing, "3.1", f.setDriver(bridge))
|
||||
}
|
||||
|
||||
func (f *Flow) linkChoices() {
|
||||
f.onClick(choices, "2.1", f.setDriver(loadGame)) // Load another game button
|
||||
f.onClick(choices, "2.2", f.setDriver(saveGame)) // Save this game button
|
||||
f.onClick(choices, "2.3", f.setReturningDriver(choices, options)) // More options button
|
||||
|
||||
// FIXME: wipe out game state when this goes through
|
||||
f.onClick(choices, "2.4", f.setDriver(main)) // Restart button
|
||||
|
||||
f.onClick(choices, "2.5", f.setDriver(credits)) // Credits button
|
||||
f.onClick(choices, "2.6", f.setExit) // Quit button
|
||||
f.onClick(choices, "2.7", f.setDriver(bridge)) // Back button
|
||||
}
|
||||
|
||||
func (f *Flow) linkArrange() {
|
||||
// FIXME: we should be operating on game data in here
|
||||
f.onClick(arrange, "8.1", f.setDriver(bridge)) // Return to bridge ("cathedral")
|
||||
|
Reference in New Issue
Block a user