[SOLVED] Variable GUI height depending on the number of dialog options?

Started by isatche, Sun 24/01/2021 11:53:01

Previous topic - Next topic

isatche

 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.

Khris

If you're using custom dialog options rendering, you can get the .Height from the DialogOptionsRenderingInfo object that is passed to the functions.

isatche

I have NO idea what any of it means, but it seems like a great starting point to begin exploring.
Thank you!

Khris

Right :)

People usually use a TextWindowGUI 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; 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:


SMF spam blocked by CleanTalk