This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# 1. Place this in the /android/assets/images directory | |
# 2. chmod 755 DeclareTextureRegions.sh to make it executable | |
# 3. ./DeclareTextureRegions | |
# 4. Enter the directory you wish to generate statements for e.g. (pg03) | |
# 5. A file will be created in that images folder that contains statements for those png files. | |
echo "enter the path containg the images: " | |
read path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by anthony on 6/19/14. | |
* | |
* Instansiate this class with a string (The icon name you want to convert) then call getIconTextCode() | |
* on that instantiation to return the appropriate character for that forecast IO icon, utilized in the ttf font file. | |
* | |
* Icons: http://www.alessioatzeni.com/meteocons/ | |
* Forecast IO lib: https://github.com/dvdme/forecastio-lib-java | |
* | |
* This was made assumming you are using the meteo .ttf and not the actual icons. |
NewerOlder