Upwards Dialog Options Problem

Started by Stew, Tue 11/02/2014 11:25:06

Previous topic - Next topic

Stew

Hi everyone,
I created a GUI and used it for dialog options. It's an ordinary GUI.
Then I wrote in function game_start() the following code:
game.dialog_options_x = 16;
game.dialog_options_y = 114;

(game resolution is 320x200)

It works perfectly... but only if the option "print dialog options upwards" is set to false!

I'd like to print my dialog options upwards, so I turned that option to true... and the Dialog options doesn't work anymore!
if I turn that option to true again, the dialog works!

I can't figur out what was wrong!!

Thank you.

Stew

Sorry to write twice... Does No one know how to solve it?

mitlark

I've tested it, and here is the deal. game.dialog_options_x and game.dialog_options_y are offsets for the options positioning. When "print dialog options upwards" is true, giving 114 as the Y, the resulting Y will be whatever Y position the dialog options gets by default PLUS 114. Meaning that in most cases the options will be offscreen.

I gave game.dialog_options_y a value of -114, and the options appeared somewhere near to the middle of the screen.

So I suggest you try out repositioning your dialog options by using negative numbers.
SPIN SPIN! SPIN SPIN!

Khris

Stew:
If I'm reading the manual correctly, those coordinates are for offsetting text within the GUI, not for positioning the GUI itself.

(And if you're looking for timely replies, try describing the problem instead simply saying "doesn't work anymore" :))

Stew

Hi Khris and mitlark.
Thank you for your answers.

I used negative values and the dialog options appeared!
Before doing that, it simply didn't display any dialog option.
Now, I'm trying to figure out a relation between those negative values and the position I want for dialog options.

So I can consider it solved. Anyway I'll write again once I find a relation between values and position.

Thanks.

SMF spam blocked by CleanTalk