URL:
  <http://gna.org/bugs/?20435>

                 Summary: New drawing logic for maps in title and story
screens
                 Project: Battle for Wesnoth
            Submitted by: zookeeper
            Submitted on: Mon 14 Jan 2013 10:55:23 AM GMT
                Category: Feature Request
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Graphics
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: trunk
        Operating System: all

    _______________________________________________________

Details:

Scaling maps to fill the screen is ugly, so the new maps
<http://forums.wesnoth.org/viewtopic.php?f=18&t=38186> feature a tileable
background on which they may be drawn to eliminate the need for scaling the
map itself in most cases. Some engine support is needed to make it work,
though.

This is how the maps are intended to be drawn, both in the title screen as
well as story screens:

Background:

1. Scaled (preserving aspect ratio) so that it fills the window in the
vertical dimension.
2. Centered horizontally.
3. Tiled horizontally to both left and right, if window width is greater than
the image width after the scaling done in step 1.

Map:

1. Downscaled (preserving aspect ratio) so that it fills the window in the
vertical dimension, if the image height is greater than the window height.
2. If the window height exceeds 1440px, the map should be upscaled by
multiplying its dimensions by (windowheight / 1440).
3. Centered both horizontally and vertically.

I have no specific suggestion for how this should be implemented WML-wise. One
possibility might be to add all the required functionality to [part] and
[image], and then allow the title screen to be defined using those same tags.

For testing purposes, the background image can be found at
https://dl.dropbox.com/u/63964618/wesnoth/maps/wood_final.png




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20435>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to