Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nerren on Tue 31/12/2024 00:41:22

Title: Double text on custom dialog GUI, how to fix it **SOLVED**?
Post by: Nerren on Tue 31/12/2024 00:41:22
I have a high res game I'm making.  Part of it is a custom textbox GUI and a custom high res font.  I've disabled outline on the font setting.  When dialogs happen (using Sierra with background style), the speech has the large font that I want, but also the generic dialog font showing up very tiny at the top of the box, essentially having 2 instances of the same speech text, looking weird and sloppy.  How do I remove this and just have the normal font size used for everything?

Plain old textboxes are fine, no issue, but speech has this double print as seen in the pic below:

(https://billandnicole.net/doubletext.png)


Any thoughts or assistance is greatly appreciated.

Thanks,

Bill

Title: Re: Double text on custom dialog GUI, how to fix it?
Post by: eri0o on Tue 31/12/2024 01:01:46
Can you share a print screen of this specific font properties?
Title: Re: Double text on custom dialog GUI, how to fix it?
Post by: Nerren on Tue 31/12/2024 01:07:18
Sure, it's below:

(https://billandnicole.net/fontproperties.png)

Thanks,

Bill
Title: Re: Double text on custom dialog GUI, how to fix it?
Post by: eri0o on Tue 31/12/2024 01:35:56
What does TextBox Font means?

AGS uses the font with ID 1 for speech by default, did you set Game.SpeechFont (https://adventuregamestudio.github.io/ags-manual/Game.html#gamespeechfont) ?

This is briefly explained in Setting up the game manual section (https://adventuregamestudio.github.io/ags-manual/Settingupthegame.html?highlight=game.speechfont&case_sensitive=0).

I wonder if having some setting in Game Settings would make it easier if someone only has one speech font in their game - I am used to switching them a lot, which is why I never thought about this before.
Title: Re: Double text on custom dialog GUI, how to fix it?
Post by: Nerren on Tue 31/12/2024 01:47:56
TextBoxFont is just the name of the font I imported to use in the game.  In my globalscript.asc I have this code in there to set the default font for GUI 11 (the custom textbox):

function game_start()
{
  Game.NormalFont = 4;  // Large font for textboxes
 
}

Looks like I missed game.speechfont setting.  I added that in, and it works great!

Thanks for helping point me in the right direction!

Bill