Hello,
I am trying to style the dialog options selection with GUI.
Is it possible to have GUI adjusting height depending on how much dialog options I have?
Sometimes I have a lot of space below and sometimes the options go out of GUI frame.
I am sorry if it's an obvious question, but I tried searching the forum and consulting the help in the engine and couldn't find and answer.
Thank you.
If you're using custom dialog options rendering, you can get the .Height from the DialogOptionsRenderingInfo object that is passed to the functions.
I have NO idea what any of it means, but it seems like a great starting point to begin exploring.
Thank you!
Right :)
People usually use a TextWindowGUI (https://www.adventuregamestudio.co.uk/manual/ags13.htm#TextWin) for their Dialog choices, it will get resized to fit all options automatically.
If you want even more customization, you can use Custom Dialog rendering (https://www.adventuregamestudio.co.uk/manual/ags41.htm#CustomDialogOptions); this basically means that AGS will call a bunch of functions written by you during a dialog. The DialogOptionsRenderingInfo object is passed to these function. See here:
That's awesome, thank you very much!