implemented first version of carrier network internet update confirmation dialog
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user