public void BootstrapLoginView() { this.timer = new Timer(); Input input = new Input(); InputBox inputBox1 = new InputBox(new Point(Console.WindowWidth / 2, Console.WindowHeight / 2), (int)Math.Floor(Console.WindowWidth / 1.7), (int)Math.Floor(Console.WindowHeight / 1.7) + 1); InputBox inputBox2 = new InputBox(new Point(1, (int)Math.Floor(Console.WindowHeight / 1.4) + 1) , (int)Math.Floor(Console.WindowWidth / 1.08), 4); OutputBox outputBox = new OutputBox(new Point((int)Math.Floor(Console.WindowWidth / 1.45), Console.WindowTop + 1), (int)Math.Floor(Console.WindowWidth / 3.9), (int)Math.Floor(Console.WindowHeight / 1.7) + 1); LoginView loginView = new LoginView(timer, inputBox1, inputBox2, outputBox); BorderController borderController = new BorderController(loginView); OutputBoxController outputBoxController = new OutputBoxController(outputBox); InputBoxController inputBoxController1 = new InputBoxController(inputBox1); InputBoxController inputBoxController2 = new InputBoxController(inputBox2); InputFilter inputFilter = new InputFilter(); LoginDBController fakeDBController = new LoginDBController(this); LoginController loginController = new LoginController(timer, input, loginView, inputBoxController1, inputBoxController2, outputBoxController, borderController, inputFilter, fakeDBController); }
public void BootstrapStudentView(User _user) { this.timer = new Timer(); Input input = new Input(); User user = _user; OutputBox outputBox = new OutputBox(new Point(1, 1), Console.WindowLeft + 70, (int)Math.Floor(Console.WindowHeight / 1.7) + 1); InputBox inputBox = new InputBox(new Point(1, (int)Math.Floor(Console.WindowHeight / 1.4) + 1) , Console.WindowWidth - 8, 4); OutputBoxController outputBoxController = new OutputBoxController(outputBox); InputBoxController inputBoxController = new InputBoxController(inputBox); StudentDBController studentDBController = new StudentDBController(); StudentView studentView = new StudentView(timer, inputBox, outputBox); BorderController borderController = new BorderController(studentView); InputFilter inputFilter = new InputFilter(); QueryCreator queryCreator = new QueryCreator(_user); StudentController studentController = new StudentController(timer, inputFilter, inputBox, outputBox, studentView, input, inputBoxController, outputBoxController, borderController, user, queryCreator, studentDBController ); }
void OnTriggerExit2D(Collider2D other) { if (other.gameObject.tag == "InputBox" && other.gameObject == this.box) { InputBoxController bc = other.gameObject.GetComponent <InputBoxController>(); bc.EmbeddedTile = null; Debug.Log("Setting that box to null"); box = null; } }
public void BootstrapTeacherView(User _user) { User user = _user; this.timer = new Timer(); Input input = new Input(); Taskbar taskbar = new Taskbar(); TaskbarController taskbarController = new TaskbarController(taskbar); OutputBox outputBox1 = new OutputBox(new Point(1, 1), (int)Math.Floor(Console.WindowWidth / 1.7), (int)Math.Floor(Console.WindowHeight / 1.7) + 1); InputBox inputBox = new InputBox(new Point(1, (int)Math.Floor(Console.WindowHeight / 1.4) + 1) , (int)Math.Floor(Console.WindowWidth / 1.08), 4); OutputBox outputBox2 = new OutputBox(new Point((int)Math.Floor(Console.WindowWidth / 1.45), Console.WindowTop + 1), (int)Math.Floor(Console.WindowWidth / 3.9), (int)Math.Floor(Console.WindowHeight / 1.7) + 1); OutputBoxController outputBoxController1 = new OutputBoxController(outputBox1); OutputBoxController outputBoxController2 = new OutputBoxController(outputBox2); InputBoxController inputBoxController = new InputBoxController(inputBox); TeacherDBController teacherDBController = new TeacherDBController(); TeacherView teacherView = new TeacherView(timer, taskbar, inputBox, outputBox1, outputBox2); BorderController borderController = new BorderController(teacherView); InputFilter inputFilter = new InputFilter(); QueryCreator queryCreator = new QueryCreator(_user); TeacherController teacherController = new TeacherController(timer, inputFilter, inputBox, outputBox1, outputBox2, taskbar, input, teacherView, taskbarController, outputBoxController1, outputBoxController2, inputBoxController, borderController, user, queryCreator, teacherDBController); }
private void InputBox_TextChanged(object sender, TextChangedEventArgs e) { InputBoxController.CheckEqual(game); }
// Use this for initialization void Start() { print("Target framerate = " + Application.targetFrameRate); /*#if UNITY_EDITOR * QualitySettings.vSyncCount = 0; // VSync must be disabled * Application.targetFrameRate = 30; #endif*/ initSerial(); state = STATE_COUNTDOWN; CircularSineWaveVis.enabled = false; graphDisplay.enabled = false; blackSprite = GameObject.Find("Black"); inputBox = GameObject.Find("InputWindow"); satellite = GameObject.Find("Satellite"); radar = GameObject.Find("Radar"); lowBatteryIcon = GameObject.Find("LowBatteryIcon"); //satelliteInitialScale = satellite.transform.localScale.x; potReadings = new int[5, samples]; for (int i = 0; i < 5; i++) { for (int j = 0; j < samples; j++) { potReadings [i, j] = 0; } } inputController = inputBox.GetComponent <InputBoxController> (); unlockObject = unlockPanel.GetComponent <UnlockObject> (); radarController = radar.GetComponent <SatSearchBarController> (); messageBoxController = messageBox.GetComponent <MessageBoxController> (); progressBarController = progressBar.GetComponent <ProgressBarController> (); timerController = GameObject.Find("timerText").GetComponent <timer> (); regions = new GameObject[] { GameObject.Find("Australia"), GameObject.Find("Africa"), GameObject.Find("Eurasia"), GameObject.Find("SouthAmerica"), GameObject.Find("NorthAmerica") }; BSM = GameObject.Find("BSM"); AZ = GameObject.Find("AZ"); Y = GameObject.Find("Y"); X = GameObject.Find("X"); PK = GameObject.Find("PK"); GSM = GameObject.Find("GSM"); LTE = GameObject.Find("LTE"); Dish = GameObject.Find("Dish"); Antenna = GameObject.Find("Antenna"); Wifi = GameObject.Find("Wifi"); Sync = GameObject.Find("Синхронизация"); lowPowerWarning = GameObject.Find("OneCoreWarning"); CoreTempText = GameObject.Find("CoreTemp").GetComponent <Text> (); mainCamera.GetComponent <CameraFilterPack_FX_Glitch1> ().enabled = false; mainCamera.GetComponent <CameraFilterPack_TV_BrokenGlass> ().enabled = false; archive.messageBoxController = messageBoxController; regionLabels = new string[] { "All/Все", "Australia\nАвстралия", "Africa\nАфрика", "Eurasia\nЕвразия", "South America\nЮжная Америка", "North America\nСеверная Америка" }; iqLabels = new string[] { "All/Все", "130+", "115-130", "100-115", "85-100", "0-86" }; ageLabels = new string[] { "All/Все", "60+", "40-60", "25-40", "16-25", "0-16" }; black_2 = GameObject.Find("Black_2"); //unlockPanel.GetComponent<videoAnim> ().enabled = false; //unlockPanel.transform.Translate(0f, 500f,0f); lowBatteryIcon.SetActive(false); StartCoroutine("setPanelsInactive", 1.6f); }