Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: lapsking on Fri 27/01/2023 09:15:24

Title: changing dialog options box position and size
Post by: lapsking on Fri 27/01/2023 09:15:24
Hi, I'm using LucasArts style dialog in my game. I read other topics and checked manual but still I have issues.

(https://lapsking.com/wp-content/uploads/2023/01/dialog.jpg)

I made a GUI and set it as dialog GUI in genral settings as you can see at the bottom of the screen. but my dialog options box is locked up in the air and it's too small for my game. I used game.dialog_options_x/y commands:

function game_start()
{
game.dialog_options_x = 15;
game.dialog_options_y = 900;
}

but it's still locked in it's place. And I think dialog options box size is for default resolution and too small for my game resolution and I couldn't figure out how to make it bigger. I would really appreciate any help. Thanks!

EDIT: I moved the dialog options box into GUI with this command:
function dialog_options_get_dimensions(DialogOptionsRenderingInfo *info)
{
  info.X = 0;
  info.Y = 858;
  info.Width = 1920;
  info.Height = 858;
}

Now the position and background size of the dialog box options are fine, but the arrows are in weird positions and still I can't see dialog options texts. I can see the text parser though.

(https://lapsking.com/wp-content/uploads/2023/01/dialog3.jpg)

Why is it so complicated to adjust dialog options with changing resolution! What am I supposed to do now?
Title: Re: changing dialog options box position and size
Post by: eri0o on Fri 27/01/2023 14:45:14
https://adventuregamestudio.github.io/ags-manual/CustomDialogOptions.html#dialog_options_get_dimensions

According to the documentation, once width and height are different than zero, the custom system is activated, but I think if dialog_options_render is not present it will be rendered by the default system still, just with the new positions.



There's a page on the manual with two examples that may be easy to choose one to copy and paste it and experiment with.

https://adventuregamestudio.github.io/ags-manual/CustomDialogOptions.html#example-a-classic-mouse-controls


There is also a module for custom dialog options that can be helpful if you want to play around with the concept in a different interface, with some pre-builts that you can play with.

https://www.adventuregamestudio.co.uk/forums/modules-plugins-tools/module-customdialoggui-1-9/
Title: Re: changing dialog options box position and size
Post by: lapsking on Fri 27/01/2023 18:23:02
Thank you eri0o. I'll check out the links and see what I can learn. It seems issues are solved for now after meddling with CustomDialogGUI script, hope I haven't messed up something else.