Advertisement
emsixteen

Untitled

Apr 20th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.59 KB | None | 0 0
  1. #include "ui/menudef.h"
  2.  
  3. // HEALTH
  4.  
  5. {
  6.  
  7.     menuDef {
  8.         fullscreen MENU_FALSE
  9.         visible MENU_TRUE
  10.         rect 215 433 300 41
  11.         name "HP"
  12.  
  13.         itemDef {
  14.             name "health1"
  15.             visible MENU_TRUE
  16.             rect 15 -15 100 41  // X Y
  17.             ownerdraw CG_PLAYER_HEALTH
  18.             textstyle 3
  19.             textscale .45
  20.             addColorRange 191 999   0 1 1 1
  21.             addColorRange 181 190   0 1 .9 1
  22.             addColorRange 171 180   0 1 .8 1
  23.             addColorRange 161 170   0 1 .7 1
  24.             addColorRange 151 160   0 1 .6 1
  25.             addColorRange 141 150   0 1 .5 1
  26.             addColorRange 131 140   0 1 .4 1
  27.             addColorRange 121 130   0 1 .3 1
  28.             addColorRange 111 120   0 1 .2 1
  29.             addColorRange -999 110  9 9 9 0  // It seems to only accept a limit of 10, so use the 10th to tell it to hide.
  30.         }
  31.        
  32.         itemDef {
  33.             name "health2"
  34.             visible MENU_TRUE
  35.             rect 15 -15 100 41  // X Y
  36.             ownerdraw CG_PLAYER_HEALTH
  37.             textstyle 3
  38.             textscale .45
  39.             addColorRange 111 999   9 9 9 0 // Hide
  40.             addColorRange 101 110   0 1 .1 1
  41.             addColorRange 91 100    0 1 .1 1  
  42.             addColorRange 81 90     0 .9 0 1  
  43.             addColorRange 71 80     0 .8 .1 1  
  44.             addColorRange 61 70     0 .7 .1 1  
  45.             addColorRange 51 60     0 .6 .1 1  
  46.             addColorRange 41 50     0 .5 .1 1  
  47.             addColorRange 31 40     0 .4 .1 1  
  48.             addColorRange -999 30   9 9 9 0 // Hide
  49.         }  
  50.        
  51.         itemDef {
  52.             name "health3"
  53.             visible MENU_TRUE
  54.             rect 15 -15 100 41  // X Y
  55.             ownerdraw CG_PLAYER_HEALTH
  56.             textstyle 3
  57.             textscale .45  
  58.             addColorRange 31 999    9 9 9 0 // Hide
  59.             addColorRange 21 30     0 .3 .1 1  
  60.             addColorRange 11 20     0 .2 .1 1  
  61.             addColorRange 1 10  0 .1 .1 1  
  62.             addColorRange -999 0    0 0 .1 1  // #10
  63.         }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement