implemented first version of carrier network internet update confirmation dialog

This commit is contained in:
2018-08-25 03:12:37 +02:00
parent 9d7d0c38d6
commit 18fd0c6969
2 changed files with 535 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ namespace RothenburgAR.Updater
public class UpdaterBehaviour : MonoBehaviour
{
public UnityEngine.UI.Slider ProgressBar;
public GameObject UpdateConfirmationDialog;
private float afterDownloadWaitTime = 300f;
@@ -70,7 +71,7 @@ namespace RothenburgAR.Updater
}
else
{
// TODO ask for user permission to perform update
UpdateConfirmationDialog.SetActive(true);
}
};
}
@@ -100,7 +101,7 @@ namespace RothenburgAR.Updater
return result;
}
private void TriggerUpdate()
public void TriggerUpdate()
{
// TODO create centralized network error feedback hub thing
/*
@@ -122,6 +123,8 @@ namespace RothenburgAR.Updater
* ...
*/
UpdateConfirmationDialog.SetActive(false);
//TODO write languages to file the app can read
var updatedMeta = VersionAnswer.data.Where(d => d.Meta.Status == VersionStatus.updated).ToList();
@@ -236,7 +239,7 @@ namespace RothenburgAR.Updater
}
private DateTime downloadEndedTime = DateTime.Now.AddSeconds(1);
void Update()
{
if (httpHandlers.Count > 0)