/** When you have completed all of the scenes (which are broken up into chapters), then you can play the next instalments. Example instalments : Normal Gravity, High-G, Inversion, Total Inversion... */ class InstalmentButton : Button() { @Attribute var instalment = 1 override fun activated() { super.activated() if ( instalment > HiggsAnomaly.instance.instalmentsCompleted() + 1 ) { actor.die() return } } override fun onClicked(event: MouseEvent) { HiggsAnomaly.instance.instalment = instalment HiggsAnomaly.instance.highlightInstalment() actor.event("ding") } }