forked from rbjaxter/budhud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathref.txt
262 lines (228 loc) · 14.4 KB
/
ref.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
////////////////////////////////////////////////////////////////////////////////////////////////////
// Used as a reference by me as I can be forgetful of how I do certain things within my hud.
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
// Wishlist
////////////////////////////////////////////////////////////////////////////////////////////////////
- Center ammo pickup that appears in the lower center of the screen (can't center for all three digit place possibilities)
- Adjust wide value of text in Voice UI (adjusting it now doesn't appear to do anything)
- Ability to change colors of itemeffectmeters
- Ability to use directional arrows in `vgui_drawtree` again (pls)
////////////////////////////////////////////////////////////////////////////////////////////////////
// Random useful info
////////////////////////////////////////////////////////////////////////////////////////////////////
- Scoreboard font: resource\clientscheme -> ScoreboardVerySmall (or ScoreboardSmall)
- Scoreboard name/ping/score/etc font -> "DefaultVerySmall" (set to "" to disable)
- Killfeed font: \scripts\hudlayout.res -> "font" under "HudDeathNotice"
- Change Item Preset names (A, B, C, D) by adding the following to chat_english.txt:
"TF_ItemPresetName0" "<name>"
"TF_ItemPresetName1" "<name>"
"TF_ItemPresetName2" "<name>"
"TF_ItemPresetName3" "<name>"
(will probably muck up the quickswitch menu)
- showschemevisualizer
- cl_panelanimation
////////////////////////////////////////////////////////////////////////////////////////////////////
// Payload Icon Notes
////////////////////////////////////////////////////////////////////////////////////////////////////
Used in PLR:
- cart_home_<team>_square
- cart_<team>, cart_<team>_bottom
- cart_track_<team>_opaque
- cart_point_<team>
Used in PL:
- cart_<team>
- cart_home_<team>_opaque
- cart_point_<team>_opaque
////////////////////////////////////////////////////////////////////////////////////////////////////
// Borders
////////////////////////////////////////////////////////////////////////////////////////////////////
bh_b_NESW - Borders on NORTH, EAST, SOUTH, and WEST side of element
bh_b_NEW - Borders on NORTH, EAST, and WEST side of element
bh_b_ESW - Borders on EAST, SOUTH, and WEST side of element
bh_b_EW - Borders on EAST and WEST side of element
bh_b_N - Border on NORTH side of element
bh_b_E - Border on EAST side of element
bh_b_S - Border on SOUTH side of element
bh_b_W - Border on WEST side of element
ReplayGrayDialogBorder - Used a lot for tooltips
bh_TooltipBG - To replace ReplayGrayDialogBorder
////////////////////////////////////////////////////////////////////////////////////////////////////
// "Close" Buttons
////////////////////////////////////////////////////////////////////////////////////////////////////
// No text, just image
"CloseButton"
{
"image_drawcolor" "255 255 255 255"
"image_armedcolor" "240 134 49 255"
"SubImage"
{
"image" "replay\thumbnails\menu_icons\close"
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// Element Template
////////////////////////////////////////////////////////////////////////////////////////////////////
"bh_Template_Block"
{
"ControlName" "ImagePanel"
"fieldName" "bh_Template_Block"
"xpos" "0"
"ypos" "420"
"zpos" "0"
"wide" "f0"
"tall" "60"
"autoResize" "0"
"pinCorner" "0"
"labeltext" ""
"visible" "1"
"enabled" "1"
"fillcolor" "bh_Theme_BG20"
"image" ""
"paintbackgroundtype" "0"
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// Button Template
////////////////////////////////////////////////////////////////////////////////////////////////////
"bh_Template_Button"
{
"ControlName" "CExButton"
"fieldName" "bh_Template_Button"
"xpos" "30"
"ypos" "75"
"zpos" "0"
"wide" "100"
"tall" "26"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"paintbackgroundtype" "0"
"labeltext" "DRAWTREE 0/1"
"textalignment" "center"
"font" "bh_Font12"
"command" "engine incrementvar vgui_drawtree 0 1 1"
"sound_depressed" "UI/buttonclick.wav"
"sound_released" "UI/buttonclickrelease.wav"
"defaultBgColor_override" "bh_Theme_BG20"
"armedBgColor_override" "bh_Theme_BG30"
"depressedBgColor_override" "bh_Theme_BG30"
"defaultFgColor_override" "bh_Theme_TextSecondary"
"armedFgColor_override" "bh_Theme_TextAccent"
"depressedFgColor_override" "bh_ButtonDepressed"
"border_default" "bh_b_NESW"
"border_armed" "bh_b_NESW"
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// Button Colors
////////////////////////////////////////////////////////////////////////////////////////////////////
"defaultFgColor_override" "bh_Theme_TextSecondary"
"armedFgColor_override" "bh_Theme_TextAccent"
"depressedFgColor_override" "bh_ButtonDepressed"
"defaultBgColor_override" "bh_Theme_BG20"
"armedBgColor_override" "bh_Theme_BG30"
"depressedBgColor_override" "bh_Theme_BG30"
"border_default" "bh_b_NESW"
"border_armed" "bh_b_NESW"
// Button Colors
"image_drawcolor" "255 255 255 255"
"image_armedcolor" "240 134 49 255"
////////////////////////////////////////////////////////////////////////////////////////////////////
// "Combobox" Colors
////////////////////////////////////////////////////////////////////////////////////////////////////
"fgcolor_override" "bh_white"
"bgcolor_override" "bh_blank"
"disabledFgColor_override" "bh_white"
"selectionColor_override" "bh_blank"
"selectionTextColor_override" "bh_white"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Background footer used in menus
////////////////////////////////////////////////////////////////////////////////////////////////////
"bh_BackgroundFooter"
{
"ControlName" "ImagePanel"
"fieldName" "bh_BackgroundFooter"
"xpos" "0"
"ypos" "420"
"zpos" "0"
"wide" "f0"
"tall" "61"
"autoResize" "0"
"pinCorner" "0"
"labeltext" ""
"visible" "1"
"enabled" "1"
"fillcolor" "bh_Theme_BG20"
"border" "bh_b_N"
"image" ""
"paintbackgroundtype" "0"
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// Pins
// A pinned element will always move relative to their parent element
// Good for things like shadows, etc.
// Bear in mind x/y values move the pinned element oppositely as they usually do
// xpos 100 will move it 100 units to the LEFT instead of RIGHT, etc
////////////////////////////////////////////////////////////////////////////////////////////////////
"bh_PinTemplate"
{
"ControlName" "Label"
"fieldName" "bh_PinTemplate"
"xpos" "c0"
"ypos" "10"
"zpos" "0"
"wide" "100"
"tall" "0"
"visible" "1"
"enabled" "1"
"bgcolor_override" "0 0 0 0"
}
"pin_to_sibling" "bh_PinTemplate"
"pin_corner_to_sibling" "PIN_TOPLEFT"
"pin_to_sibling_corner" "0"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Animations
// From TF Team's hudanimations_tf.txt
////////////////////////////////////////////////////////////////////////////////////////////////////
event IsAnExample
{
Animate <panel name> <variable> <target value> <interpolator> <start time> <duration>
}
variables:
FgColor
BgColor
Position
Size
Blur (hud panels only)
TextColor (hud panels only)
Ammo2Color (hud panels only)
Alpha (hud weapon selection only)
SelectionAlpha (hud weapon selection only)
TextScan (hud weapon selection only)
Interpolator:
Linear
Accel - starts moving slow, ends fast
Deaccel - starts moving fast, ends slow
Spline - simple ease in/out curve
Pulse - < freq > over the duration, the value is pulsed (cosine) freq times ending at the dest value (assuming freq is integral)
Flicker - < randomness factor 0.0 to 1.0 > over duration, each frame if random # is less than factor, use end value, otherwise use prev value
Gain - < bias > Lower bias values bias towards 0.5 and higher bias values bias away from it.
Bias - < bias > Lower values bias the curve towards 0 and higher values bias it towards 1.
RunEvent <event name> <start time>
starts another even running at the specified time
StopEvent <event name> <start time>
stops another event that is current running at the specified time
StopAnimation <panel name> <variable> <start time>
stops all animations refering to the specified variable in the specified panel
StopPanelAnimations <panel name> <start time>
stops all active animations operating on the specified panel
SetFont <panel name> <fontparameter> <fontname from scheme> <set time>
SetTexture <panel name> <textureidname> <texturefilename> <set time>
SetString <panel name> <string varname> <stringvalue> <set time>
////////////////////////////////////////////////////////////////////////////////////////////////////
// paintbackgroundtypes (info courtesy of Hypnotize)
////////////////////////////////////////////////////////////////////////////////////////////////////
0 - Straight edges
1 - Burnt paper edges
2 - Round edge
3 - Gradient edges