示例#1
0
        public formPeta()
        {
            InitializeComponent();
            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0); //btn Lantai 1
            wy.Add(0);
            wx.Add(0); //btn Lantai 2
            wy.Add(0);
            wx.Add(0); //btn Lantai 3
            wy.Add(0);
            wx.Add(0); //Home
            wy.Add(0);

            wx[0] = 250;  //lantai 1
            wy[0] = 350;
            wx[1] = 700;  //lantai 2
            wy[1] = 170;
            wx[2] = 1520; //lantai 3
            wy[2] = 650;
            wx[3] = 1086; //posisi awal btnhome
            wy[3] = 773;

            kendali = new KendaliTombol();
            kendali.TambahTombol(btnHome, new FungsiTombol(TombolHomeTekan));
            kendali.TambahTombol(btnSatu, new FungsiTombol(TombolSatuTekan));
            kendali.TambahTombol(btnDua, new FungsiTombol(TombolDuaTekan));
            kendali.TambahTombol(btnTiga, new FungsiTombol(TombolTigaTekan));

            kendali.Start();
        }
示例#2
0
        public formLantai1()
        {
            InitializeComponent();
            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0); //next
            wy.Add(0);
            wx.Add(0); //prev
            wy.Add(0);
            wx.Add(0); //kembali
            wy.Add(0);

            wx[0] = 1370; //next
            wy[0] = 310;
            wx[1] = 371;  //prev
            wy[1] = 310;
            wx[2] = 1500; //back
            wy[2] = 925;

            kendali = new KendaliTombol();
            kendali.TambahTombol(btnBack, new FungsiTombol(TombolBackTekan));
            kendali.TambahTombol(btnNext2, new FungsiTombol(TombolNextTekan));
            kendali.TambahTombol(btnPrev, new FungsiTombol(TombolPrevTekan));
            kendali.Start();
        }
示例#3
0
        public formUser()
        {
            InitializeComponent();
            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0);
            wy.Add(0);
            wx.Add(0);
            wy.Add(0);
            wx.Add(0);
            wy.Add(0);

            wx[0] = 375;  //lokasi awal btnInformasi 375; 400
            wy[0] = 400;
            wx[1] = 1420; //lokasi awal btnPeta 1420; 400
            wy[1] = 400;
            wx[2] = 884;  //lokasi awal btnBack 884; 940
            wy[2] = 940;

            kendaliuser = new KendaliTombol();
            kendaliuser.TambahTombol(btnInfo, new FungsiTombol(InfoTekan));
            kendaliuser.TambahTombol(btnPeta, new FungsiTombol(PetaTekan));
            kendaliuser.TambahTombol(btnBack, new FungsiTombol(BackTekan));

            kendaliuser.Start();
        }
示例#4
0
        public FormVideo()
        {
            InitializeComponent();
            PopulateViewID();
            kendali = new KendaliTombol();

            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0);
            wy.Add(0);
            wx.Add(0);
            wy.Add(0);
            wx.Add(0);
            wy.Add(0);
            wx.Add(0);
            wy.Add(0);
            wx[0] = 171;
            wy[0] = 333;
            wx[1] = 1690;
            wy[1] = 779;
            wx[2] = 688;
            wy[2] = 836;
            wx[3] = 1134;
            wy[3] = 962;

            kendali.TambahTombol(BtnPrev, new FungsiTombol(TombolPrevTekan));
            kendali.TambahTombol(BtnNext, new FungsiTombol(TombolNextTekan));
            kendali.TambahTombol(BtnPlay, new FungsiTombol(TombolPlayTekan));
            kendali.TambahTombol(BtnBack, new FungsiTombol(TombolBackTekan));
            kendali.Start();
        }
示例#5
0
        public formInformasi()
        {
            InitializeComponent();
            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0); //add btnTentang
            wy.Add(0);
            wx.Add(0); //add btnKegiatan
            wy.Add(0);
            wx.Add(0); //add btnPrestasi
            wy.Add(0);
            wx.Add(0); //add btHome
            wy.Add(0);

            wx[0] = 1520; //posisi awal btnTentang
            wy[0] = 650;
            wx[1] = 200;  //posisi awal btnKegiatan
            wy[1] = 350;
            wx[2] = 700;  //posisi awal btnPrestasi 700; 300
            wy[2] = 170;
            wx[3] = 1086; //posisi awal btnhome 1086; 773
            wy[3] = 773;

            kendali = new KendaliTombol();
            kendali.TambahTombol(btnHome, new FungsiTombol(HomeTekan));
            kendali.TambahTombol(btnKegiatan, new FungsiTombol(KgtnTekan));
            kendali.TambahTombol(btnPrestasi, new FungsiTombol(PrestasiTekan));
            kendali.TambahTombol(btnTentang, new FungsiTombol(TentangTekan));

            kendali.Start();
        }
示例#6
0
        public FormHome()
        {
            InitializeComponent();
            //Menambahkan timer untuk menggerakkan tombol
            TimerTombol.Tick += new System.EventHandler(this.TimerTombol_Tick);
            TimerTombol.Start();

            kendali = new KendaliTombol();

            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0);
            wy.Add(0);
            wx.Add(0);
            wy.Add(0);

            //lokasi awal tiap tombol
            wx[0] = 1592;
            wy[0] = 800;
            wx[1] = 218;
            wy[1] = 427;

            //penambahan eventhandler tiap tombol untuk seleksi objek menggunakan eyetracking
            kendali.TambahTombol(BtnMisi, new FungsiTombol(TombolMisiTekan));
            kendali.TambahTombol(BtnTahu, new FungsiTombol(TombolTahukahKamu));

            //mulai jalankan kelas KendaliTombol
            kendali.Start();
        }
示例#7
0
        public formKegiatan()
        {
            InitializeComponent();

            PopulateViewID();
            PopulateButton();
            LoadContent(nowShowing);

            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0); //add btnPrev
            wy.Add(0);
            wx.Add(0); //add btnNext
            wy.Add(0);
            wx.Add(0); //add btnBack
            wy.Add(0);
            wx.Add(0); //add btnHome
            wy.Add(0);

            wx[0] = 375;  //posisi awal btnPrev 375; 342
            wy[0] = 342;
            wx[1] = 1500; //posisi awal btnNext 1500; 342
            wy[1] = 342;
            wx[2] = 450;  //posisi awal btnBack 450; 670
            wy[2] = 670;
            wx[3] = 1330; //posisi awal btnHome 1330; 970
            wy[3] = 970;

            kendali = new KendaliTombol();
            kendali.TambahTombol(btnBack, new FungsiTombol(TombolBackTekan));
            kendali.TambahTombol(btnHome, new FungsiTombol(TombolHomeTekan));
            kendali.TambahTombol(btnNext, new FungsiTombol(TombolNextTekan));
            kendali.TambahTombol(btnPrev, new FungsiTombol(TombolPrevTekan));
            kendali.Start();
        }
示例#8
0
        public FormPlayVideo()
        {
            InitializeComponent();
            kendali = new KendaliTombol();

            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0);
            wy.Add(0);
            wx[0] = 1725;
            wy[0] = 232;

            kendali.TambahTombol(BtnBack, new FungsiTombol(TombolBackTekan));
            kendali.Start();
        }
示例#9
0
        public formAwal()
        {
            InitializeComponent();

            PopulateViewID();

            kendali = new KendaliTombol();

            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0);
            wy.Add(0);

            wx[0] = 1150; //lokasi awal 900; 830
            wy[0] = 900;

            kendali.TambahTombol(btnUser, new FungsiTombol(TombolUserTekan));

            kendali.Start();
        }
示例#10
0
        public FormTutorial()
        {
            InitializeComponent();
            //inisialisasi variabel interaksi eyetracking
            kendali = new KendaliTombol();
            wx      = new List <double>();
            wy      = new List <double>();
            wx.Add(0);
            wy.Add(0);
            wx.Add(0);
            wy.Add(0);
            wx[0] = 744;
            wy[0] = 807;
            wx[1] = 1704;
            wy[1] = 222;

            //deklarasi eventhandler untuk interaksi eyetracking pada tombol start dan kembali
            kendali.TambahTombol(BtnStart, new FungsiTombol(TombolStartTekan));
            kendali.TambahTombol(BtnBack, new FungsiTombol(TombolBackTekan));
            kendali.Start();
        }
示例#11
0
        public FormStartGame()
        {
            InitializeComponent();
            PlayBGMLoop(); //Play bgm

            wx = new List <double>();
            wy = new List <double>();
            wx.Add(0);
            wy.Add(0);
            wx.Add(0);
            wy.Add(0);

            wx[0] = 372;  //lokasi awal OpsiKiri
            wy[0] = 87;
            wx[1] = 1351; //lokasi awal OpsiKanan
            wy[1] = 635;

            kendaliuser = new KendaliTombol();
            kendaliuser.TambahTombol(PBOpsiKiri, new FungsiTombol(PilihOpsiKiri));
            kendaliuser.TambahTombol(PBOpsiKanan, new FungsiTombol(PilihOpsiKanan));

            kendaliuser.Start();
        }