Solarus-Games English Forum

Solarus => Development => Topic started by: NoIE on December 16, 2015, 09:52:37 PM

Title: [Solved]I want change the font size
Post by: NoIE on December 16, 2015, 09:52:37 PM
Hello,

I open sample_quest > frrse map, NPC of map have "Show a dialog" property.

I want change font size of the text. I guess sol have a default text_surface, right?
Title: Re: I want change the font size
Post by: Christopho on December 16, 2015, 10:01:16 PM
The font size, and all the look of the dialog box, is set by the dialog script. When there is no dialog script, like in the sample quest, there is a default dialog box but it is configurable.
Check the tutorial about dialogs.
Title: Re: I want change the font size
Post by: NoIE on December 17, 2015, 11:47:04 AM
Hello,

I watch video "Solarus game creation tutorial - Part 5: Save the game", but  I can't find "dialog_box.lua".

"https://github.com/Bertram25/ChildrenOfSolarus/tree/master/data/menus" have a dialog_box.lua, but different with Solarus game creation tutorial - Part 5: Save the game.

When I use this dialog_box.lua, it have error "Error: in on_started: [string "scripts/dialog_box.lua"]:50: attempt to index local 'game' (a string value).

I will carefully read dialog_box.lua.
Title: Re: I want change the font size
Post by: MetalZelda on December 17, 2015, 12:01:44 PM
You can take dialog_box.lua from Mystery of Solarus or the video tutorial and modify it for your own use. If you wanna make a open source game with free ressources, then you just have to change the sound and the font from the script.
Title: Re: I want change the font size
Post by: NoIE on December 18, 2015, 10:51:01 AM
Thank you!

I'm trying to make a dialog system my myself.