Spacing top of GUI / Font changes.

Started by CobraKaun, Sat 26/06/2004 05:54:15

Previous topic - Next topic

CobraKaun

Ok, forgive me if this has been answered before, but I have been searching through topics and can't find any answers.

Basically I have created a custom dialog GUI where it just pops up a black box on the bottom of the screen for the dialog options to appear. However, I want to have a border around it, but the options appear directly at the top of the GUI and it doesn't display any of my graphics.... it's just all black.

Is there a way to push down the dialog options from the top of the GUI a little? How do I display graphics in this GUI?

Also, is there anyway I can change the font just in the GUI?

Ohh... and is there any way I can make it stretch up from the bottom of the screen only the amount of room it needs for the current amount of selections? (ie. box would be bigger for 3 option than it would be for 2)...

Thanks in advance for your replies and a1dvice.

Goot

I don't think there's a very simple way to do this. You could make a separate GUI for the top border, and put it above the one that the text is being displayed on. As for the font changing, I'm not sure of an easy way. You could go into creating your own GUI buttons for the dialog options with the text as a picture or maybe there's a function for changing game text. Look it up in the help section. For your question about stretching the GUI. Make an integer for the number of dialog options available, which is altered when you enable and disable them. Have different GUI's for different amounts, and there should be a way to change the GUI that dialog options are displayed on. If that doesn't work, maybe you can make move the GUI's position so it's top is where the options start and it's bottom is off the bottom of the screen. Maybe you could also display the dialog options on an invisible GUI and have the black area behind it be set. These are just suggestions, and I'm not sure if any will work. Just play around with them and try to get something to work.

CobraKaun

Thanks for the reply, actually, that did help, though I havn't tested it yet.
I think you've got a good idea there with creating another GUI around it. I can make 4 extra GUI's, one for each side, with graphics.... and just have them appear via the script whenever the dialog is started and stopped.

It may work, who knows.... I'll just have to try it to see I suppose. =)

Thanks again for your reply.

strazer

#3
QuoteIs there a way to push down the dialog options from the top of the GUI a little?

Use the game.dialog_options_x and game.dialog_options_y variables.

QuoteHow do I display graphics in this GUI?

I think the dialog options background is black, no matter what graphic you set for the GUI.
Just choose a background image for your custom dialog options GUI.
Depending on what you want to do, you could experiment with dialog bullets. They are displayed next to each dialog option. Go to Dialogs and press the "No dialog bullet point" button.

QuoteAlso, is there anyway I can change the font just in the GUI?

As far as I know, no, dialog options use the normal font.

QuoteOhh... and is there any way I can make it stretch up from the bottom of the screen only the amount of room it needs for the current amount of selections?

Check "Dialog options go upwards on GUI" in General Settings.
Not with a custom GUI I think.

CobraKaun

Thanks for your reply.

QuoteUse the game.dialog_options_x and game.dialog_options_y variables.

What I mean by push it down from the top though is not the actual GUI box, but the text that displays in the GUI not the actual GUI itself. Right now the options start at the very top pixel of the GUI, but it makes it looks like it's too close to edge and too close to the game, what I want to do is push the GUI options down into the box some.

Scorpiorus

Yep, but that's what the game.dialog_options_x and game.dialog_options_y variables do, as Strazer said ;)

Try:

on game start:

game.dialog_options_x = 10;
game.dialog_options_y = 10;

CobraKaun

Ooooooh, ok, sorry about that. =)

Thanks alot.

SMF spam blocked by CleanTalk