Permalink
Browse files

loading color changes

  • Loading branch information...
1 parent d4d38fc commit 675f91f9be6db656716197104ab96f9ae705dc0d michael committed Nov 16, 2012
Showing with 9 additions and 2 deletions.
  1. +1 −1 .idea/MICshooter.iml
  2. +1 −1 .idea/misc.xml
  3. +7 −0 sources/progressbar.py
View
2 .idea/MICshooter.iml
@@ -2,7 +2,7 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
- <orderEntry type="jdk" jdkName="Python 2.7.3 (/usr/bin/python)" jdkType="Python SDK" />
+ <orderEntry type="jdk" jdkName="Python 2.7.3 (/usr/bin/python2.7)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
View
2 .idea/misc.xml
@@ -3,6 +3,6 @@
<component name="ProjectResources">
<default-html-doctype>$APPLICATION_HOME_DIR$/lib/pycharm.jar!/resources/html5-schema/html5.rnc</default-html-doctype>
</component>
- <component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7.3 (/usr/bin/python)" project-jdk-type="Python SDK" />
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7.3 (/usr/bin/python2.7)" project-jdk-type="Python SDK" />
</project>
View
7 sources/progressbar.py
@@ -22,3 +22,10 @@ def update(self,percent):
pygame.draw.rect(screen, self.color, (20,self.y1,self.max_width,20), 2 )
pygame.draw.rect(screen, self.color, (20,self.y1,(percent*self.max_width)/100,20), 0)
pygame.display.flip()
+
+ (r,g,b)=self.color
+ r=min(r+2,255)
+ g=max(g-2,0)
+ b=max(b-2,0)
+ self.color=(r,g,b)
+ self.loading = self.font.render("LOADING", True, self.color)

0 comments on commit 675f91f

Please sign in to comment.