PDA

View Full Version : Map loading screen


steveo3861
06-15-2007, 09:31 AM
All credit to Dystopia mod team for this, if they request I will take this down.
--------------------------------------------------------------------------------------
Add this to your resource folder
LoadingDialogNoBanner.res

"Resource/LoadingDialog.res"
{
"LoadingDialog"
{
"ControlName" "Frame"
"fieldName" "LoadingDialog"
"xpos" "322"
"ypos" "249"
"wide" "800"
"tall" "600"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
"ImagePanel"
{
"ControlName" "ImagePanel"
"fieldName" "LoadingImage"
"xpos" "20"
"ypos" "20"
"wide" "100" //Image width
"tall" "100" //Image hight
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"image" "image" // image name
"scaleImage" "1"
}
"InfoLabel"
{
"ControlName" "Label"
"fieldName" "InfoLabel"
"xpos" "470"
"ypos" "570"
"wide" "250"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"textAlignment" "west"
"dulltext" "1"
"brighttext" "0"
}
"progress"
{
"ControlName" "ProgressBar"
"fieldName" "Progress"
"xpos" "60"
"ypos" "570"
"wide" "400"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
"CancelButton"
{
"ControlName" "Button"
"fieldName" "CancelButton"
"xpos" "720"
"ypos" "570"
"wide" "72"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#GameUI_Cancel"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "Cancel"
"Default" "0"
}
}

---------------------------------------------------------------------------------------

For VAC servers too:
LoadingDialogVAC.res

"Resource/LoadingDialog.res"
{
"LoadingDialog"
{
"ControlName" "Frame"
"fieldName" "LoadingDialog"
"xpos" "322"
"ypos" "249"
"wide" "800"
"tall" "600"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
"ImagePanel"
{
"ControlName" "ImagePanel"
"fieldName" "LoadingImage"
"xpos" "20"
"ypos" "20"
"wide" "100" //Image width
"tall" "100" //Image hight
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"image" "imagename" //Image Name
"scaleImage" "1"
}
"InfoLabel"
{
"ControlName" "Label"
"fieldName" "InfoLabel"
"xpos" "470"
"ypos" "570"
"wide" "250"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"textAlignment" "west"
"dulltext" "1"
"brighttext" "0"
}
"VACImage"
{
"ControlName" "ImagePanel"
"fieldName" "VACImage"
"xpos" "20"
"ypos" "565"
"wide" "64"
"tall" "64"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"border" ""
"scaleimage" "1"
"image" "resource/icon_vac"
}
"progress"
{
"ControlName" "ProgressBar"
"fieldName" "Progress"
"xpos" "60"
"ypos" "570"
"wide" "400"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
"CancelButton"
{
"ControlName" "Button"
"fieldName" "CancelButton"
"xpos" "720"
"ypos" "570"
"wide" "72"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#GameUI_Cancel"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "Cancel"
"Default" "0"
}
}


Put your .vtf and .vmt in VGUI in materials and refer to the name in these .res files.


================================================== =================

Hey all,
I am trying to add an image to the map loading screen that appears when joining a server. However I cannot find where the files are located in the solution :confused:
Any help appreciated.

Marine
06-15-2007, 09:47 AM
The one that says VAC on it? There's two, one for VAC and one without. I cannot remember for the life of me what it is...

steveo3861
06-15-2007, 10:08 AM
Yeah if anybody knows the name of both of the .cpp files that would be great. I have tried hunting them down but I cannot find them in the solution.

Marine
06-15-2007, 10:16 AM
I think its in the engine, you would have to do the stuff in the VGUI Builder... I think...

steveo3861
06-15-2007, 10:19 AM
VGUI Builder cannot be accessed at map load.
I am sure Dystopia has images on map load.

steveo3861
06-15-2007, 10:55 AM
There are two .res files located in resources, I will see if they work and post them for those who don't have them.