Advertisement
Guest User

Untitled

a guest
Apr 29th, 2012
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.03 KB | None | 0 0
  1. // by jones
  2.  
  3. #include "ui/menudef.h"
  4.  
  5. #define DEFAULTS_ITEM   decoration visible 1
  6. #define DEFAULTS_MENU   visible 1
  7.  
  8.   // ----- //
  9.  // XHAIR //
  10. // ----- //
  11.  
  12. menuDef {
  13. DEFAULTS_MENU
  14. name    "xhair"
  15. rect    319 238 640 480
  16.  
  17. // border3
  18.  
  19.     itemDef {
  20.     DEFAULTS_ITEM  
  21.     rect        0 -0.5 2.25 0.5
  22.     style   WINDOW_STYLE_FILLED
  23.     cvarTest    "fv_zoom"
  24.     showCvar    {0}
  25.     backcolor   0 0 0 0.1
  26.     }
  27.  
  28.     itemDef {
  29.     DEFAULTS_ITEM  
  30.     rect        -0.5 0 3 0.5
  31.     style   WINDOW_STYLE_FILLED
  32.     cvarTest    "fv_zoom"
  33.     showCvar    {0}
  34.     backcolor   0 0 0 0.1
  35.     }
  36.  
  37.     itemDef {
  38.     DEFAULTS_ITEM  
  39.     rect        -1 0.5 4 3
  40.     style   WINDOW_STYLE_FILLED
  41.     cvarTest    "fv_zoom"
  42.     showCvar    {0}
  43.     backcolor   0 0 0 0.1
  44.     }
  45.  
  46.     itemDef {
  47.     DEFAULTS_ITEM  
  48.     rect        -0.5 3.5 3 0.5
  49.     style   WINDOW_STYLE_FILLED
  50.     cvarTest    "fv_zoom"
  51.     showCvar    {0}
  52.     backcolor   0 0 0 0.1
  53.     }
  54.  
  55.     itemDef {
  56.     DEFAULTS_ITEM
  57.     rect        0 4 2.25 0.5
  58.     style   WINDOW_STYLE_FILLED
  59.     cvarTest    "fv_zoom"
  60.     showCvar    {0}
  61.     backcolor   0 0 0 0.1
  62.     }
  63.  
  64. // border2
  65.  
  66.     itemDef {
  67.     DEFAULTS_ITEM  
  68.     rect        0 0 2.25 0.5
  69.     style   WINDOW_STYLE_FILLED
  70.     cvarTest    "fv_zoom"
  71.     showCvar    {0}
  72.     backcolor   0 0 0 0.3
  73.     }
  74.  
  75.     itemDef {
  76.     DEFAULTS_ITEM  
  77.     rect        -0.5 0.5 3 3
  78.     style   WINDOW_STYLE_FILLED
  79.     cvarTest    "fv_zoom"
  80.     showCvar    {0}
  81.     backcolor   0 0 0 0.3
  82.     }
  83.  
  84.     itemDef {
  85.     DEFAULTS_ITEM  
  86.     rect        0 3.5 2.25 0.5
  87.     style   WINDOW_STYLE_FILLED
  88.     cvarTest    "fv_zoom"
  89.     showCvar    {0}
  90.     backcolor   0 0 0 0.3
  91.     }
  92.  
  93. // border1
  94.  
  95.     itemDef {
  96.     DEFAULTS_ITEM  
  97.     rect        0.25 0 1.5 0.5
  98.     style   WINDOW_STYLE_FILLED
  99.     cvarTest    "fv_zoom"
  100.     showCvar    {0}
  101.     backcolor   0 0 0 1
  102.     }
  103.  
  104.     itemDef {
  105.     DEFAULTS_ITEM  
  106.     rect        0 0.5 2 0.5
  107.     style   WINDOW_STYLE_FILLED
  108.     cvarTest    "fv_zoom"
  109.     showCvar    {0}
  110.     backcolor   0 0 0 1
  111.     }
  112.  
  113.     itemDef {
  114.     DEFAULTS_ITEM  
  115.     rect        -0.5 1 3 2
  116.     style   WINDOW_STYLE_FILLED
  117.     cvarTest    "fv_zoom"
  118.     showCvar    {0}
  119.     backcolor   0 0 0 1
  120.     }
  121.  
  122.     itemDef {
  123.     DEFAULTS_ITEM  
  124.     rect        0 3 2 0.5
  125.     style   WINDOW_STYLE_FILLED
  126.     cvarTest    "fv_zoom"
  127.     showCvar    {0}
  128.     backcolor   0 0 0 1
  129.     }
  130.  
  131.     itemDef {
  132.     DEFAULTS_ITEM
  133.     rect        0.25 3.5 1.5 0.5
  134.     style   WINDOW_STYLE_FILLED
  135.     cvarTest    "fv_zoom"
  136.     showCvar    {0}
  137.     backcolor   0 0 0 1
  138.     }
  139.  
  140. // inner
  141.  
  142.     itemDef {
  143.     DEFAULTS_ITEM  
  144.     rect        0.25 0.5 1.5 0.5
  145.     style   WINDOW_STYLE_FILLED
  146.     cvarTest    "fv_zoom"
  147.     showCvar    {0}
  148.     backcolor   1 1 0 1
  149.     }
  150.  
  151.     itemDef {
  152.     DEFAULTS_ITEM  
  153.     rect        0 1 2 2
  154.     style   WINDOW_STYLE_FILLED
  155.     cvarTest    "fv_zoom"
  156.     showCvar    {0}
  157.     backcolor   1 1 0 1
  158.     }
  159.  
  160.     itemDef {
  161.     DEFAULTS_ITEM  
  162.     rect        0.25 3 1.5 0.5
  163.     style   WINDOW_STYLE_FILLED
  164.     cvarTest    "fv_zoom"
  165.     showCvar    {0}
  166.     backcolor   1 1 0 1
  167.     }
  168. }
  169.  
  170.   // ---------- //
  171.  // ZOOM XHAIR //
  172. // ---------- //
  173.  
  174. menuDef {
  175. DEFAULTS_MENU
  176. name    "xhair2"
  177. rect    319 238 640 480
  178.  
  179. // border3
  180.  
  181.     itemDef {
  182.     DEFAULTS_ITEM  
  183.     rect        0.25 0 1.5 0.5
  184.     style   WINDOW_STYLE_FILLED
  185.     cvarTest    "fv_zoom"
  186.     showCvar    {1}
  187.     backcolor   0 0 0 0.1
  188.     }
  189.  
  190.     itemDef {
  191.     DEFAULTS_ITEM  
  192.     rect        0 0.5 2 0.5
  193.     style   WINDOW_STYLE_FILLED
  194.     cvarTest    "fv_zoom"
  195.     showCvar    {1}
  196.     backcolor   0 0 0 0.1
  197.     }
  198.  
  199.     itemDef {
  200.     DEFAULTS_ITEM  
  201.     rect        -0.5 1 3 2
  202.     style   WINDOW_STYLE_FILLED
  203.     cvarTest    "fv_zoom"
  204.     showCvar    {1}
  205.     backcolor   0 0 0 0.1
  206.     }
  207.  
  208.     itemDef {
  209.     DEFAULTS_ITEM  
  210.     rect        0 3 2 0.5
  211.     style   WINDOW_STYLE_FILLED
  212.     cvarTest    "fv_zoom"
  213.     showCvar    {1}
  214.     backcolor   0 0 0 0.1
  215.     }
  216.  
  217.     itemDef {
  218.     DEFAULTS_ITEM
  219.     rect        0.25 3.5 1.5 0.5
  220.     style   WINDOW_STYLE_FILLED
  221.     cvarTest    "fv_zoom"
  222.     showCvar    {1}
  223.     backcolor   0 0 0 0.1
  224.     }
  225.  
  226. // border2
  227.  
  228.     itemDef {
  229.     DEFAULTS_ITEM  
  230.     rect        0.25 0.5 1.5 0.5
  231.     style   WINDOW_STYLE_FILLED
  232.     cvarTest    "fv_zoom"
  233.     showCvar    {1}
  234.     backcolor   0 0 0 0.3
  235.     }
  236.  
  237.     itemDef {
  238.     DEFAULTS_ITEM  
  239.     rect        0 1 2 2
  240.     style   WINDOW_STYLE_FILLED
  241.     cvarTest    "fv_zoom"
  242.     showCvar    {1}
  243.     backcolor   0 0 0 0.3
  244.     }
  245.  
  246.     itemDef {
  247.     DEFAULTS_ITEM  
  248.     rect        0.25 3 1.5 0.5
  249.     style   WINDOW_STYLE_FILLED
  250.     cvarTest    "fv_zoom"
  251.     showCvar    {1}
  252.     backcolor   0 0 0 0.3
  253.     }
  254.  
  255. // border1
  256.  
  257.     itemDef {
  258.     DEFAULTS_ITEM  
  259.     rect        0.5 0.5 1 0.5
  260.     style   WINDOW_STYLE_FILLED
  261.     cvarTest    "fv_zoom"
  262.     showCvar    {1}
  263.     backcolor   0 0 0 1
  264.     }
  265.  
  266.     itemDef {
  267.     DEFAULTS_ITEM  
  268.     rect        0.25 1 1.5 0.5
  269.     style   WINDOW_STYLE_FILLED
  270.     cvarTest    "fv_zoom"
  271.     showCvar    {1}
  272.     backcolor   0 0 0 1
  273.     }
  274.  
  275.     itemDef {
  276.     DEFAULTS_ITEM  
  277.     rect        0 1.5 2 1
  278.     style   WINDOW_STYLE_FILLED
  279.     cvarTest    "fv_zoom"
  280.     showCvar    {1}
  281.     backcolor   0 0 0 1
  282.     }
  283.  
  284.     itemDef {
  285.     DEFAULTS_ITEM  
  286.     rect        0.25 2.5 1.5 0.5
  287.     style   WINDOW_STYLE_FILLED
  288.     cvarTest    "fv_zoom"
  289.     showCvar    {1}
  290.     backcolor   0 0 0 1
  291.     }
  292.  
  293.     itemDef {
  294.     DEFAULTS_ITEM  
  295.     rect        0.5 3 1 0.5
  296.     style   WINDOW_STYLE_FILLED
  297.     cvarTest    "fv_zoom"
  298.     showCvar    {1}
  299.     backcolor   0 0 0 1
  300.     }
  301.  
  302. // inner
  303.  
  304.     itemDef {
  305.     DEFAULTS_ITEM  
  306.     rect        0.5 1 1 0.5
  307.     style   WINDOW_STYLE_FILLED
  308.     cvarTest    "fv_zoom"
  309.     showCvar    {1}
  310.     backcolor   1 1 0 1
  311.     }
  312.  
  313.     itemDef {
  314.     DEFAULTS_ITEM  
  315.     rect        0.25 1.5 1.5 1
  316.     style   WINDOW_STYLE_FILLED
  317.     cvarTest    "fv_zoom"
  318.     showCvar    {1}
  319.     backcolor   1 1 0 1
  320.     }
  321.  
  322.     itemDef {
  323.     DEFAULTS_ITEM
  324.     rect        0.5 2.5 1 0.5
  325.     style   WINDOW_STYLE_FILLED
  326.     cvarTest    "fv_zoom"
  327.     showCvar    {1}
  328.     backcolor   1 1 0 1
  329.     }
  330. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement