Author Topic: Some texts lost  (Read 1503 times)

moosewoler

  • Newbie
  • *
  • Posts: 2
    • View Profile
Some texts lost
« on: August 26, 2014, 07:14:53 pm »
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.


Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: Some texts lost
« Reply #1 on: September 05, 2014, 08:50:56 am »
Hi,
Ok, I will check this problem for the next bug-fix release.

moosewoler

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Some texts lost
« Reply #2 on: September 06, 2014, 08:03:31 pm »
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(),
  }



« Last Edit: September 06, 2014, 08:07:58 pm by moosewoler »

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: Some texts lost
« Reply #3 on: April 29, 2015, 11:37:38 pm »
Fixed in 1.4.