在菜单中添加你的Logo
< Zh
Jump to navigation
Jump to search
你可以使用Logo图片替代纯文字显示模组名称。具体步骤如下:
- 在gameinfo.txt 文件顶部添加
gamelogo 1
(与game
、type
等参数处于同一代码块) - 使用以下模板创建文本文件
<mod>\resource\GameLogo.res
:
Resource/GameLogo.res
{
GameLogo
{
ControlName EditablePanel
fieldName GameLogo
xpos 0
ypos 0
zpos 50
wide 400
tall 100
autoResize 1
pinCorner 0
visible 1
enabled 1
offsetX -20
offsetY -15
}
Logo
{
ControlName ImagePanel
fieldName Logo
xpos 0
ypos 0
zpos 50
wide 400
tall 100
visible 1
enabled 1
image ../logo/TF2_Logo
scaleImage 1
}
}
image
字段的路径是相对于materials\vgui\
目录的。如上例所示,《军团要塞2》的Logo实际上存储在materials\logo\
目录!
路径中不要包含文件扩展名。



"$alphatest" "1"
参数,否则游戏内会显示为不透明效果。