Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions PackageScript
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ for task in MMSPlugin.tasks:
materials_cs2f_folder = builder.AddFolder(os.path.join(packages[sdk_name].sdk_name, 'materials', MMSPlugin.metadata['name']))
builder.AddCopy(os.path.join('assets', 'materials', MMSPlugin.metadata['name'], 'leader_defend_mark.vtex_c'), materials_cs2f_folder)

panorama_layout_cs2f_folder = builder.AddFolder(os.path.join(packages[sdk_name].sdk_name, 'panorama', 'layout', 'custom_game', MMSPlugin.metadata['name']))
builder.AddCopy(os.path.join('assets', 'panorama', 'layout', 'custom_game', MMSPlugin.metadata['name'], 'entwatch_hud.vxml_c'), panorama_layout_cs2f_folder)
builder.AddCopy(os.path.join('assets', 'panorama', 'layout', 'custom_game', MMSPlugin.metadata['name'], 'entwatch_settings.vxml_c'), panorama_layout_cs2f_folder)

panorama_styles_cs2f_folder = builder.AddFolder(os.path.join(packages[sdk_name].sdk_name, 'panorama', 'styles', 'custom_game', MMSPlugin.metadata['name']))
builder.AddCopy(os.path.join('assets', 'panorama', 'styles', 'custom_game', MMSPlugin.metadata['name'], 'entwatch_common.vcss_c'), panorama_styles_cs2f_folder)
builder.AddCopy(os.path.join('assets', 'panorama', 'styles', 'custom_game', MMSPlugin.metadata['name'], 'entwatch_hud.vcss_c'), panorama_styles_cs2f_folder)
builder.AddCopy(os.path.join('assets', 'panorama', 'styles', 'custom_game', MMSPlugin.metadata['name'], 'entwatch_settings.vcss_c'), panorama_styles_cs2f_folder)

soundevents_folder = builder.AddFolder(os.path.join(packages[sdk_name].sdk_name, 'soundevents'))
builder.AddCopy(os.path.join('assets', 'soundevents', 'soundevents_zr.vsndevts_c'), soundevents_folder)

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
333 changes: 333 additions & 0 deletions assets_source/panorama/layout/custom_game/cs2fixes/entwatch_hud.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
<root>
<styles>
<include src="file://{resources}/styles/custom_game/cs2fixes/entwatch_settings.css" />
</styles>
<Panel class="Root" hittest="false">
<Panel id="SettingsPanel" class="SettingsPanel Hidden" hittest="false">
<Panel class="SettingsColumn" hittest="false">
<Panel class="TogglePanel" hittest="false">
<Panel class="SettingRow ToggleRow" hittest="false">
<Label class="SettingName" text="EntWatch HUD" hittest="false" />
<Button id="ToggleEntWatchHud" class="ToggleButton">
<Panel hittest="false" class="ToggleKnob" />
</Button>
</Panel>

<Panel class="SettingRow ToggleRow" hittest="false">
<Label hittest="false" class="SettingName" text="Player Names" />
<Button id="TogglePlayerNames" class="ToggleButton Selected">
<Panel hittest="false" class="ToggleKnob" />
</Button>
</Panel>
</Panel>
<Panel class="PositionControls" hittest="false">
<Label hittest="false" class="SectionTitle" text="Position" />

<Panel class="AdjustmentRow" hittest="false">
<Button id="PositionXMinus10" class="AdjustmentButton">
<Label hittest="false" text="-10" />
</Button>
<Button id="PositionXMinus1" class="AdjustmentButton">
<Label hittest="false" text="-1" />
</Button>
<Panel hittest="false" class="HudPosLabel">
<Label hittest="false" class="AxisLabelText" id="HudPosXValue" text="{s:HudPosX}" />
<Label hittest="false" class="AxisLabel" text="&#x2194;" />
</Panel>
<Button id="PositionXPlus1" class="AdjustmentButton">
<Label hittest="false" text="+1" />
</Button>
<Button id="PositionXPlus10" class="AdjustmentButton">
<Label hittest="false" text="+10" />
</Button>
</Panel>

<Panel class="AdjustmentRow" hittest="false">
<Button id="PositionYMinus10" class="AdjustmentButton">
<Label hittest="false" text="-10" />
</Button>
<Button id="PositionYMinus1" class="AdjustmentButton">
<Label hittest="false" text="-1" />
</Button>
<Panel hittest="false" class="HudPosLabel">
<Label hittest="false" class="AxisLabelText" id="HudPosYValue" text="{s:HudPosY}" />
<Label hittest="false" class="AxisLabel" text="&#x2195;" />
</Panel>
<Button id="PositionYPlus1" class="AdjustmentButton">
<Label hittest="false" text="+1" />
</Button>
<Button id="PositionYPlus10" class="AdjustmentButton">
<Label hittest="false" text="+10" />
</Button>
</Panel>
</Panel>

<Panel class="HudSizeControls" hittest="false">
<Label hittest="false" class="SectionTitle" text="Hud Size" />
<Panel class="SizeRow">
<Button id="HudSizeMinus" class="AdjustmentButton SizeButton">
<Label hittest="false" text="-" />
</Button>
<Label hittest="false" id="HudSizeValue" class="SizeValue" text="{s:Scale}%" />
<Button id="HudSizePlus" class="AdjustmentButton SizeButton">
<Label hittest="false" text="+" />
</Button>
</Panel>
</Panel>
</Panel>

<Panel class="ColorColumn" hittest="false">
<Panel class="ColorHeader" hittest="false">
<Label hittest="false" class="SectionTitle ColorTitle" text="Color" />
</Panel>
<Panel class="ColorList" >
<Button id="ColorPanel-0" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-0" />
<Label hittest="false" id="ColorLabel-0" class="ColorLabel HudColour-0" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-0" />
</Button>
<Button id="ColorPanel-1" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-1" />
<Label hittest="false" id="ColorLabel-1" class="ColorLabel HudColour-1" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-1" />
</Button>
<Button id="ColorPanel-2" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-2" />
<Label hittest="false" id="ColorLabel-2" class="ColorLabel HudColour-2" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-2" />
</Button>
<Button id="ColorPanel-3" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-3" />
<Label hittest="false" id="ColorLabel-3" class="ColorLabel HudColour-3" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-3" />
</Button>
<Button id="ColorPanel-4" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-4" />
<Label hittest="false" id="ColorLabel-4" class="ColorLabel HudColour-4" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-4" />
</Button>
<Button id="ColorPanel-5" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-5" />
<Label hittest="false" id="ColorLabel-5" class="ColorLabel HudColour-5" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-5" />
</Button>
<Button id="ColorPanel-6" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-6" />
<Label hittest="false" id="ColorLabel-6" class="ColorLabel HudColour-6" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-6" />
</Button>
<Button id="ColorPanel-7" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-7" />
<Label hittest="false" id="ColorLabel-7" class="ColorLabel HudColour-7" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-7" />
</Button>
<Button id="ColorPanel-8" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-8" />
<Label hittest="false" id="ColorLabel-8" class="ColorLabel HudColour-8" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-8" />
</Button>
<Button id="ColorPanel-9" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-9" />
<Label hittest="false" id="ColorLabel-9" class="ColorLabel HudColour-9" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-9" />
</Button>
<Button id="ColorPanel-10" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-10" />
<Label hittest="false" id="ColorLabel-10" class="ColorLabel HudColour-10" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-10" />
</Button>
<Button id="ColorPanel-11" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-11" />
<Label hittest="false" id="ColorLabel-11" class="ColorLabel HudColour-11" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-11" />
</Button>
<Button id="ColorPanel-12" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-12" />
<Label hittest="false" id="ColorLabel-12" class="ColorLabel HudColour-12" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-12" />
</Button>
<Button id="ColorPanel-13" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-13" />
<Label hittest="false" id="ColorLabel-13" class="ColorLabel HudColour-13" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-13" />
</Button>
<Button id="ColorPanel-14" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-14" />
<Label hittest="false" id="ColorLabel-14" class="ColorLabel HudColour-14" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-14" />
</Button>
<Button id="ColorPanel-15" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-15" />
<Label hittest="false" id="ColorLabel-15" class="ColorLabel HudColour-15" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-15" />
</Button>
<Button id="ColorPanel-16" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-16" />
<Label hittest="false" id="ColorLabel-16" class="ColorLabel HudColour-16" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-16" />
</Button>
<Button id="ColorPanel-17" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-17" />
<Label hittest="false" id="ColorLabel-17" class="ColorLabel HudColour-17" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-17" />
</Button>
<Button id="ColorPanel-18" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-18" />
<Label hittest="false" id="ColorLabel-18" class="ColorLabel HudColour-18" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-18" />
</Button>
<Button id="ColorPanel-19" class="ColorPanel">
<Panel hittest="false" class="ColorSquare HudColour-19" />
<Label hittest="false" id="ColorLabel-19" class="ColorLabel HudColour-19" text="{s:ColorName}" />
<Panel hittest="false" class="ColorSquareEnd HudColour-19" />
</Button>
</Panel>
</Panel>
<Button id="CloseButton" class="CloseButton">
<Label hittest="false" text="X" />
</Button>
</Panel>
</Panel>
</root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
@define hud-color-0: #ffffffff; /* White */
@define hud-color-1: #808080ff; /* Gray */
@define hud-color-2: #ff0000ff; /* Red */
@define hud-color-3: #ff8060ff; /* Coral */
@define hud-color-4: #ff8000ff; /* Orange */
@define hud-color-5: #ffff00ff; /* Yellow */
@define hud-color-6: #80D000ff; /* Olive */
@define hud-color-7: #00ff00ff; /* Lime */
@define hud-color-8: #00ff80ff; /* Emerald */
@define hud-color-9: #80ffc0ff; /* Mint */
@define hud-color-10: #00ffffff; /* Cyan */
@define hud-color-11: #80c0ffff; /* Sky */
@define hud-color-12: #0080ffff; /* Blue */
@define hud-color-13: #0000ffff; /* Navy */
@define hud-color-14: #8000ffff; /* Purple */
@define hud-color-15: #c080ffff; /* Lavender */
@define hud-color-16: #ff00ffff; /* Magenta */
@define hud-color-17: #ff0080ff; /* Rose */
@define hud-color-18: #ff80c0ff; /* Pink */
@define hud-color-19: #804000ff; /* Brown */


.HudColour-0 { wash-color: hud-color-0; }
.HudColour-1 { wash-color: hud-color-1; }
.HudColour-2 { wash-color: hud-color-2; }
.HudColour-3 { wash-color: hud-color-3; }
.HudColour-4 { wash-color: hud-color-4; }
.HudColour-5 { wash-color: hud-color-5; }
.HudColour-6 { wash-color: hud-color-6; }
.HudColour-7 { wash-color: hud-color-7; }
.HudColour-8 { wash-color: hud-color-8; }
.HudColour-9 { wash-color: hud-color-9; }
.HudColour-10 { wash-color: hud-color-10; }
.HudColour-11 { wash-color: hud-color-11; }
.HudColour-12 { wash-color: hud-color-12; }
.HudColour-13 { wash-color: hud-color-13; }
.HudColour-14 { wash-color: hud-color-14; }
.HudColour-15 { wash-color: hud-color-15; }
.HudColour-16 { wash-color: hud-color-16; }
.HudColour-17 { wash-color: hud-color-17; }
.HudColour-18 { wash-color: hud-color-18; }
.HudColour-19 { wash-color: hud-color-19; }

.Scale-50 {ui-scale:50%;}
.Scale-55 {ui-scale:55%;}
.Scale-60 {ui-scale:60%;}
.Scale-65 {ui-scale:65%;}
.Scale-70 {ui-scale:70%;}
.Scale-75 {ui-scale:75%;}
.Scale-80 {ui-scale:80%;}
.Scale-85 {ui-scale:85%;}
.Scale-90 {ui-scale:90%;}
.Scale-95 {ui-scale:95%;}
.Scale-100 {ui-scale:100%;}
.Scale-105 {ui-scale:105%;}
.Scale-110 {ui-scale:110%;}
.Scale-115 {ui-scale:115%;}
.Scale-120 {ui-scale:120%;}
.Scale-125 {ui-scale:125%;}
.Scale-130 {ui-scale:130%;}
.Scale-135 {ui-scale:135%;}
.Scale-140 {ui-scale:140%;}
.Scale-145 {ui-scale:145%;}
.Scale-150 {ui-scale:150%;}
Loading