[wesnoth-commits] [wesnoth/wesnoth] 7c6fbf: [print]: Center the message within the map area

jostephd noreply at github.com
Mon Oct 14 23:59:40 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7c6fbf343c4d4c212ed33717985be0266d28ef3b
      https://github.com/wesnoth/wesnoth/commit/7c6fbf343c4d4c212ed33717985be0266d28ef3b
  Author: josteph <josteph at fastmail.com>
  Date:   2019-10-14 (Mon, 14 Oct 2019)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  [print]: Center the message within the map area

In master, this just moves the message down by the height of the top bar.

In themes where the left end of the map isn't at x=0, this makes [print]
centered within the main map, rather than centered within the rectangle
with corners (0,0) and (bottom right corner of the main map), regardless
of where the top and left ends of the map are with respect to the screen.

Currently, the [print] messages are vertically centered, whereas the
"Planning mode activated" message is vertically at one-third of the
height. We should perhaps make these consistent, but this commit
doesn't change that.





More information about the Commits mailing list