我仿照
http://bbs-mychat.com/reads.php?tid=853805裡頭
製作他這類型選單
也有看這篇
http://bbs-mychat.com/reads.php?tid=799922的文章教學
改好之後選其他新人物,
然後進入遊戲都不會出現新人物,
一直變成內建的原本人物在玩,
這是哪裡出錯,我試了一整天了
真的可以改選單新建人物嗎,還是只是好看而已我該放的\cstrike\models\player 的3個新增人物模組都有放
\cstrike\classes裡也有新增新人物檔案
\cstrike\gfx\vgui里新人物圖片也放了
\resource\cstrike_tchinese.txt都改過了
附一下我選單改的內容
複製程式
"Resource/UI/ClassMenu_CT.res"
{
"ClassMenu"
{
"ControlName" "Frame"
"fieldName" "ClassMenu"
"xpos" "76"
"ypos" "0"
"wide" "552"
"tall" "448"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
}
"SysMenu"
{
"ControlName" "Menu"
"fieldName" "SysMenu"
"xpos" "0"
"ypos" "0"
"wide" "64"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "0"
"enabled" "0"
"tabPosition" "0"
}
"joinClass"
{
"ControlName" "Label"
"fieldName" "joinClass"
"xpos" "0"
"ypos" "22"
"wide" "500"
"tall" "48"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#Cstrike_Join_Class"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"font" "Title"
"wrap" "0"
}
"classInfoLabel"
{
"ControlName" "Label"
"fieldName" "classInfoLabel"
"xpos" "168"
"ypos" "72"
"wide" "180"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "0"
"enabled" "1"
"labelText" "#Cstrike_Class_Info"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "1"
}
"ClassInfo"
{
"ControlName" "Panel"
"fieldName" "ClassInfo"
"xpos" "168"
"ypos" "116"
"wide" "400"
"tall" "380"
"autoResize" "3"
"pinCorner" "0"
"visible" "0"
"enabled" "0"
"tabPosition" "0"
}
"urban"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "urban"
"xpos" "0"
"ypos" "116"
"wide" "75"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#Cstrike_Urban"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "joinclass 1"
}
"gsg9"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "gsg9"
"xpos" "0"
"ypos" "148"
"wide" "75"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "joinclass 2"
"labelText" "#Cstrike_GSG9"
}
"sas"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "sas"
"xpos" "0"
"ypos" "180"
"wide" "75"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "joinclass 3"
"labelText" "#Cstrike_SAS"
}
"gign"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "gign"
"xpos" "0"
"ypos" "212"
"wide" "75"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "joinclass 4"
"labelText" "#Cstrike_GIGN"
}
"18"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "18"
"xpos" "0"
"ypos" "248"
"wide" "75"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "joinclass 5"
"labelText" "#Cstrike_18"
}
"smis"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "smis"
"xpos" "0"
"ypos" "280"
"wide" "75"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "joinclass 6"
"labelText" "#Cstrike_smis"
}
"nio"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "nio"
"xpos" "0"
"ypos" "308"
"wide" "70"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#Cstrike_nio"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "joinclass 7"
}
"autoselect_ct"
{
"ControlName" "MouseOverPanelButton"
"fieldName" "autoselect_ct"
"xpos" "0"
"ypos" "340"
"wide" "148"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "1"
"labelText" ""
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"command" "joinclass 6"
"labelText" "#Cstrike_Auto_Select"
}
"CancelButton"
{
"ControlName" "Button"
"fieldName" "CancelButton"
"xpos" "0"
"ypos" "308"
"wide" "148"
"tall" "20"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "#Cstrike_Cancel"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"Command" "vguicancel"
"Default" "1"
}
}