Esempio n. 1
0
 public UIWorldLoad()
 {
     _progressBar.Top.Pixels = 270f;
     _progressBar.HAlign     = 0.5f;
     _progressBar.VAlign     = 0f;
     _progressBar.Recalculate();
     _progressMessage.CopyStyle(_progressBar);
     _progressMessage.Top.Pixels -= 70f;
     _progressMessage.Recalculate();
     Append(_progressBar);
     Append(_progressMessage);
 }
Esempio n. 2
0
 public UIWorldLoad(GenerationProgress progress)
 {
     _progressBar.Top.Pixels = 370f;
     _progressBar.HAlign     = 0.5f;
     _progressBar.VAlign     = 0.0f;
     _progressBar.Recalculate();
     _progressMessage.CopyStyle(_progressBar);
     _progressMessage.Top.Pixels -= 70f;
     _progressMessage.Recalculate();
     _progress = progress;
     Append(_progressBar);
     Append(_progressMessage);
 }