defaultPreferences.cs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2013 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. /// Game
  23. $Game::CompanyName = "GarageGames LLC";
  24. $Game::ProductName = "Torque 2D Sandbox";
  25. // Sandbox.
  26. $pref::Sandbox::defaultToyId = "TruckToy";
  27. $pref::Sandbox::defaultToyVersionId = 1;
  28. $pref::Sandbox::defaultBackgroundColor = "Black";
  29. $pref::Sandbox::metricsOption = false;
  30. $pref::Sandbox::fpsmetricsOption = true;
  31. $pref::Sandbox::controllersOption = false;
  32. $pref::Sandbox::jointsOption = false;
  33. $pref::Sandbox::wireframeOption = false;
  34. $pref::Sandbox::aabbOption = false;
  35. $pref::Sandbox::oobbOption = false;
  36. $pref::Sandbox::sleepOption = false;
  37. $pref::Sandbox::collisionOption = false;
  38. $pref::Sandbox::positionOption = false;
  39. $pref::Sandbox::sortOption = false;
  40. $pref::Sandbox::cameraMouseZoomRate = 0.1;
  41. $pref::Sandbox::cameraTouchZoomRate = 0.001;
  42. /// iOS
  43. $pref::iOS::ScreenOrientation = $iOS::constant::Landscape;
  44. $pref::iOS::ScreenDepth = 32;
  45. $pref::iOS::UseGameKit = 0;
  46. $pref::iOS::UseMusic = 0;
  47. $pref::iOS::UseMoviePlayer = 0;
  48. $pref::iOS::UseAutoRotate = 1;
  49. $pref::iOS::EnableOrientationRotation = 1;
  50. $pref::iOS::EnableOtherOrientationRotation = 1;
  51. $pref::iOS::StatusBarType = 0;
  52. /// Audio
  53. $pref::Audio::driver = "OpenAL";
  54. $pref::Audio::forceMaxDistanceUpdate = 0;
  55. $pref::Audio::environmentEnabled = 0;
  56. $pref::Audio::masterVolume = 1.0;
  57. $pref::Audio::channelVolume1 = 1.0;
  58. $pref::Audio::channelVolume2 = 1.0;
  59. $pref::Audio::channelVolume3 = 1.0;
  60. $pref::Audio::sfxVolume = 1.0;
  61. $pref::Audio::musicVolume = 1.0;
  62. /// T2D
  63. $pref::T2D::ParticlePlayerEmissionRateScale = 1.0;
  64. $pref::T2D::ParticlePlayerSizeScale = 1.0;
  65. $pref::T2D::ParticlePlayerForceScale = 1.0;
  66. $pref::T2D::warnFileDeprecated = 1;
  67. $pref::T2D::warnSceneOccupancy = 1;
  68. /// Video
  69. $pref::Video::appliedPref = 0;
  70. $pref::Video::disableVerticalSync = 1;
  71. $pref::Video::displayDevice = "OpenGL";
  72. $pref::Video::preferOpenGL = 1;
  73. $pref::Video::fullScreen = 0;
  74. $pref::Video::defaultResolution = "1024 768";
  75. $pref::Video::windowedRes = "1024 768 32";
  76. $pref::OpenGL::gammaCorrection = 0.5;
  77. /// Fonts.
  78. $Gui::fontCacheDirectory = expandPath( "^Sandbox/fonts" );