//eventhandler tombol Tahukah kamu menggunakan interaksi eyetracking private void TombolTahukahKamu(ArgumenKendaliTombol eawal) { if (eawal.CekMata) { PresenceCheck.Visible = true; } if (eawal.status) { FormTutorial FormGame = FormTutorial.getInstance(); FormGame.Show(); this.Hide(); TimerTombol.Stop(); TimerTombol.Tick -= TimerTombol_Tick; } BtnTahu.BackColor = Color.FromArgb(eawal.DataKor, 0, 150, 185); progressBar2.Value = eawal.DataKor; }
//eventhandler tombol Misi menggunakan interaksi eyetracking private void TombolMisiTekan(ArgumenKendaliTombol eawal) { PresenceCheck.Visible = false; if (eawal.CekMata) { PresenceCheck.Visible = true; } if (eawal.status) { FormTutorial FormGame = FormTutorial.getInstance(); FormGame.Show(); this.Hide(); TimerTombol.Stop(); TimerTombol.Tick -= TimerTombol_Tick; } BtnMisi.BackColor = Color.FromArgb(eawal.DataKor, 0, 150, 185); //untuk opacity progressBar1.Value = eawal.DataKor; //untuk progressbar }