Merge pull request #6 from cuu/master

change text of up to date
This commit is contained in:
clockworkpi 2018-05-27 23:38:14 +08:00 committed by GitHub
commit bab99ffbc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ class UpdatePage(Page):
self._Screen.SwapAndShow()
else:
self._Screen.Draw()
self._Screen._MsgBox.SetText("Out of update")
self._Screen._MsgBox.SetText("Launcher is up to date")
self._Screen._MsgBox.Draw()
self._Screen.SwapAndShow()
pygame.time.delay(765)

View File

@ -83,7 +83,7 @@ class MessageBox(Label):
padding = 5
x = (self._Parent._Width - self._Width)/2
y = (self._Parent._Height - self._Height)/2
print("x %d y %d w %d h %d" %(x,y,self._Width,self._Height ))
# print("x %d y %d w %d h %d" %(x,y,self._Width,self._Height ))
pygame.draw.rect(self._HWND,(255,255,255),(x-padding,y-padding, self._Width+padding*2,self._Height+padding*2))