2022-11-28 11:04:49 +00:00
|
|
|
/**
|
|
|
|
* @file This file provides a screen where the user can edit the settings of their tests
|
|
|
|
* @author Arlo Filley
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class provides all of the necessary settings for the user to be able to edit test settings
|
|
|
|
*/
|
|
|
|
class settingsScreen {
|
|
|
|
constructor() {
|
|
|
|
this.menu = new Menu();
|
|
|
|
this.timeMenu = new TimeMenu();
|
|
|
|
}
|
|
|
|
|
|
|
|
draw() {
|
|
|
|
textAlign(CENTER, CENTER);
|
|
|
|
|
|
|
|
textSize(100);
|
2022-12-01 14:41:14 +00:00
|
|
|
fill(user.colorScheme.text);
|
2023-09-05 08:52:28 +01:00
|
|
|
text("Test Settings", windowWidth / 2, 100);
|
2022-11-28 11:04:49 +00:00
|
|
|
|
|
|
|
this.menu.draw();
|
2023-09-05 08:52:28 +01:00
|
|
|
|
|
|
|
fill(user.colorScheme.text);
|
|
|
|
text("Test Duration", windowWidth / 2 - 250, 265)
|
2022-11-28 11:04:49 +00:00
|
|
|
this.timeMenu.draw();
|
2022-12-01 14:41:14 +00:00
|
|
|
fill("#000");
|
|
|
|
text(`Logged in as ${user.username}`, windowWidth-150, 15);
|
2022-11-28 11:04:49 +00:00
|
|
|
}
|
|
|
|
}
|