URL:
<http://gna.org/bugs/?12067>
Summary: Add ability to specify a rectangular subset of a
image using WML path
Project: Battle for Wesnoth
Submitted by: jetryl
Submitted on: Tuesday 07/22/2008 at 18:39
Category: Feature Request
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.5.x
Operating System: any
_______________________________________________________
Details:
In much the same way that we've got ~FL(horiz) to flip images in WML, I'd
like to have the ability to only grab a small section of them. The purpose
of this is to be able to store multiple, related images in the same image.
As an example of an image this would be used with (and which can be used as a
test case):
/trunk/data/core/images/misc/tod-schedule-24hrs.png
Suggested syntax is:
~SECTION(X,Y,W,H)
X = x coordinate of section's topleft corner. Y = similar. W = width of
section. H = height of section (A la SDL_Rect). Of course, feel free to
make X,Y signify any other coordinate-system polarity if it's easier to
implement that way.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?12067>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs