Skip to content

Commit 639b2b1

Browse files
committed
[flawhud/hud-fxies] Updated to write #base files
1 parent 7677d9c commit 639b2b1

File tree

2 files changed

+82
-160
lines changed

2 files changed

+82
-160
lines changed

src/HUDEditor/JSON/flawhud.json

Lines changed: 47 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -449,15 +449,10 @@
449449
"Type": "Checkbox",
450450
"ToolTip": "Toggle crosshair feature.",
451451
"Value": "false",
452-
"Files": {
453-
"resource/ui/customizations/crosshair/crosshair_base.res": {
454-
"CustomCrosshair": {
455-
"visible": {
456-
"true": "1",
457-
"false": "0"
458-
}
459-
}
460-
}
452+
"WriteFile": {
453+
"FileName": "hud_crosshair_visibility.txt",
454+
"TrueText": "x{CustomCrosshair{visible 1}}",
455+
"FalseText": ""
461456
}
462457
},
463458
{
@@ -466,32 +461,24 @@
466461
"Type": "Checkbox",
467462
"ToolTip": "Toggle hitmarker animation.",
468463
"Value": "true",
469-
"Files": {
470-
"scripts/hudanimations_hitmarker.txt": {
471-
"uncomment": [
472-
"StopEvent HitMarker",
473-
"RunEvent HitMarker"
474-
]
475-
}
464+
"WriteFile": {
465+
"FileName": "hud_crosshair_animation.txt",
466+
"TrueText": "event DamagedPlayer{RunEvent CrosshairFlash 0.0}",
467+
"FalseText": ""
476468
}
477469
}
478470
],
479471
"Customizations": [
480472
{
481473
"Name": "fh_toggle_disguise_image",
482-
"Label": "Show Disguise Image",
474+
"Label": "Hide Disguise Outline",
483475
"Type": "Checkbox",
484476
"ToolTip": "Toggle the spy silhouette seen when changing the disguise.",
485-
"Value": "true",
486-
"Files": {
487-
"resource/ui/hudplayerclass_base.res": {
488-
"PlayerStatusSpyOutlineImage": {
489-
"image": {
490-
"true": "../hud/class_spy_outline",
491-
"false": "replay/thumbnails/transparent"
492-
}
493-
}
494-
}
477+
"Value": "false",
478+
"WriteFile": {
479+
"FileName": "hud_disguise_anim.txt",
480+
"TrueText": "#base ../../custom/flawhud/resource/ui/customizations/disguise/hud_disguise_anim_off.res",
481+
"FalseText": ""
495482
}
496483
},
497484
{
@@ -501,15 +488,10 @@
501488
"ToolTip": "Toggle transparent viewmodels.",
502489
"Special": "TransparentViewmodels",
503490
"Value": "false",
504-
"Files": {
505-
"resource/ui/customizations/transparent_viewmodels/transparent_viewmodels.res": {
506-
"TransparentViewmodel": {
507-
"visible": {
508-
"true": "1",
509-
"false": "0"
510-
}
511-
}
512-
}
491+
"WriteFile": {
492+
"FileName": "hud_transparent_viewmodels.txt",
493+
"TrueText": "#base ../../custom/flawhud/resource/ui/customizations/transparent_viewmodels/transparent_viewmodels.res",
494+
"FalseText": ""
513495
}
514496
},
515497
{
@@ -579,21 +561,10 @@
579561
"Type": "Checkbox",
580562
"ToolTip": "Hides the player character model seen on the bottom left of the screen.",
581563
"Value": "false",
582-
"Files": {
583-
"resource/ui/hudplayerclass_base.res": {
584-
"PlayerStatusClassImage": {
585-
"wide": {
586-
"true": "0",
587-
"false": "75"
588-
}
589-
},
590-
"classmodelpanel": {
591-
"wide": {
592-
"true": "0",
593-
"false": "150"
594-
}
595-
}
596-
}
564+
"WriteFile": {
565+
"FileName": "hud_player_model.txt",
566+
"TrueText": "#base ../../custom/flawhud/resource/ui/customizations/player_model/player_model_off.res",
567+
"FalseText": ""
597568
}
598569
},
599570
{
@@ -603,47 +574,10 @@
603574
"ToolTip": "Expand the scoreboard to show 32 players.",
604575
"Value": "false",
605576
"Restart": false,
606-
"Files": {
607-
"resource/ui/scoreboard_base.res": {
608-
"BlueBG": {
609-
"ypos": {
610-
"true": "50",
611-
"false": "83"
612-
}
613-
},
614-
"BluePlayerBG": {
615-
"tall": {
616-
"true": "270",
617-
"false": "210"
618-
}
619-
},
620-
"RedPlayerBG": {
621-
"tall": {
622-
"true": "270",
623-
"false": "210"
624-
}
625-
},
626-
"BluePlayerList": {
627-
"ypos": {
628-
"true": "c-138",
629-
"false": "c-106"
630-
},
631-
"tall": {
632-
"true": "270",
633-
"false": "206"
634-
}
635-
},
636-
"RedPlayerList": {
637-
"ypos": {
638-
"true": "c-138",
639-
"false": "c-106"
640-
},
641-
"tall": {
642-
"true": "270",
643-
"false": "206"
644-
}
645-
}
646-
}
577+
"WriteFile": {
578+
"FileName": "hud_scoreboard_style.txt",
579+
"TrueText": "#base ../../custom/flawhud/resource/ui/customizations/scoreboard/scoreboard_large.res",
580+
"FalseText": ""
647581
}
648582
},
649583
{
@@ -653,15 +587,10 @@
653587
"ToolTip": "Displays a speedometer under the crosshair",
654588
"Value": "false",
655589
"Restart": false,
656-
"Files": {
657-
"resource/ui/hudplayerclass_base.res": {
658-
"Speedometer": {
659-
"visible": {
660-
"true": "1",
661-
"false": "0"
662-
}
663-
}
664-
}
590+
"WriteFile": {
591+
"FileName": "hud_speedometer.txt",
592+
"TrueText": "#base ../../custom/flawhud/resource/ui/customizations/speedometer/speedometer_on.res",
593+
"FalseText": ""
665594
}
666595
},
667596
{
@@ -1147,6 +1076,19 @@
11471076
}
11481077
}
11491078
},
1079+
{
1080+
"Name": "fh_uber_counter",
1081+
"Label": "Enable Uber Counter",
1082+
"Type": "Checkbox",
1083+
"ToolTip": "Enables a meter used for tracking other team's uber build.",
1084+
"Value": "false",
1085+
"Restart": false,
1086+
"WriteFile": {
1087+
"FileName": "hud_uber_counter.txt",
1088+
"TrueText": "event UberTimer{RunEvent UberTimerHide 0.0 RunEvent UberTimerRun 0.1}",
1089+
"FalseText": ""
1090+
}
1091+
},
11501092
{
11511093
"Name": "fh_val_damage_values",
11521094
"Label": "Damage Numbers",
@@ -1528,13 +1470,10 @@
15281470
"ToolTip": "Toggle to the Code Pro fonts instead of TF2 Build.",
15291471
"Value": "false",
15301472
"Restart": true,
1531-
"Files": {
1532-
"resource/clientscheme.res": {
1533-
"replace": [
1534-
"clientscheme_fonts.res",
1535-
"clientscheme_fonts_pro.res"
1536-
]
1537-
}
1473+
"WriteFile": {
1474+
"FileName": "hud_font.txt",
1475+
"TrueText": "#base ../../custom/flawhud/resource/scheme/clientscheme_fonts_pro.res",
1476+
"FalseText": "#base ../../custom/flawhud/resource/scheme/clientscheme_fonts.res"
15381477
}
15391478
},
15401479
{

src/HUDEditor/JSON/hud-fixes.json

Lines changed: 35 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/CriticalFlaw/TF2HUD.Editor/master/src/HUDEditor/JSON/Schema/schema.json",
33
"Author": "CriticalFlaw",
4-
"Description": "Bug fixes and minor visual improvements to the default Team Fortress 2 HUD.",
4+
"Description": "Bug fixes and improvements to the default Team Fortress 2 HUD.",
55
"Thumbnail": "https://user-images.githubusercontent.com/6818236/135371575-a5a7697c-a5d1-43e7-ae59-0369affe99f0.png",
66
"Screenshots": [
77
"https://raw.githubusercontent.com/mastercomfig/hud-db/main/hud-resources/hud-fixes/menu.webp",
@@ -15,8 +15,8 @@
1515
"4 4 4 1"
1616
],
1717
"Links": {
18-
"Update": "https://github.com/CriticalFlaw/TF2HUD-Fixes/archive/refs/heads/main.zip",
19-
"GitHub": "https://github.com/CriticalFlaw/TF2HUD-Fixes",
18+
"Update": "https://github.com/CriticalFlaw/tf2hud-fixes/archive/refs/heads/main.zip",
19+
"GitHub": "https://github.com/CriticalFlaw/tf2hud-fixes",
2020
"ComfigHuds": "https://comfig.app/huds/page/hud-fixes/",
2121
"Discord": "https://discord.gg/hTdtK9vBhE"
2222
},
@@ -28,15 +28,10 @@
2828
"Type": "Checkbox",
2929
"ToolTip": "Toggle crosshair feature.",
3030
"Value": "false",
31-
"Files": {
32-
"resource/ui/#customizations/crosshair/crosshair_base.res": {
33-
"CustomCrosshair": {
34-
"visible": {
35-
"true": "1",
36-
"false": "0"
37-
}
38-
}
39-
}
31+
"WriteFile": {
32+
"FileName": "hud_xhair_visibility.txt",
33+
"TrueText": "x{CustomCrosshair{visible 1}}",
34+
"FalseText": "x{CustomCrosshair{visible 0}}"
4035
}
4136
},
4237
{
@@ -122,46 +117,26 @@
122117
"Gameplay": [
123118
{
124119
"Name": "tf_toggle_disguise_image",
125-
"Label": "Spy Disguise Image",
120+
"Label": "Hide Disguise Outline",
126121
"Type": "Checkbox",
127122
"ToolTip": "Toggle the spy silhouette seen while changing disguises.",
128-
"Value": "true",
129-
"Files": {
130-
"resource/ui/#customizations/spy_disguise/spy_disguise_base.res": {
131-
"PlayerStatusSpyOutlineImage": {
132-
"image": {
133-
"true": "../hud/class_spy_outline",
134-
"false": "replay/thumbnails/blank"
135-
}
136-
}
137-
}
123+
"Value": "false",
124+
"WriteFile": {
125+
"FileName": "hud_spy_disguise.txt",
126+
"TrueText": "x{PlayerStatusSpyOutlineImage{image replay/thumbnails/blank}}",
127+
"FalseText": ""
138128
}
139129
},
140130
{
141131
"Name": "tf_toggle_player_model",
142-
"Label": "Hide 3D Player Model",
132+
"Label": "Hide Player Model",
143133
"Type": "Checkbox",
144134
"ToolTip": "Hides the player character model seen on the bottom left of the screen.",
145135
"Value": "false",
146-
"Files": {
147-
"resource/ui/#customizations/player_model/player_model_base.res": {
148-
"classmodelpanel": {
149-
"wide": {
150-
"true": "0",
151-
"false": "100"
152-
},
153-
"wide_minmode": {
154-
"true": "0",
155-
"false": "52"
156-
}
157-
},
158-
"classmodelpanelBG": {
159-
"wide": {
160-
"true": "0",
161-
"false": "109"
162-
}
163-
}
164-
}
136+
"WriteFile": {
137+
"FileName": "hud_player_model.txt",
138+
"TrueText": "x{classmodelpanel{tall 200 tall_minmode 102} classmodelpanelBG {tall 50 tall_minmode 50}}",
139+
"FalseText": "x{classmodelpanel{tall 0 tall_minmode 0} classmodelpanelBG {tall 0 tall_minmode 0}}"
165140
}
166141
},
167142
{
@@ -171,15 +146,10 @@
171146
"ToolTip": "Toggle transparent viewmodels.",
172147
"Special": "TransparentViewmodels",
173148
"Value": "false",
174-
"Files": {
175-
"resource/ui/#customizations/transparent_viewmodels/transparent_viewmodels_base.res": {
176-
"TransparentViewmodel": {
177-
"visible": {
178-
"true": "1",
179-
"false": "0"
180-
}
181-
}
182-
}
149+
"WriteFile": {
150+
"FileName": "hud_transparent_viewmodels.txt",
151+
"TrueText": "x{TransparentViewmodel{visible 1}}",
152+
"FalseText": ""
183153
}
184154
},
185155
{
@@ -293,6 +263,19 @@
293263
}
294264
}
295265
},
266+
{
267+
"Name": "tf_toggle_speedometer",
268+
"Label": "Show Speedometer",
269+
"Type": "Checkbox",
270+
"ToolTip": "Toggle speedometer under the crosshair.",
271+
"Width": 200,
272+
"Value": "false",
273+
"WriteFile": {
274+
"FileName": "hud_speedometer.txt",
275+
"TrueText": "x{Speedometer{visible 1}}",
276+
"FalseText": "x{Speedometer{visible 0}}"
277+
}
278+
},
296279
{
297280
"Name": "tf_val_killfeed_rows",
298281
"Label": "Killfeed Rows",

0 commit comments

Comments
 (0)