Skip to content

Commit

Permalink
Merge pull request #136 from Northeastern-Electric-Racing/removing-sc…
Browse files Browse the repository at this point in the history
…reens

removed unnecessary screens
  • Loading branch information
mattrwang authored Jan 21, 2025
2 parents c044fc9 + 4107605 commit 1bac6c0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions NERODevelopment/content/HomeMenuItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Rectangle {

LabelText {
id: label
padding: 8
font.pixelSize: 12
padding: 10
font.pixelSize: 15
text: parent.text
}
}
42 changes: 21 additions & 21 deletions NERODevelopment/content/NavigationController.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Item {
focus: !navigation.isSelected
property int selectedPageIndex: navigationController.selectedPageIndex
property bool isSelected: navigationController.isSelected
property int exitPageIndex: 8
property int exitPageIndex: 6
property int offPageIndex: 0
property int pitPageIndex: 1
property int speedPageIndex: 2
property int efficiencyPageIndex: 3
property int debugPageIndex: 4
property int configurationPageIndex: 5
property int flappyPageIndex: 6
property int snakePageIndex: 7
// property int debugPageIndex: 4
// property int configurationPageIndex: 5
property int flappyPageIndex: 4
property int snakePageIndex: 5

Keys.onPressed: event => {
console.log(navigationController.isSelected,
Expand Down Expand Up @@ -75,15 +75,15 @@ Item {
text: "Efficiency"
}

HomeMenuItem {
highlighted: selectedPageIndex === debugPageIndex
text: "Debug"
}
// HomeMenuItem {
// highlighted: selectedPageIndex === debugPageIndex
// text: "Debug"
// }

HomeMenuItem {
highlighted: selectedPageIndex === configurationPageIndex
text: "Configuration"
}
// HomeMenuItem {
// highlighted: selectedPageIndex === configurationPageIndex
// text: "Configuration"
// }

HomeMenuItem {
highlighted: selectedPageIndex === flappyPageIndex
Expand Down Expand Up @@ -121,15 +121,15 @@ Item {
focus: selectedPageIndex === efficiencyPageIndex && isSelected
}

DebugTable {
visible: selectedPageIndex === debugPageIndex && isSelected
focus: selectedPageIndex === debugPageIndex && isSelected
}
// DebugTable {
// visible: selectedPageIndex === debugPageIndex && isSelected
// focus: selectedPageIndex === debugPageIndex && isSelected
// }

Configuration {
visible: selectedPageIndex === configurationPageIndex && isSelected
isFocused: selectedPageIndex === configurationPageIndex && isSelected
}
// Configuration {
// visible: selectedPageIndex === configurationPageIndex && isSelected
// isFocused: selectedPageIndex === configurationPageIndex && isSelected
// }

FlappyBird {
visible: selectedPageIndex === flappyPageIndex && isSelected
Expand Down
2 changes: 1 addition & 1 deletion NERODevelopment/src/controllers/flappybirdcontroller.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "flappybirdcontroller.h"

FlappyBirdController::FlappyBirdController(Model *model, QObject *parent)
: ButtonController{model, 6, parent} {
: ButtonController{model, 4, parent} {
this->m_debounceOffset = 150;
}

Expand Down
2 changes: 1 addition & 1 deletion NERODevelopment/src/controllers/snakecontroller.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "snakecontroller.h"

SnakeController::SnakeController(Model *model, QObject *parent)
: ButtonController{model, 7, parent} {}
: ButtonController{model, 5, parent} {}

void SnakeController::handleKeyPress(int key) {
int newDirection = m_currentDirection;
Expand Down

0 comments on commit 1bac6c0

Please sign in to comment.