bugBattle for Wesnoth - Bugs: bug #20435, New drawing logic for maps in...

 
 
Show feedback again

bug #20435: New drawing logic for maps in title and story screens

Submitted by:  Lari Nieminen <zookeeper>
Submitted on:  Mon 14 Jan 2013 10:55:23 AM UTC  
 
Category: Feature RequestSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Graphics
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Release: trunkOperating System: all

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 26 Mar 2013 02:29:36 PM UTC, comment #2:

Completely done for 1.11.2 according to lipkab on IRC.

Ignacio R. Morelle <shadowmaster>
Project Administrator
Mon 21 Jan 2013 08:59:26 AM UTC, SVN revision 56113:

New scaling and tiling options for story screens. Partially implements bug #20435

(Browse SVN revision 56113)

B. Lipka <lipk>
Project Member
Mon 14 Jan 2013 10:55:23 AM UTC, original submission:

Scaling maps to fill the screen is ugly, so the new maps 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

Lari Nieminen <zookeeper>
Project Member

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by shadowmaster (Posted a comment)
  • -unavailable- added by lipk (Updated the item)
  • -unavailable- added by zookeeper (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 26 Mar 2013 02:29:36 PM UTCshadowmasterOpen/ClosedOpen=>Closed
    Mon 18 Mar 2013 11:45:08 AM UTClipkStatusNone=>Fixed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup