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); }
private void swapView() { pannelActive = !pannelActive; settingsPannel.Left.Precent += (pannelActive ? -2f : 2f); settingsPannel.Recalculate(); startIcon.Left.Precent += (!pannelActive ? -2f : 2f); startIcon.Recalculate(); if (pbar != null) { pbar.Left.Precent += (pannelActive ? 2f : -2f);; pbar.Recalculate(); } if (pmes != null) { pmes.Left.Precent += (pannelActive ? 2f : -2f);; pmes.Recalculate(); } }