Show Data Pretest and posttest in Statistic Profile
This commit is contained in:
parent
ef66616d8e
commit
77da2d468e
File diff suppressed because it is too large
Load Diff
|
|
@ -13,9 +13,13 @@ public class ProfileMenu : Menu<ProfileMenu>
|
||||||
[SerializeField] private TextMeshProUGUI passwordPlayer , usernamePlayer;
|
[SerializeField] private TextMeshProUGUI passwordPlayer , usernamePlayer;
|
||||||
[SerializeField] private Image dataKesehatanGigiImage;
|
[SerializeField] private Image dataKesehatanGigiImage;
|
||||||
[SerializeField] private Image dataPenyakitGigiImage;
|
[SerializeField] private Image dataPenyakitGigiImage;
|
||||||
|
[SerializeField] private Image dataPreTestImage;
|
||||||
|
[SerializeField] private Image dataPostTestImage;
|
||||||
|
|
||||||
[SerializeField] private TextMeshProUGUI dataKesehatanGigiText;
|
[SerializeField] private TextMeshProUGUI dataKesehatanGigiText;
|
||||||
[SerializeField] private TextMeshProUGUI dataPenyakitGigiText;
|
[SerializeField] private TextMeshProUGUI dataPenyakitGigiText;
|
||||||
|
[SerializeField] private TextMeshProUGUI dataPreTestText;
|
||||||
|
[SerializeField] private TextMeshProUGUI dataPostTestText;
|
||||||
|
|
||||||
private void OnEnable()
|
private void OnEnable()
|
||||||
{
|
{
|
||||||
|
|
@ -38,13 +42,14 @@ public class ProfileMenu : Menu<ProfileMenu>
|
||||||
usernamePlayer.text = "Username = " + CryptoUtility.Decrypt(saveData.username);
|
usernamePlayer.text = "Username = " + CryptoUtility.Decrypt(saveData.username);
|
||||||
dataKesehatanGigiImage.fillAmount = (float)saveData.kesehatanGigiStatistik / 100f;
|
dataKesehatanGigiImage.fillAmount = (float)saveData.kesehatanGigiStatistik / 100f;
|
||||||
dataPenyakitGigiImage.fillAmount = (float)saveData.PenyakitGigiStatistik / 100f;
|
dataPenyakitGigiImage.fillAmount = (float)saveData.PenyakitGigiStatistik / 100f;
|
||||||
|
|
||||||
dataKesehatanGigiText.text = saveData.kesehatanGigiStatistik.ToString("F1");
|
dataKesehatanGigiText.text = saveData.kesehatanGigiStatistik.ToString("F1");
|
||||||
dataPenyakitGigiText.text = saveData.PenyakitGigiStatistik.ToString("F1");
|
dataPenyakitGigiText.text = saveData.PenyakitGigiStatistik.ToString("F1");
|
||||||
|
dataPreTestImage.fillAmount = saveData.preTestStatistik /100;
|
||||||
|
dataPostTestImage.fillAmount = saveData.postTestStatistik / 100f;
|
||||||
|
dataPreTestText.text = saveData.preTestStatistik.ToString("F1");
|
||||||
|
dataPostTestText.text = saveData.postTestStatistik.ToString("F1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public override void OnBackPressed()
|
public override void OnBackPressed()
|
||||||
{
|
{
|
||||||
audioController.Instance.PlaySFX("TombolClose", 0.5f);
|
audioController.Instance.PlaySFX("TombolClose", 0.5f);
|
||||||
|
|
@ -54,7 +59,6 @@ public class ProfileMenu : Menu<ProfileMenu>
|
||||||
public void ProfileShowButton()
|
public void ProfileShowButton()
|
||||||
{
|
{
|
||||||
audioController.Instance.PlaySFX("TombolUmum", 0.5f);
|
audioController.Instance.PlaySFX("TombolUmum", 0.5f);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LogoutButton()
|
public void LogoutButton()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue