Skip to content
This repository
Browse code

loading color changes

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

0 notes on commit 675f91f

Please sign in to comment.
Something went wrong with that request. Please try again.