mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08:50 +01:00
commit
bab99ffbc5
@ -302,7 +302,7 @@ class UpdatePage(Page):
|
|||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
else:
|
else:
|
||||||
self._Screen.Draw()
|
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._MsgBox.Draw()
|
||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
pygame.time.delay(765)
|
pygame.time.delay(765)
|
||||||
|
|||||||
@ -83,7 +83,7 @@ class MessageBox(Label):
|
|||||||
padding = 5
|
padding = 5
|
||||||
x = (self._Parent._Width - self._Width)/2
|
x = (self._Parent._Width - self._Width)/2
|
||||||
y = (self._Parent._Height - self._Height)/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))
|
pygame.draw.rect(self._HWND,(255,255,255),(x-padding,y-padding, self._Width+padding*2,self._Height+padding*2))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user