this.missionScreenEnded mini-bug

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

On the subject of "this.missionScreenEnded" I noticed I miss an other triggering event: "this.choicesCleared".

To handle multiple offers it is not possible to react on an missionscreen ended when the choices are not cleared. It can happen if your program reacts sooner on the mission screen than the script that set it up in the first place. I now set up a timer in this case to get control back, but it would be easier when there also would be a "this.choicesCleared" event.

Both are needed for the same so it will become an

this.missionScreenEnded = this.choicesCleared = function()
{
body
}

The trigger looks easy implementable in the clearChoices function or not??
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Do you mean resetMissionChoice() or clearMissionScreen()?
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

I mend: resetMissionChoice(). But that is now cleared in an other forum.

One addition on the mission.showShipModel(), and the legacy counterpart. Unlike the other screen commands it clears the model when used after setting up the screen. So it can't be used to clear it immediately as stated before. mission.setBackgroundImage() and mission.setMusic() however can be used.
Post Reply