Back to dodbits.com
Copyright dodbits.com 2005            Copyright explained... FFS... show some damn backbone and make your own n00b  :)
The Win Panels.









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.


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.

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.



Back to... DoD Source Customizing your Hud. HUD Main Page