Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: ylegrand on August 03, 2017, 09:52:11 PM

Title: Keep ResponsesBox visible during dialogues
Post by: ylegrand on August 03, 2017, 09:52:11 PM
Hi guys !

It seems that the regular behaviour during dialogues is that the Reponse Box is hidden when the actor/entities are talking, and is shown only when the user have to select the next sentence.

Is there a way to keep it visible all along the dialogue, and close it only at the end of the main branch, eventually by removing any text choice during the speech?

Thanks for your lights!
Title: Re: Keep ResponsesBox visible during dialogues
Post by: Mot on August 05, 2017, 09:32:04 AM
Salut ylegrand :)

If I understood correctly what you're trying to achieve ...

If you're interested in keeping an image/design in the background (for instance, representing a dialogue box) for the duration of a conversation, you could display a window portraying such image/design, and then use the response box on top of it.

Here're a couple of quotes which you may find useful:

Windows have an "InGame" property (you can set it in WindowEdit). The drawing order is:

In-game windows
Response box
Inventory box
Non-in-game windows

If you mark your window as "in game", it will be painted before the inventory box and the response box.

Code: WME Script
  1. SomeWindow.InGame = true; // or set the property in WindowEdit
Title: Re: Keep ResponsesBox visible during dialogues
Post by: ylegrand on August 05, 2017, 07:38:33 PM
Hi Mot,

Sounds perfect ! Thanks a lot, I'll test this solution :)