small cleanup on the animation expansion patch

This commit is contained in:
Jérémy Rosen 2013-01-27 12:43:27 +00:00
parent 5662cbcc38
commit 27f11c3c49
3 changed files with 6 additions and 7 deletions

View file

@ -8,7 +8,6 @@
[standing_anim]
start_time=0
[frame]
duration=150
image="units/wose-shaman.png"
halo="halo/wose-stationary-halo[1-8].png:150"
[/frame]

View file

@ -44,7 +44,7 @@ Full paladins are generally not quite as fearsome as the Grand Knights tha
begin=-300
end=300
image="units/human-loyalists/paladin-healing.png"
halo=halo/holy/halo6.png,halo/holy/halo1.png,halo/holy/halo2.png,halo/holy/halo3.png,halo/holy/halo4.png,halo/holy/halo5.png,halo/holy/halo6.png
halo=halo/holy/halo[6,1-6].png
[/frame]
[/healing_anim]
[attack]

View file

@ -88,15 +88,15 @@ std::vector< std::string > parenthetical_split(std::string const &val,
* This is useful to expand animation WML code.
* Examples:
* square_parenthetical_split("a[1-3](1,[5,6,7]),b[8,9]",",") should return
* "a1(1,5)","a2(1,6)","a3(1,7)","b8","b9"
* <"a1(1,5)","a2(1,6)","a3(1,7)","b8","b9">
* square_parenthetical_split("abc[07-10]") should return
* "abc07,abc08,abc09,abc10"
* <"abc07","abc08","abc09","abc10">
* square_parenthetical_split("a[1,2]b[3-4]:c[5,6]") should return
* "a1b3:c5,a2b4:c6"
* <"a1b3:c5","a2b4:c6">
* square_parenthetical_split("abc[3,1].png") should return
* "abc3.png,abc2.png,abc1.png"
* <"abc3.png","abc2.png","abc1.png">
* square_parenthetical_split("abc[de,xyz]") should return
* "abcde,abcxyz"
* <"abcde","abcxyz">
*/
std::vector< std::string > square_parenthetical_split(std::string const &val,
const char separator = ',' , std::string const &left="([",