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); }
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); }