Skip to content

Commit

Permalink
custom hud crosshair now disabled by default. reorganized hud calibra…
Browse files Browse the repository at this point in the history
…tion panel.
  • Loading branch information
2fort-cremator committed Apr 30, 2024
1 parent 2b56faf commit e48c003
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 84 deletions.
205 changes: 123 additions & 82 deletions resource/tools.res
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
"xpos" "0"
"ypos" "0"
"wide" "743"
"tall" "350"
"tall" "400"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
Expand Down Expand Up @@ -618,7 +618,7 @@
"xpos" "2"
"ypos" "-5"
"zpos" "100"
"wide" "300"
"wide" "400"
"tall" "3"
"visible" "1"
"enabled" "1"
Expand Down Expand Up @@ -2140,13 +2140,12 @@
"pin_to_sibling" "damagecolor22"
"pin_to_sibling_corner" "PIN_TOPRIGHT"
}
//MISC
//MARK:VIEWMODELS


"MiscLabel"
"ViewmodelLabel"
{
"ControlName" "CExLabel"
"fieldName" "MiscLabel"
"fieldName" "ViewmodelLabel"
"xpos" "0"
"ypos" "50"
"zpos" "100"
Expand All @@ -2155,31 +2154,30 @@
"visible" "1"
"enabled" "1"
"font" "Cerbetica28"
"labeltext" "MISC."
"labeltext" "VIEWMODELS"
"fgcolor" "ColorRed"

"pin_to_sibling" "ColorLabel"
"pin_to_sibling_corner" "PIN_BOTTOMLEFT"

}

"MiscFiller"
"ViewmodelFiller"
{
"ControlName" "ImagePanel"
"fieldName" "MiscFiller"
"fieldName" "ViewmodelFiller"
"xpos" "2"
"ypos" "-5"
"zpos" "100"
"wide" "200"
"wide" "400"
"tall" "3"
"visible" "1"
"enabled" "1"
"fillcolor" "ColorWhite"

"pin_to_sibling" "MiscLabel"
"pin_to_sibling" "ViewmodelLabel"
"pin_to_sibling_corner" "PIN_BOTTOMLEFT"
}

//MARK:VMODEL SIZE
"viewmodelSize"
{
Expand All @@ -2192,7 +2190,7 @@
"wide" "700"
"tall" "20"

"pin_to_sibling" "MiscLabel"
"pin_to_sibling" "ViewmodelLabel"
"pin_to_sibling_corner" "PIN_BOTTOMLEFT"

"SubButton"
Expand Down Expand Up @@ -2238,6 +2236,112 @@
"allowoutofrange" "0"
}
}

//MARK:VMODEL TOGGLE
"vmodelToggle"
{
"ControlName" "CExButton"
"fieldname" "vmodelToggle"

"xpos" "0"
"ypos" "10"
"zpos" "16"
"wide" "70"
"tall" "26"

"font" "Cerbetica8Alt"
"visible" "1"
"enabled" "1"
"command" "engine toggle r_drawviewmodel"
"actionsignallevel" "4"

"labeltext" "VMODEL TOGGLE"
"textAlignment" "center"

"sound_depressed" "UI/buttonclick.wav"
"sound_released" "UI/buttonclickrelease.wav"

"armedBgColor_override" "255 255 255 3"
"defaultBgColor_override" "ColorBlack"

"fgcolor_override" "ColorWhite"

"pin_to_sibling" "viewmodelsize"
"pin_to_sibling_corner" "PIN_BOTTOMLEFT"
}
//MARK:MIN VMODLES
"minVmodelToggle"
{
"ControlName" "CExButton"
"fieldname" "minVmodelToggle"

"xpos" "10"
"ypos" "0"
"zpos" "16"
"wide" "70"
"tall" "26"

"font" "Cerbetica10Alt"
"visible" "1"
"enabled" "1"
"command" "engine toggle tf_use_min_viewmodels"
"actionsignallevel" "4"

"labeltext" "MIN VMODELS"
"textAlignment" "center"

"sound_depressed" "UI/buttonclick.wav"
"sound_released" "UI/buttonclickrelease.wav"

"armedBgColor_override" "255 255 255 3"
"defaultBgColor_override" "ColorBlack"

"fgcolor_override" "ColorWhite"

"pin_to_sibling" "vmodelToggle"
"pin_to_sibling_corner" "PIN_TOPRIGHT"
}
//MISC


"MiscLabel"
{
"ControlName" "CExLabel"
"fieldName" "MiscLabel"
"xpos" "0"
"ypos" "70"
"zpos" "100"
"wide" "360"
"tall" "28"
"visible" "1"
"enabled" "1"
"font" "Cerbetica28"
"labeltext" "MISC."
"fgcolor" "ColorRed"

"pin_to_sibling" "ViewmodelLabel"
"pin_to_sibling_corner" "PIN_BOTTOMLEFT"

}

"MiscFiller"
{
"ControlName" "ImagePanel"
"fieldName" "MiscFiller"
"xpos" "2"
"ypos" "-5"
"zpos" "100"
"wide" "400"
"tall" "3"
"visible" "1"
"enabled" "1"
"fillcolor" "ColorWhite"

"pin_to_sibling" "MiscLabel"
"pin_to_sibling_corner" "PIN_BOTTOMLEFT"
}


//MARK:FOV
"fovSize"
{
Expand All @@ -2250,7 +2354,7 @@
"wide" "700"
"tall" "20"

"pin_to_sibling" "viewmodelSize"
"pin_to_sibling" "miscFiller"
"pin_to_sibling_corner" "PIN_BOTTOMLEFT"

"SubButton"
Expand Down Expand Up @@ -2285,11 +2389,11 @@
"wide" "500"
"tall" "20"

"leftText" "0"
"rightText" "100"
"leftText" "75"
"rightText" "90"

"minvalue" "0"
"maxvalue" "100"
"minvalue" "75"
"maxvalue" "90"

"cvar_name" "fov_desired"

Expand Down Expand Up @@ -2355,70 +2459,7 @@
"allowoutofrange" "0"
}
}
//MARK:VMODEL TOGGLE
"vmodelToggle"
{
"ControlName" "CExButton"
"fieldname" "vmodelToggle"

"xpos" "0"
"ypos" "10"
"zpos" "16"
"wide" "70"
"tall" "26"

"font" "Cerbetica8Alt"
"visible" "1"
"enabled" "1"
"command" "engine toggle r_drawviewmodel"
"actionsignallevel" "4"

"labeltext" "VMODEL TOGGLE"
"textAlignment" "center"

"sound_depressed" "UI/buttonclick.wav"
"sound_released" "UI/buttonclickrelease.wav"

"armedBgColor_override" "255 255 255 3"
"defaultBgColor_override" "ColorBlack"

"fgcolor_override" "ColorWhite"

"pin_to_sibling" "volume"
"pin_to_sibling_corner" "PIN_BOTTOMLEFT"
}
//MARK:MIN VMODLES
"minVmodelToggle"
{
"ControlName" "CExButton"
"fieldname" "minVmodelToggle"

"xpos" "10"
"ypos" "0"
"zpos" "16"
"wide" "70"
"tall" "26"

"font" "Cerbetica10Alt"
"visible" "1"
"enabled" "1"
"command" "engine toggle tf_use_min_viewmodels"
"actionsignallevel" "4"

"labeltext" "MIN VMODELS"
"textAlignment" "center"

"sound_depressed" "UI/buttonclick.wav"
"sound_released" "UI/buttonclickrelease.wav"

"armedBgColor_override" "255 255 255 3"
"defaultBgColor_override" "ColorBlack"

"fgcolor_override" "ColorWhite"

"pin_to_sibling" "vmodelToggle"
"pin_to_sibling_corner" "PIN_TOPRIGHT"
}



Expand All @@ -2430,7 +2471,7 @@
"ControlName" "EditablePanel"
"fieldName" "Utilities"
"xpos" "0"
"ypos" "350"
"ypos" "400"
"wide" "743"
"tall" "100"
"autoResize" "0"
Expand Down
4 changes: 2 additions & 2 deletions scripts/hudlayout-base.res
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
//--------------------------------------------------------------
"CustomCrosshair"
{
"visible" "1"
"enabled" "1"
"visible" "0"
"enabled" "0"
"labelText" "5"
"controlName" "CExLabel"
"fieldName" "CustomCrosshair"
Expand Down

0 comments on commit e48c003

Please sign in to comment.