Move a few more, exclude NoHat and team hats from animation
authornemo
Sun, 04 Sep 2011 17:26:38 -0400
changeset 5779 060d7572f9f6
parent 5778 45fe3fa062b1
child 5780 528dd4a14861
Move a few more, exclude NoHat and team hats from animation
misc/hats_js_anim.xhtml
share/hedgewars/Data/Graphics/Hats/Ladle.png
share/hedgewars/Data/Graphics/Hats/SauceBoatSilver.png
share/hedgewars/Data/Graphics/Hats/Teacup.png
share/hedgewars/Data/Graphics/Hats/Teapot.png
share/hedgewars/Data/Graphics/Hats/dish_Ladle.png
share/hedgewars/Data/Graphics/Hats/dish_SauceBoatSilver.png
share/hedgewars/Data/Graphics/Hats/dish_Teacup.png
share/hedgewars/Data/Graphics/Hats/dish_Teapot.png
--- a/misc/hats_js_anim.xhtml	Sun Sep 04 17:15:09 2011 -0400
+++ b/misc/hats_js_anim.xhtml	Sun Sep 04 17:26:38 2011 -0400
@@ -91,7 +91,9 @@
     var resp = xml.responseText;
     var r = />([^<]*).png</g;
     var x;
-    while(x = r.exec(resp)) masks.push(x[1]);
+    while(x = r.exec(resp)) 
+        if (!/^Team|NoHat/.test(x[1])) // Exclude team coloured ones as repetitive, NoHat one as uninteresting
+            masks.push(x[1]);
 
     var opt = document.createElement("option");
     opt.appendChild(document.createTextNode(""));
Binary file share/hedgewars/Data/Graphics/Hats/Ladle.png has changed
Binary file share/hedgewars/Data/Graphics/Hats/SauceBoatSilver.png has changed
Binary file share/hedgewars/Data/Graphics/Hats/Teacup.png has changed
Binary file share/hedgewars/Data/Graphics/Hats/Teapot.png has changed
Binary file share/hedgewars/Data/Graphics/Hats/dish_Ladle.png has changed
Binary file share/hedgewars/Data/Graphics/Hats/dish_SauceBoatSilver.png has changed
Binary file share/hedgewars/Data/Graphics/Hats/dish_Teacup.png has changed
Binary file share/hedgewars/Data/Graphics/Hats/dish_Teapot.png has changed