gameProfiles.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2012 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. //-----------------------------------------------------------------------------
  23. // Override base controls
  24. //GuiMenuButtonProfile.soundButtonOver = "AudioButtonOver";
  25. //GuiMenuButtonProfile.soundButtonDown = "AudioButtonDown";
  26. //-----------------------------------------------------------------------------
  27. // Chat Hud profiles
  28. singleton GuiControlProfile (ChatHudEditProfile)
  29. {
  30. opaque = false;
  31. fillColor = "255 255 255";
  32. fillColorHL = "128 128 128";
  33. border = false;
  34. borderThickness = 0;
  35. borderColor = "40 231 240";
  36. fontColor = "40 231 240";
  37. fontColorHL = "40 231 240";
  38. fontColorNA = "128 128 128";
  39. textOffset = "0 2";
  40. autoSizeWidth = false;
  41. autoSizeHeight = true;
  42. tab = true;
  43. canKeyFocus = true;
  44. };
  45. singleton GuiControlProfile (ChatHudTextProfile)
  46. {
  47. opaque = false;
  48. fillColor = "255 255 255";
  49. fillColorHL = "128 128 128";
  50. border = false;
  51. borderThickness = 0;
  52. borderColor = "40 231 240";
  53. fontColor = "40 231 240";
  54. fontColorHL = "40 231 240";
  55. fontColorNA = "128 128 128";
  56. textOffset = "0 0";
  57. autoSizeWidth = true;
  58. autoSizeHeight = true;
  59. tab = true;
  60. canKeyFocus = true;
  61. };
  62. singleton GuiControlProfile ("ChatHudMessageProfile")
  63. {
  64. fontType = "Arial";
  65. fontSize = 16;
  66. fontColor = "44 172 181"; // default color (death msgs, scoring, inventory)
  67. fontColors[1] = "4 235 105"; // client join/drop, tournament mode
  68. fontColors[2] = "219 200 128"; // gameplay, admin/voting, pack/deployable
  69. fontColors[3] = "77 253 95"; // team chat, spam protection message, client tasks
  70. fontColors[4] = "40 231 240"; // global chat
  71. fontColors[5] = "200 200 50 200"; // used in single player game
  72. // WARNING! Colors 6-9 are reserved for name coloring
  73. autoSizeWidth = true;
  74. autoSizeHeight = true;
  75. };
  76. singleton GuiControlProfile ("ChatHudScrollProfile")
  77. {
  78. opaque = false;
  79. borderThickness = 0;
  80. borderColor = "0 255 0";
  81. bitmap = "data/UI/art/scrollBar";
  82. hasBitmapArray = true;
  83. };
  84. //-----------------------------------------------------------------------------
  85. // Core Hud profiles
  86. singleton GuiControlProfile ("HudScrollProfile")
  87. {
  88. opaque = false;
  89. border = true;
  90. borderColor = "0 255 0";
  91. bitmap = "data/UI/art/scrollBar";
  92. hasBitmapArray = true;
  93. };
  94. singleton GuiControlProfile ("HudTextProfile")
  95. {
  96. opaque = false;
  97. fillColor = "128 128 128";
  98. fontColor = "0 255 0";
  99. border = true;
  100. borderColor = "0 255 0";
  101. };
  102. singleton GuiControlProfile ("ChatHudBorderProfile")
  103. {
  104. bitmap = "data/UI/art/chatHudBorderArray";
  105. hasBitmapArray = true;
  106. opaque = false;
  107. };
  108. //-----------------------------------------------------------------------------
  109. // Center and bottom print
  110. singleton GuiControlProfile ("CenterPrintProfile")
  111. {
  112. opaque = false;
  113. fillColor = "128 128 128";
  114. fontColor = "0 255 0";
  115. border = true;
  116. borderColor = "0 255 0";
  117. };
  118. singleton GuiControlProfile ("CenterPrintTextProfile")
  119. {
  120. opaque = false;
  121. fontType = "Arial";
  122. fontSize = 12;
  123. fontColor = "0 255 0";
  124. };
  125. // -----------------------------------------------------------------------------
  126. // HUD text
  127. // -----------------------------------------------------------------------------
  128. singleton GuiControlProfile (HudTextNormalProfile)
  129. {
  130. opaque = false;
  131. fontType = "Arial";
  132. fontSize = 14;
  133. fontColor = "255 255 255";
  134. };
  135. singleton GuiControlProfile (HudTextItalicProfile : HudTextNormalProfile)
  136. {
  137. fontType = "ArialItalic";
  138. };
  139. singleton GuiControlProfile (HudTextBoldProfile : HudTextNormalProfile)
  140. {
  141. fontType = "ArialBold";
  142. };
  143. // -----------------------------------------------------------------------------
  144. // Numerical health text
  145. // -----------------------------------------------------------------------------
  146. singleton GuiControlProfile (NumericHealthProfile)
  147. {
  148. opaque = true;
  149. justify = "center";
  150. fontType = "ArialBold";
  151. fontSize = 32;
  152. fontColor = "255 255 255";
  153. };