Adding Your Logo to the Menu: Difference between revisions
Jump to navigation
Jump to search
Tip:When creating your logo, use the UnlitGeneric shader, do not generate mipmaps, and disable LOD.
Note:The path of the
Craziestdan (talk | contribs) m (→Resource file) |
TomEdwards (talk | contribs) (replaced whole tut...should have done this in the first place!) |
||
Line 1: | Line 1: | ||
[[File:Gamelogo.jpg|thumb|TF2's logo is 512x128px.]] | |||
Instead of displaying your mod's name as a string of characters, you can have a logo image. To do this: | |||
# Add <code>gamelogo 1</code> to [[gameinfo.txt]]. | |||
# Create <code>\resource\GameLogo.res</code> with this template: | |||
<source lang=ini> | |||
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 | |||
} | } | ||
} | } | ||
</source> | |||
{{tip|When [[Creating a Material|creating your logo]], use the [[UnlitGeneric]] shader, do not generate mipmaps, and disable LOD.}} | |||
{ | |||
{{note|The path of the <code>image</code> field is relative to <code>materials\vgui\</code>. Do not include a file extension.}} | |||
Revision as of 09:56, 19 July 2009
Instead of displaying your mod's name as a string of characters, you can have a logo image. To do this:
- Add
gamelogo 1
to gameinfo.txt. - Create
\resource\GameLogo.res
with this template:
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
field is relative to materials\vgui\
. Do not include a file extension.