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

                 Summary: Allow specific control of the current differences
between [frame] and [xxx_frame]
                 Project: Battle for Wesnoth
            Submitted by: elvish_pillager
            Submitted on: Thursday 08/05/2010 at 16:52
                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: 1.8.3
        Operating System: Ubuntu

    _______________________________________________________

Details:

currently, in an animation, a [frame] image is automatically recolored based
on poison and petrification, while an [xxx_frame] is not, and an [xxx_frame]
is automatically flipped vertically based on facing, while a [frame] is not.
It would be nice to parameterize these things.

The simplest way would be to make a "treat_as_unit" attribute in each frame
which would control all the distinctions at once. This would mostly serve my
immediate purpose of constructing a standing animation out of multiple
mainline images.

Incidentally, one thing you _couldn't_ control per-frame is which frame the
orbs/status-bars are drawn relative to (since then you could end up with
multiple status bars). However, it seems wrong that the status bars are ever
drawn differently because of x= and y= offsets of the [frame] in the first
place.

It would be nicer to control things individually. I'm imagining the following
keys:
"recolor_for_unit_status" (default to true for [frame], false for
[xxx_frame])
"flip_vertically_by_facing" (default to false for [frame], true for
[xxx_frame])
"flip_horizontally_by_facing" (default to true for both...)

Speaking of horizontal flipping: If I want to draw an image relative to a
certain part of the base image, I currently have to make two/four separate
animations (or an [if]/[else] block), because x= and y= are in absolute
coordinates, not flipped when the unit image is flipped because of its
facing. It would be helpful to have separate attributes, perhaps
"x_directional" and "y_directional" (names I currently use in my own Lua
code's internal processing) which would shift the image to the right/down if
the image is not flipped vertically/horizontally, and left/up if the image is
flipped in that direction.




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to