Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ui/menudef.h"
- //------------------------------------------------------------------------------------
- // Custom Crosshairs
- //------------------------------------------------------------------------------------
- menuDef {
- name "Crosshair"
- rect 320 240 32 32
- fullScreen MENU_FALSE
- visible MENU_TRUE
- itemDef {
- name "Vertical-Top"
- rect -2.3 -9.3 4.8 4
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .1
- }
- itemDef {
- name "Vertical-Bottom"
- rect -2.3 4.9 4.8 4
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .1
- }
- itemDef {
- name "Horizontal-Left"
- rect -9.3 -2.3 4 4.8
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .1
- }
- itemDef {
- name "Horizontal-Right"
- rect 4.9 -2.3 4 4.8
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .1
- }
- //------------------------------------------------------------------------------------
- // Custom Crosshair "-¦-"
- //------------------------------------------------------------------------------------
- itemDef {
- name "Vertical-Top"
- rect -1.9 -9.9 3.6 5.7
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 0.2
- }
- itemDef {
- name "Vertical-Bottom"
- rect -1.9 3.9 3.6 6.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 0.2
- }
- itemDef {
- name "Horizontal-Left"
- rect -9.8 -1.9 5.7 3.6
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 0.2
- }
- itemDef {
- name "Horizontal-Right"
- rect 3.9 -1.9 6.2 3.6
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 0.2
- }
- //------------------------------------------------------------------------------------
- // Custom Crosshair "-¦-"
- //------------------------------------------------------------------------------------
- itemDef {
- name "Vertical-Top"
- rect -1.9 -9.5 3.8 5.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .4
- }
- itemDef {
- name "Vertical-Bottom"
- rect -1.9 4.5 3.8 5.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .4
- }
- itemDef {
- name "Horizontal-Left"
- rect -9.5 -1.9 5.2 3.8
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .4
- }
- itemDef {
- name "Horizontal-Right"
- rect 4.5 -1.9 5.2 3.8
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .4
- }
- //------------------------------------------------------------------------------------
- // Custom Crosshair "-¦-"
- //------------------------------------------------------------------------------------
- itemDef {
- name "Vertical-Top"
- rect -1.5 -9.3 3.2 4.6
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .7
- }
- itemDef {
- name "Vertical-Bottom"
- rect -1.5 4.7 3.2 4.6
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .7
- }
- itemDef {
- name "Horizontal-Left"
- rect -9.3 -1.5 4.6 3.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .7
- }
- itemDef {
- name "Horizontal-Right"
- rect 4.7 -1.5 4.6 3.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 .7
- }
- //------------------------------------------------------------------------------------
- // Custom Crosshair "smaller, -¦-" RESERV
- //------------------------------------------------------------------------------------
- itemDef {
- name "Vertical-Top"
- rect -0.9 -9.2 2 3.8
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 1
- }
- itemDef {
- name "Vertical-Bottom"
- rect -0.9 4.9 2 3.8
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 1
- }
- itemDef {
- name "Horizontal-Left"
- rect -9.1 -1 3.8 2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 1
- }
- itemDef {
- name "Horizontal-Right"
- rect 4.9 -1 3.8 2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 1
- }
- //------------------------------------------------------------------------------------
- // Custom Crosshair "smaller, -¦-" RESERV
- //------------------------------------------------------------------------------------
- itemDef {
- name "Vertical-Top"
- rect -1.1 -10.1 2.2 6.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 0.3
- }
- itemDef {
- name "Vertical-Bottom"
- rect -1.1 3.9 2.2 6.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 0.3
- }
- itemDef {
- name "Horizontal-Left"
- rect -9.8 -1.1 5.7 2.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 0.3
- }
- itemDef {
- name "Horizontal-Right"
- rect 3.9 -1.1 6.2 2.2
- visible 1
- style 1
- cvarTest "ch_crosshairColor"
- showCvar { 2 }
- decoration
- backcolor 0 .9 1 0.3
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement