示例#1
0
 protected void setWinText()
 {
     if (isFinished())
     {
         winScreen.setDimensions(ClientSize.Width * 2, ClientSize.Height * 2);
         winScreen.setOpacity(200);
         winScreen.setVisibility(true);
         winText.changeLocation(ClientSize.Width / 2 - 175, ClientSize.Height / 2 - 75);
         if (winText.x < 50)
         {
             winText.x = 50;
         }
         winText.fontResize(ClientSize.Width, ClientSize.Height);
         winText.setVisibility(true);
     }
     else
     {
         winScreen.setVisibility(false);
         winText.setVisibility(false);
     }
 }