From 3e97f542888b3f7a1f0b0d59bdbeb38ced4f1be1 Mon Sep 17 00:00:00 2001 From: arbabf Date: Tue, 7 Jan 2025 20:08:40 +1100 Subject: [PATCH] HudMessage spans the full width of the screen --- .../scripts/hudlayout.res | 722 ++++++++++++++++++ 1 file changed, 722 insertions(+) create mode 100644 VPKs/episodic_mapbase_content/scripts/hudlayout.res diff --git a/VPKs/episodic_mapbase_content/scripts/hudlayout.res b/VPKs/episodic_mapbase_content/scripts/hudlayout.res new file mode 100644 index 0000000..af7625e --- /dev/null +++ b/VPKs/episodic_mapbase_content/scripts/hudlayout.res @@ -0,0 +1,722 @@ +"Resource/HudLayout.res" +{ + HudHealth [$WIN32] + { + "fieldName" "HudHealth" + "xpos" "16" + "ypos" "432" + "wide" "102" + "tall" "36" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "text_xpos" "8" + "text_ypos" "20" + "digit_xpos" "50" + "digit_ypos" "2" + } + HudHealth [$X360] + { + "fieldName" "HudHealth" + "xpos" "48" + "ypos" "416" + "wide" "115" + "tall" "36" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "text_xpos" "8" + "text_ypos" "18" + "digit_xpos" "60" + "digit_ypos" "-1" + } + + HudSuit [$WIN32] + { + "fieldName" "HudSuit" + "xpos" "140" + "ypos" "432" + "wide" "108" + "tall" "36" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "text_xpos" "8" + "text_ypos" "20" + "digit_xpos" "50" + "digit_ypos" "2" + } + HudSuit [$X360] + { + "fieldName" "HudSuit" + "xpos" "176" + "ypos" "416" + "wide" "117" + "tall" "36" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "text_xpos" "8" + "text_ypos" "18" + "digit_xpos" "50" + "digit_ypos" "-1" + } + + HudAmmo [$WIN32] + { + "fieldName" "HudAmmo" + "xpos" "r150" + "ypos" "432" + "wide" "136" + "tall" "36" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "text_xpos" "8" + "text_ypos" "20" + "digit_xpos" "44" + "digit_ypos" "2" + "digit2_xpos" "98" + "digit2_ypos" "16" + } + HudAmmo [$X360] + { + "fieldName" "HudAmmo" + "xpos" "r208" + "ypos" "416" + "wide" "160" + "tall" "36" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "text_xpos" "8" + "text_ypos" "18" + "digit_xpos" "60" + "digit_ypos" "-1" + "digit2_xpos" "120" + "digit2_ypos" "14" + } + + HudAmmoSecondary [$WIN32] + { + "fieldName" "HudAmmoSecondary" + "xpos" "r76" + "ypos" "432" + "wide" "60" + "tall" "36" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "text_xpos" "8" + "text_ypos" "22" + "digit_xpos" "36" + "digit_ypos" "2" + } + HudAmmoSecondary [$X360] + { + "fieldName" "HudAmmoSecondary" + "xpos" "r113" + "ypos" "416" + "wide" "65" + "tall" "36" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "text_xpos" "8" + "text_ypos" "22" + "digit_xpos" "36" + "digit_ypos" "-1" + } + + HudPosture [$WIN32] + { + "fieldName" "HudPosture" + "visible" "1" + "PaintBackgroundType" "2" + "xpos" "16" + "ypos" "316" + "tall" "36" + "wide" "36" + "font" "WeaponIconsSmall" + "icon_xpos" "10" + "icon_ypos" "0" + } + HudPosture [$X360] + { + "fieldName" "HudPosture" + "visible" "1" + "PaintBackgroundType" "2" + "xpos" "48" + "ypos" "316" + "tall" "36" + "wide" "36" + "font" "WeaponIconsSmall" + "icon_xpos" "10" + "icon_ypos" "2" + } + + HudSuitPower [$WIN32] + { + "fieldName" "HudSuitPower" + "visible" "1" + "enabled" "1" + "xpos" "16" + "ypos" "396" + "wide" "102" + "tall" "26" + + "AuxPowerLowColor" "255 0 0 220" + "AuxPowerHighColor" "255 220 0 220" + "AuxPowerDisabledAlpha" "70" + + "BarInsetX" "8" + "BarInsetY" "15" + "BarWidth" "92" + "BarHeight" "4" + "BarChunkWidth" "6" + "BarChunkGap" "3" + + "text_xpos" "8" + "text_ypos" "4" + "text2_xpos" "8" + "text2_ypos" "22" + "text2_gap" "10" + + "PaintBackgroundType" "2" + } + HudSuitPower [$X360] + { + "fieldName" "HudSuitPower" + "visible" "1" + "enabled" "1" + "xpos" "48" + "ypos" "370" + "wide" "102" + "tall" "26" + + "AuxPowerLowColor" "255 100 0 220" + "AuxPowerHighColor" "255 220 0 220" + "AuxPowerDisabledAlpha" "70" + + "BarInsetX" "8" + "BarInsetY" "19" + "BarWidth" "92" + "BarHeight" "5" + "BarChunkWidth" "6" + "BarChunkGap" "3" + + "text_xpos" "8" + "text_ypos" "4" + "text2_xpos" "8" + "text2_ypos" "25" + "text2_gap" "12" + + "PaintBackgroundType" "2" + } + + HudFlashlight + { + "fieldName" "HudFlashlight" + "visible" "1" + "PaintBackgroundType" "2" + "xpos" "270" [$WIN32] + "ypos" "444" [$WIN32] + "xpos_hidef" "306" [$X360] // aligned to left + "xpos_lodef" "c-18" [$X360] // centered in screen + "ypos" "428" [$X360] + "tall" "24" + "wide" "36" + "font" "WeaponIconsSmall" + + "icon_xpos" "4" + "icon_ypos" "-8" + + "BarInsetX" "4" + "BarInsetY" "18" + "BarWidth" "28" + "BarHeight" "2" + "BarChunkWidth" "2" + "BarChunkGap" "1" + } + + HudLocator + { + "fieldName" "HudLocator" + "visible" "1" + "PaintBackgroundType" "2" + "xpos" "c8" [$WIN32] + "ypos" "r36" [$WIN32] + "xpos" "c-32" [$X360] + "ypos_hidef" "r52" [$X360] + "ypos_lodef" "r95" [$X360] // 52 is aligned to bottom of HudSuit + "wide" "64" + "tall" "24" + } + + HudDamageIndicator + { + "fieldName" "HudDamageIndicator" + "visible" "1" + "enabled" "1" + "DmgColorLeft" "255 0 0 0" + "DmgColorRight" "255 0 0 0" + + "dmg_xpos" "30" + "dmg_ypos" "100" + "dmg_wide" "36" + "dmg_tall1" "240" + "dmg_tall2" "200" + } + + HudZoom + { + "fieldName" "HudZoom" + "visible" "1" + "enabled" "1" + "Circle1Radius" "66" + "Circle2Radius" "74" + "DashGap" "16" + "DashHeight" "4" [$WIN32] + "DashHeight" "6" [$X360] + "BorderThickness" "88" + } + + HudWeaponSelection + { + "fieldName" "HudWeaponSelection" + "ypos" "16" [$WIN32] + "ypos" "32" [$X360] + "visible" "1" + "enabled" "1" + "SmallBoxSize" "32" + "MediumBoxWide" "95" + "MediumBoxWide_hidef" "78" + "MediumBoxTall" "50" + "MediumBoxTall_hidef" "50" + "MediumBoxWide_lodef" "74" + "MediumBoxTall_lodef" "50" + "LargeBoxWide" "112" + "LargeBoxTall" "80" + "BoxGap" "8" + "SelectionNumberXPos" "4" + "SelectionNumberYPos" "4" + "SelectionGrowTime" "0.4" + "TextYPos" "64" + } + + HudCrosshair + { + "fieldName" "HudCrosshair" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudDeathNotice + { + "fieldName" "HudDeathNotice" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudVehicle + { + "fieldName" "HudVehicle" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + ScorePanel + { + "fieldName" "ScorePanel" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudTrain + { + "fieldName" "HudTrain" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudMOTD + { + "fieldName" "HudMOTD" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudMessage + { + "fieldName" "HudMessage" + "visible" "1" + "enabled" "1" + "wide" "f0" + "tall" "480" + } + + HudMenu + { + "fieldName" "HudMenu" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudCloseCaption + { + "fieldName" "HudCloseCaption" + "visible" "0" + "enabled" "1" + "xpos" "c-250" + "ypos" "276" [$WIN32] + "ypos_hidef" "236" [$X360] + "ypos_lodef" "206" [$X360] //236 + "wide" "500" + "tall" "136" [$WIN32] + "tall" "176" [$X360] + + "BgAlpha" "128" + + "GrowTime" "0.25" + "ItemHiddenTime" "0.2" // Nearly same as grow time so that the item doesn't start to show until growth is finished + "ItemFadeInTime" "0.15" // Once ItemHiddenTime is finished, takes this much longer to fade in + "ItemFadeOutTime" "0.3" + "topoffset" "0" [$WIN32] + "topoffset" "40" [$X360] + } + + HudChat + { + "fieldName" "HudChat" + "visible" "0" + "enabled" "1" + "xpos" "0" + "ypos" "0" + "wide" "4" + "tall" "4" + } + + HudHistoryResource [$WIN32] + { + "fieldName" "HudHistoryResource" + "visible" "1" + "enabled" "1" + "xpos" "r252" + "ypos" "40" + "wide" "248" + "tall" "320" + + "history_gap" "56" [!$OS] + "history_gap" "64" [$OSX] + "icon_inset" "38" + "text_inset" "36" + "NumberFont" "HudNumbersSmall" + } + HudHistoryResource [$X360] + { + "fieldName" "HudHistoryResource" + "visible" "1" + "enabled" "1" + "xpos" "r300" + "ypos" "40" + "wide" "248" + "tall" "240" + + "history_gap" "56" + "icon_inset" "38" + "text_inset" "36" + "NumberFont" "HudNumbersSmall" + } + + HudGeiger + { + "fieldName" "HudGeiger" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HUDQuickInfo + { + "fieldName" "HUDQuickInfo" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudWeapon + { + "fieldName" "HudWeapon" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + HudAnimationInfo + { + "fieldName" "HudAnimationInfo" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudPredictionDump + { + "fieldName" "HudPredictionDump" + "visible" "1" + "enabled" "1" + "wide" "640" + "tall" "480" + } + + HudHintDisplay + { + "fieldName" "HudHintDisplay" + "visible" "0" + "enabled" "1" + "Alpha" "0" // Remove this to enable hint hud element + "xpos" "r120" [$WIN32] + "ypos" "r340" [$WIN32] + "xpos" "r148" [$X360] + "ypos" "r338" [$X360] + "wide" "100" + "tall" "200" + "text_xpos" "8" + "text_ypos" "8" + "text_xgap" "8" + "text_ygap" "8" + "TextColor" "255 170 0 220" + + "PaintBackgroundType" "2" + } + + HudHintKeyDisplay + { + "fieldName" "HudHintKeyDisplay" + "visible" "0" + "enabled" "1" + "xpos" "r120" [$WIN32] + "ypos" "r340" [$WIN32] + "xpos" "r148" [$X360] + "ypos" "r338" [$X360] + "wide" "100" + "tall" "200" + "text_xpos" "8" + "text_ypos" "8" + "text_xgap" "8" + "text_ygap" "8" + "TextColor" "255 170 0 220" + + "PaintBackgroundType" "2" + } + + + HudSquadStatus [$WIN32] + { + "fieldName" "HudSquadStatus" + "visible" "1" + "enabled" "1" + "xpos" "r120" + "ypos" "380" + "wide" "104" + "tall" "46" + "text_xpos" "8" + "text_ypos" "34" + "SquadIconColor" "255 220 0 160" + "IconInsetX" "8" + "IconInsetY" "0" + "IconGap" "24" + + "PaintBackgroundType" "2" + } + HudSquadStatus [$X360] + { + "fieldName" "HudSquadStatus" + "visible" "1" + "enabled" "1" + "xpos" "r182" + "ypos" "348" + "wide" "134" + "tall" "62" + "text_xpos" "8" + "text_ypos" "44" + "SquadIconColor" "255 220 0 160" + "IconInsetX" "8" + "IconInsetY" "-4" + "IconGap" "24" + "IconFont" "SquadIcon" + + "PaintBackgroundType" "2" + } + + HudPoisonDamageIndicator [$WIN32] + { + "fieldName" "HudPoisonDamageIndicator" + "visible" "0" + "enabled" "1" + "xpos" "16" + "ypos" "346" + "wide" "136" + "tall" "38" + "text_xpos" "8" + "text_ypos" "8" + "text_ygap" "14" + "TextColor" "255 170 0 220" + "PaintBackgroundType" "2" + } + HudPoisonDamageIndicator [$X360] + { + "fieldName" "HudPoisonDamageIndicator" + "visible" "0" + "enabled" "1" + "xpos" "48" + "ypos" "264" + "wide" "192" + "tall" "46" + "text_xpos" "8" + "text_ypos" "6" + "text_ygap" "16" + "TextColor" "255 170 0 220" + "PaintBackgroundType" "2" + } + + HudCredits + { + "fieldName" "HudCredits" + "TextFont" "Default" + "visible" "1" + "xpos" "0" + "ypos" "0" + "wide" "640" + "tall" "480" + "TextColor" "255 255 255 192" + + } + + HUDAutoAim + { + "fieldName" "HUDAutoAim" + "visible" "1" + "enabled" "1" + "wide" "640" [$WIN32] + "tall" "480" [$WIN32] + "wide" "960" [$X360] + "tall" "720" [$X360] + } + + HudCommentary + { + "fieldName" "HudCommentary" + "xpos" "c-190" + "ypos" "350" + "wide" "380" + "tall" "40" + "visible" "1" + "enabled" "1" + + "PaintBackgroundType" "2" + + "bar_xpos" "50" + "bar_ypos" "20" + "bar_height" "8" + "bar_width" "320" + "speaker_xpos" "50" + "speaker_ypos" "8" + "count_xpos_from_right" "10" // Counts from the right side + "count_ypos" "8" + + "icon_texture" "vgui/hud/icon_commentary" + "icon_xpos" "0" + "icon_ypos" "0" + "icon_width" "40" + "icon_height" "40" + } + + HudHDRDemo + { + "fieldName" "HudHDRDemo" + "xpos" "0" + "ypos" "0" + "wide" "640" + "tall" "480" + "visible" "1" + "enabled" "1" + + "Alpha" "255" + "PaintBackgroundType" "2" + + "BorderColor" "0 0 0 255" + "BorderLeft" "16" + "BorderRight" "16" + "BorderTop" "16" + "BorderBottom" "64" + "BorderCenter" "0" + + "TextColor" "255 255 255 255" + "LeftTitleY" "422" + "RightTitleY" "422" + } + "HudChatHistory" + { + "ControlName" "RichText" + "fieldName" "HudChatHistory" + "xpos" "10" + "ypos" "290" + "wide" "300" + "tall" "75" + "wrap" "1" + "autoResize" "1" + "pinCorner" "1" + "visible" "0" + "enabled" "1" + "labelText" "" + "textAlignment" "south-west" + "font" "Default" + "maxchars" "-1" + } + + AchievementNotificationPanel + { + "fieldName" "AchievementNotificationPanel" + "visible" "1" + "enabled" "1" + "xpos" "0" + "ypos" "180" + "wide" "f10" [$WIN32] + "wide" "f60" [$X360] + "tall" "100" + } +} \ No newline at end of file