GameSettingsViewController
class GameSettingsViewController : UIViewControllerAdd sample doc for GameSetitngs
- 
                  
                  Profile Picker View DeclarationSwift @IBOutlet weak var profileBox: UITextField!
- 
                  
                  Music Track Picker DeclarationSwift @IBOutlet weak var musicTrackPicker: UIButton!
- 
                  
                  Beep Noise Declaration DeclarationSwift let countBeepPicker: UIPickerView
- 
                  
                  Beep Count DeclarationSwift @IBOutlet weak var beepCountSlider: UISlider!
- 
                  
                  Cane Legnth DeclarationSwift @IBOutlet weak var caneLengthSlider: UISlider!
- 
                  
                  Sweep Range DeclarationSwift @IBOutlet weak var sweepRangeSlider: UISlider!
- 
                  
                  Save button DeclarationSwift @IBOutlet weak var editSaveButton: UIButton!
- 
                  
                  Database of user information DeclarationSwift var dbInterface: <<error type>>
- 
                  
                  This function runs when the user selects the Create Profileoption. It will- Open an alert to request the name of the profile
- When a name is entered, save the name with default settings in the database
- Reset the loaded name and options to the newly entered name
- Reload the pickerview to update the name and options
 DeclarationSwift @IBAction func newProfilePressed(_ sender: UIButton)ParameterssenderThe UI button itself 
- 
                  
                  This function runs when the user elects to change the song. DeclarationSwift @IBAction func chooseMusictrack(_ sender: Any)ParameterssenderThe UI button itself 
- 
                  
                  This function runs when the user changes the beep count slider. It will change the text on the screen and global variables to reflect the new value. DeclarationSwift @IBAction func beepCountChanged(_ sender: UISlider)ParameterssenderThe UI Slider itself 
- 
                  
                  This function runs when the user changes the sweep range slider. It will change the text on the screen and global variables to reflect the new value. DeclarationSwift @IBAction func sweepRangeChanged(_ sender: UISlider)ParameterssenderThe UI Slider itself 
- 
                  
                  This function runs when the user changes the can length slider. It will change the text on the screen and global variables to reflect the new value. DeclarationSwift @IBAction func caneLengthChanged(_ sender: UISlider)ParameterssenderThe UI Slider itself 
- 
                  
                  This function will disable and grey out all the user options on the screen DeclarationSwift func changeOptions(b: Bool)Parametersbboolean whether or not to enable the options 
- 
                  
                  This function will use the global variable selectedProfileto load a relevant settings for the selected user and update the UIDeclarationSwift func loadOptions()
- 
                  
                  This function runs when the user selects the edit/save button. - If the button current says edit, it will ungrey and enable all the options
- If the button says save, it will grey the boxes and save their current value in the database 
 DeclarationSwift @IBAction func touchEditSave(_ sender: UIButton)ParameterssenderThe UI button itself 
- 
                  
                  This function runs when the the view loads (duh). It will - Load the superview
- Load the side menu
- Populate the potential profiles
- Populate the beeps
- Disable the current options
- Load the current user and their options
 DeclarationSwift override func viewDidLoad()ParameterssenderThe UI Slider itself 
- 
                  
                  Defines a toolbar that enables you to pick from options and exit by selecting a done key DeclarationSwift func createToolbar()
- 
                  
                  When song is selected, save the data in the appropriate global variables. DeclarationSwift func mediaPicker(_ mediaPicker: MPMediaPickerController, didPickMediaItems mediaItemCollection: MPMediaItemCollection)
- 
                  
                  return the number of options in the appropriate picker view DeclarationSwift func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int
- 
                  
                  return the selected option from the right view DeclarationSwift func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String?
- 
                  
                  Load the appropriate data whenever you mouse over a row DeclarationSwift func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)
 GameSettingsViewController Class Reference
        GameSettingsViewController Class Reference