Author Topic: Little doc error  (Read 3901 times)

0 Members and 1 Guest are viewing this topic.

linky

  • Newbie
  • *
  • Posts: 20
    • View Profile
Little doc error
« on: July 29, 2014, 05:56:31 PM »
Hello,

I'm not sure, but i think there is a very little mistake in this page of the documentation (a "coquille" as you say in french) :

http://www.solarus-games.org/doc/latest/lua_api_text_surface.html

when describing the first function :

sol.text_surface.create([properties]):

the name of the optional properties are written in french instead of the real name of the properties which are spelled in english :

horizontal_alignement    instead of    horizontal_alignment
vertical_alignement        instead of    vertical_alignment

I have copied them directly on this page without thinking, to use them in my code, but then got an error by the engine and realized the mistake. But it is ok in the Table of contents to the right. Not very important of course, but could mislead some newcomers like me.

Thanks

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1194
    • View Profile
Re: Little doc error
« Reply #1 on: July 29, 2014, 06:09:43 PM »
Fixed, thanks!

linky

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Little doc error
« Reply #2 on: August 01, 2014, 04:37:50 PM »
Hi,

I found a little other one:

http://www.solarus-games.org/doc/latest/lua_api_map.html#lua_api_map_methods

for wall entity:

1) map:create_wall(properties)
the first link (in yellow on the picture) goes to:

http://www.solarus-games.org/doc/latest/lua_api_switch.html
instead of
http://www.solarus-games.org/doc/latest/lua_api_wall.html

as indicated by the second link at the end (return value (wall)) that seems more logic.

2) the last property is again "stops_blocks" (already used above) instead of the new property "stops_projectiles".

Thanks

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1194
    • View Profile
Re: Little doc error
« Reply #3 on: August 01, 2014, 05:09:19 PM »
Fixed in the git version, thanks again.