home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / demo / client / ui / defaultGameProfiles.cs < prev    next >
Encoding:
Text File  |  2005-11-23  |  3.4 KB  |  138 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine 
  3. // Copyright (C) GarageGames.com, Inc.
  4. //-----------------------------------------------------------------------------
  5.  
  6. //-----------------------------------------------------------------------------
  7. // Override base controls
  8. GuiButtonProfile.soundButtonOver = "AudioButtonOver";
  9.  
  10. //-----------------------------------------------------------------------------
  11. // Chat Hud profiles
  12.  
  13.  
  14. new GuiControlProfile (ChatHudEditProfile)
  15. {
  16.    opaque = false;
  17.    fillColor = "255 255 255";
  18.    fillColorHL = "128 128 128";
  19.    border = false;
  20.    borderThickness = 0;
  21.    borderColor = "40 231 240";
  22.    fontColor = "40 231 240";
  23.    fontColorHL = "40 231 240";
  24.    fontColorNA = "128 128 128";
  25.    textOffset = "0 2";
  26.    autoSizeWidth = false;
  27.    autoSizeHeight = true;
  28.    tab = true;
  29.    canKeyFocus = true;
  30. };
  31.  
  32.  
  33. new GuiControlProfile( GuiBevelLoweredProfile )
  34. {
  35.    opaque = true;
  36.    fillColor = "255 255 255 80";
  37.    border = 3;
  38.    borderThickness = 2;
  39.    borderColor = "0 0 0 80";
  40.    bitmap = "./demoScroll";
  41.    hasBitmapArray = true;
  42. };
  43.  
  44.  
  45. new 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.  
  63. new GuiControlProfile ("ChatHudMessageProfile")
  64. {
  65.    fontType = "Arial";
  66.    fontSize = 16;
  67.    fontColor = "44 172 181";      // default color (death msgs, scoring, inventory)
  68.    fontColors[1] = "4 235 105";   // client join/drop, tournament mode
  69.    fontColors[2] = "219 200 128"; // gameplay, admin/voting, pack/deployable
  70.    fontColors[3] = "77 253 95";   // team chat, spam protection message, client tasks
  71.    fontColors[4] = "40 231 240";  // global chat
  72.    fontColors[5] = "200 200 50 200";  // used in single player game
  73.    // WARNING! Colors 6-9 are reserved for name coloring 
  74.    autoSizeWidth = true;
  75.    autoSizeHeight = true;
  76. };
  77.  
  78. new GuiControlProfile ("ChatHudScrollProfile")
  79. {
  80.    opaque = false;
  81.    border = false;
  82.    borderColor = "0 255 0";
  83.    bitmap = "common/ui/darkScroll";
  84.    hasBitmapArray = true;
  85. };
  86.  
  87.  
  88. //-----------------------------------------------------------------------------
  89. // Common Hud profiles
  90.  
  91. new GuiControlProfile ("HudScrollProfile")
  92. {
  93.    opaque = false;
  94.    border = true;
  95.    borderColor = "0 255 0";
  96.    bitmap = "common/ui/darkScroll";
  97.    hasBitmapArray = true;
  98. };
  99.  
  100. new GuiControlProfile ("HudTextProfile")
  101. {
  102.    opaque = false;
  103.    fillColor = "128 128 128";
  104.    fontColor = "0 255 0";
  105.    border = true;
  106.    borderColor = "0 255 0";
  107. };
  108.  
  109. new GuiControlProfile ("ChatHudBorderProfile")
  110. {
  111.    bitmap = "./chatHudBorderArray";
  112.    hasBitmapArray = true;
  113.    opaque = false;
  114. };
  115.  
  116.  
  117. //-----------------------------------------------------------------------------
  118. // Center and bottom print
  119.  
  120. new GuiControlProfile ("CenterPrintProfile")
  121. {
  122.    opaque = false;
  123.    fillColor = "128 128 128";
  124.    fontColor = "0 255 0";
  125.    border = true;
  126.    borderColor = "0 255 0";
  127. };
  128.  
  129. new GuiControlProfile ("CenterPrintTextProfile")
  130. {
  131.    opaque = false;
  132.    fontType = "Arial";
  133.    fontSize = 12;
  134.    fontColor = "0 255 0";
  135. };
  136.  
  137.  
  138.