Skip to content

Commit

Permalink
Tweak behaviour of test buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
iangray001 committed Dec 10, 2023
1 parent 749a5a6 commit 16a2f01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Quiz Server/Quiz Server/ControllerWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ class ControllerWindowController: NSWindowController, NSWindowDelegate, NSTabVie
if testMode {
if (sender.state == NSControl.StateValue.on) {
quizView.buzzerPressed(team: sender.tag, type: .test, buzzcocksMode: buzzcocksMode.state == .on, buzzerQueueMode: buzzerQueueMode.state == .on, quietMode: quieterBuzzes.state == .on)
}
else {
quizView.buzzerReleased(team: sender.tag, type: .test)
quizView.buzzerReleased(team: sender.tag, type: .test)
sender.state = NSControl.StateValue.off
}
}
else {
Expand Down
4 changes: 2 additions & 2 deletions Quiz Server/Quiz Server/TextScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,14 @@ class TextScene: SKScene {
emitters.removeAll()

//Quick dirty test code
teamGuess(teamid: 1, guess: "abc'", roundid: 1, showroundno: true);
/*teamGuess(teamid: 1, guess: "abc'", roundid: 1, showroundno: true);
teamGuess(teamid: 2, guess: "abc!", roundid: 2, showroundno: true);
teamGuess(teamid: 3, guess: "sss", roundid: 3, showroundno: true);
teamGuess(teamid: 4, guess: "sss", roundid: 3, showroundno: true);
teamGuess(teamid: 5, guess: "ddd", roundid: 3, showroundno: true);
teamGuess(teamid: 6, guess: "def", roundid: 3, showroundno: true);
teamGuess(teamid: 7, guess: "xxx", roundid: 4, showroundno: true);
teamGuess(teamid: 8, guess: "abc", roundid: 4, showroundno: true);
teamGuess(teamid: 8, guess: "abc", roundid: 4, showroundno: true);*/
}

}

0 comments on commit 16a2f01

Please sign in to comment.