left4dead
+missions
目录用途是存放地图任务
//DeadLine代码
"mission"
{
"Name" "DeadLine"
"Version" "1"
"Author" "紫冰"
"Website" "#L4D360UI_Campaign_Dead_Line" //地图网址信息(STEAM组大厅显示)
"BuiltIn" "1"
"DisplayTitle" "#L4D360UI_Campaign_Dead_Line" //地图名称(战役-附加战役中)
"Description" "#L4D_ZB_2to1_fix" //地图简介(同上)
"OuttroImage" "vgui/outroTitle_deadline" //地图图标(同上)
// No loading poster data
"poster"
{
"posterImage" "loadingscreen_deadline"
"posterTitle" ""
"posterTitle_y" "340"
"posterTagline" "Buried by the flood!"
"posterTagline_y" "360"
"bill_player_name_x" "-130"
"bill_player_name_y" "15"
"louis_player_name_x" "130"
"louis_player_name_y" "30"
"zoey_player_name_x" "50"
"zoey_player_name_y" "70"
"francis_player_name_x" "-40"
"francis_player_name_y" "40"
}
"modes"
{
"coop"
{
"1"
{
"Map" "tutorial_standards"
"DisplayName" "#L4D360UI_Chapter_DeadLine" //地图关卡名称(链接L4D360UI设置值)
"Image" "maps/any"
}
}
} // "modes"
}// "mission"
+resource
dropdownmission.res(战役菜单界面)
文件路径:ui\l4d360ui\
"PnlBackground"
{
"ControlName" "Panel"
"fieldName" "PnlBackground"
"xpos" "0"
"ypos" "0"
"zpos" "-1"
"wide" "200" //地图菜单面板宽度
"tall" "365" //地图菜单面板高度
"visible" "1"
"enabled" "1"
"paintbackground" "1"
"paintborder" "1"
}
"BtnDeadCenter"
{
"ControlName" "L4D360HybridButton"
"fieldName" "BtnDeadCenter" //按钮名称(任意名称不重复)
"xpos" "0"
"ypos" "180" //按钮Y坐标
"wide" "150" //按钮宽度
"tall" "20" //按钮高度
"autoResize" "1" //自动缩放文字
"pinCorner" "0"
"visible" "1" //是否可见
"enabled" "1" //是否生效
"tabPosition" "0"
"wrap" "1"
"navUp" "BtnRiver" //方向键选择导航(按方向决定选择的地图,如向上选牺牲)
"navDown" "BtnThePassing" //向下选择(同上)
"navLeft" "BtnHospitalB" //向左选择(同上)
"navRight" "BtnHospitalB" //向右选择(同上)
"labelText" "#L4D360UI_Campaign_DeadCenter" //战役(链接L4D360UI中的设定值)
"tooltiptext" "#L4D360UI_Campaign_Tooltip_DeadCenter" //工具栏提示文本(如图中,向仁慈医院进发)
"disabled_tooltiptext" "#L4D360UI_Campaign_Tooltip_DeadCenter_Disabled" //当前模式不支持时显示提示文本
"style" "FlyoutMenuButton"
"command" "cmd_campaign_L4D2C1" //地图名称(链接mission目录中战役txt文件里的name设置值)
"command" "cmd_campaign_DeadCenter"
}
"Name" "DeadCenter"[关联mission目录下同名.txt文件]
如果addons的VPK中含有此mission目录和文件则优先权高于目录中的mission
新地图添加进游戏菜单
地图:(站台) 的为例:
1.新建一个DeadLine.txt文件,将上面DeadLine代码复制进来并保存.
2.将他按照VPK目录格式保存到mission中
3.该VPK保存在addons优先加载目录下