Some texts lost

Started by moosewoler, August 26, 2014, 07:14:53 PM

Previous topic - Next topic
solarus : v1.2
zsdx: v1.8
os : debian wheezy

As shown in the figure

the bottom buttons lost their caption.

when switching to French, all things looks nice.


by tracing the script, text has already assigned to drawable object, and could be accessed by get_text() method except for drawing to surface.


Hi,
Ok, I will check this problem for the next bug-fix release.

September 06, 2014, 08:03:31 PM #2 Last Edit: September 06, 2014, 08:07:58 PM by moosewoler
I've figured out the problem. The font of bottom button was not been set properly.

in data/menus/savegames.lua, function savegame_menu:on_started(), set font property when creating option1_text and optino2_text will fix the problem.

  -- self.option1_text = sol.text_surface.create()
  self.option1_text = sol.text_surface.create{
      font = sol.language.get_menu_font(),
  }
  -- self.option2_text = sol.text_surface.create()
  self.option2_text = sol.text_surface.create{
      font = sol.language.get_menu_font(),
  }