Drawshield-Code
Drawshield-Code copied to clipboard
Charge Orientation re-work
Implement the following:
As part of their metadata, charges have an "aspect", with values of "landscape" or "portrait". This can be specified explicitly in extradata.inc, or be calculated. $aspect = $height > $width ? "portrait" : "landscape";
Charges also have a "facing" direction, with values "left", "right", "up", "down" or "none". This can be specified explicitly, or have the default value "left".
At least some of the combinations are to be implemented as shown below:
These metadata items will also be used to determine whether (and how) charges are oriented in line with any ordinaries that they are placed "on".
More details to follow.