Author Topic: [Solved]I want change the font size  (Read 1838 times)

NoIE

  • Newbie
  • *
  • Posts: 7
    • View Profile
[Solved]I want change the font size
« 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?
« Last Edit: December 18, 2015, 10:51:31 am by NoIE »

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1185
    • View Profile
Re: I want change the font size
« Reply #1 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.

NoIE

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: I want change the font size
« Reply #2 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.

MetalZelda

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
Re: I want change the font size
« Reply #3 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.

NoIE

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: I want change the font size
« Reply #4 on: December 18, 2015, 10:51:01 am »
Thank you!

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