[wesnoth-commits] [wesnoth/wesnoth] 104bfe: [print]: Center the message within the map area
jostephd
noreply at github.com
Tue Oct 15 00:09:28 UTC 2019
Branch: refs/heads/1.14
Home: https://github.com/wesnoth/wesnoth
Commit: 104bfed8b5f1ac9d018bfc7a84b640463b24ea80
https://github.com/wesnoth/wesnoth/commit/104bfed8b5f1ac9d018bfc7a84b640463b24ea80
Author: josteph <josteph at fastmail.com>
Date: 2019-10-15 (Tue, 15 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.
(cherry picked from commit 7c6fbf343c4d4c212ed33717985be0266d28ef3b)
More information about the Commits
mailing list