diff options
| author | Japa Illo | 2012-02-27 10:15:44 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-02-27 10:15:44 +0530 |
| commit | 09476326db2b0613e6120fa83146e004b6d92dda (patch) | |
| tree | 6857357eafed9ad5538309066359524748243d85 /ContentLoader.cpp | |
| parent | 19fceb7d4d054dce28c1266b1d0d705dc72bb4f4 (diff) | |
| download | stonesense-09476326db2b0613e6120fa83146e004b6d92dda.tar.gz stonesense-09476326db2b0613e6120fa83146e004b6d92dda.tar.bz2 stonesense-09476326db2b0613e6120fa83146e004b6d92dda.tar.xz | |
Added ability to color sprites according to specific items of clothing
Diffstat (limited to 'ContentLoader.cpp')
| -rw-r--r-- | ContentLoader.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ContentLoader.cpp b/ContentLoader.cpp index 522ab5c..f79483a 100644 --- a/ContentLoader.cpp +++ b/ContentLoader.cpp @@ -767,5 +767,17 @@ ShadeBy getShadeType(const char* Input) return ShadeBuilding;
if( strcmp(Input, "grass") == 0)
return ShadeGrass;
+ if( strcmp(Input, "weapon") == 0)
+ return ShadeWeapon;
+ if( strcmp(Input, "armor") == 0)
+ return ShadeArmor;
+ if( strcmp(Input, "shoes") == 0)
+ return ShadeShoes;
+ if( strcmp(Input, "shield") == 0)
+ return ShadeShield;
+ if( strcmp(Input, "helm") == 0)
+ return ShadeHelm;
+ if( strcmp(Input, "gloves") == 0)
+ return ShadeGloves;
return ShadeNone;
}
\ No newline at end of file |
