Win Panels

 Win Panels.

Updated Nov 2010.
If you already know a bit about editing these you will know what a pest they are.
There are some ways to make this easy.
Step 1. Open the ClientScheme.res file, find "Label.BgColor" "blank" Change that to "255 255 255 50"
What this will do is to highlight the labels and you can see the defined areas like "wide" and "tall" and where "xpos" and "ypos" start.
Step 2. Add a couple of binds to you autocfg.cfg file...

bind "KP_END" "hud_reloadscheme"
bind "KP_PGDN" "sv_cheats 1; dod_test_winpanel"
Step 3. Set up dods so you run in a window, so you can exit easy, change the file, save and return to the game.

If you are set up like that, you open "Resource/UI/Win_Allies.res" and start editing. When you want to see the change...
Start the game, join Allies. Press your KP_PGDN bind, this will set sv_cheats and display a false winpanel with all the categories.
Now press escape and edit your file again, save it. When you return to the game, press "KP_END" the "hud_reloadscheme" command will refresh and the winpanel will disappear.
Press the "KP_PGDN" key again and you will now see the new changes. Looks like this when editing that way...
thumb_adjust_win_panel










Older Tutorial
Note: since written this has got avatars like in the image above, some of the sections do not describe these but it is OK for stuff outside them.
You are far better off doing a copy of mine, use the above steps to highlight your unseen areas, it is just too tricky otherwise :) Don't forget that the win panels are two files in the resource/ui and the Hud_layout,res in the scripts folder, read on...

Getting rid of the Icons, default panel and move it down.
I didn't like a great big message in the middle of the screen... I like to see what I am doing :)

There are three separate files to edit these completely....

Win_Allies.res found in
dod/resource/UI. For changing the Allies items inside the panels.
Win_Axis.res found in dod/resource/UI. For changing the Axis items inside the panels.

HudLayout.res file found in dod/scripts. For moving both panels positions around as a whole "unit".

To make the display smaller and clear up the clutter a bit I adjusted the HudLayout.res file in a couple of places, below is my adjusted one, with the defaults and description....


WinPanel_Allies
Axis = "WinPanel_Axis" (edit Win_Axis.res separate file).
{
"fieldName" "WinPanel_Allies"
Axis = "WinPanel_Axis"
"visible" "1"
"enabled" "1"
"xpos" "120"
//default "c-150" The L/R pos of the whole panel.
"ypos" "408" // default "c20" The U/D pos of the whole panel.
"wide" "305" // default "300" How wide the panel is.
"tall" "70" // default "145" How high the panel is.
"PaintBackgroundType" "2" // default "2" this makes rounded corners on the panel.
"PaintBackground" "0" // This is added to remove the panel, we will add another latter.

"icon_ypos" "4"
//Team icon height.
"icon_xpos_left" "4" // The L/R pos of the Left Team icon.
"icon_xpos_right" "264" // The L/R pos of the Right Team icon.
"icon_w" "0" // default "32" width ("0" removes team icon)
"icon_h" "0" // default "32" height ("0" removes team icon)

"icon_cap_size" "12"
"icon_cap_x" "80"
// default "90" L/R pos' of small "Capper" icons.
"icon_cap_y1" "35" // default "96" up/down pos' of small "Capper" icon 1.
"icon_cap_y2" "45" // default "107" up/down pos' of small "Capper" icon 2.
"icon_cap_y3" "55" // default "118" up/down pos' of small "Capper" icon 3.
"icon_def_x" "230" // same... L/R pos' of small "Defend" icons.
"icon_def_y1" "96" // same... up/down pos' of small "Defend" icon 1.
"icon_def_y2" "107" // same... up/down pos' of small "Defend" icon 2.
"icon_def_y3" "118" // same... up/down pos' of small "Defend" icon 3.

There are two sections you will see like this, one for the Allies (WinPanel_Allies) and one for Axis (WinPanel_Axis). Adjust the Allies section first then, when pleased with it... adjust the Axis section the same. Both will work the same way.

FONT Size and type.
You can also adjust the text size and type in the Win_Allies.res found in dod/resource/UI.

{
"winLabel"
{
"ControlName" "Label"
"fieldName" "welcomeLabel"
"font" "Default" //default "MenuLargeFont"
"xpos" "-68" //default "36" The L/R pos of label.
"ypos" "-10" //default "0" The up/dn pos of label.
"wide" "228"
"tall" "40"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" "#Allies_win"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "1" //default "0" brightens text.


Adjust the font size type and the position of items like this and save the file.

Don't forget to do the Win_Axis.res file the same way as the Win_Allies.res one.


Adding a new background panel.
win_panel1
Remember we got rid of the background? This next bit is needed because it is too hard to replace the color and transparency of the standard one. You have the option of not doing this if you don't want a background.

Add this section in, look how other sections are positioned, "}" use is important !...
{

"Winbackground"
{
"ControlName" "ImagePanel"
"fieldName" "Winbackground"
"xpos" "0"
"ypos" "0"
"wide" "308"
// How wide the new panel is.
"tall" "70" // How high the new panel is.
"PaintBackgroundType" "2"

"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"scaleImage" "0"
"fillcolor" "0 0 0 90"
//Color RBG.. 0 0 0 = Black "90" = Tranparency 0 (nothing) 255 (full).
}


Other things you can do is play with the icons that sit in the panel for defend and capping, I have some custom types in my hud, see my download for the file and edit in PhotoShop or The GIMP.

The small graphics inside the box are....

FlagCaptured.vtf
and Defended.vtf in the ...
dod/materials/sprites/hud Folder.

Please Login to post comments, see the top buttons and join dodbits now!