Adding Your Logo to the Menu: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Removed otherlang2)
(Add MultiPage System)
Tag: Replaced
Line 1: Line 1:
{{lang|Adding_Your_Logo_to_the_Menu|title=Adding your logo to the menu}}
{{MultiPage}}
 
[[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 the top of [[gameinfo.txt]] (same block as <code>game</code>, <code>type</code>, etc.).
# Create <code><mod>\resource\GameLogo.res</code>, a text file, 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>
 
The path of the <code>image</code> field is relative to <code>materials\'''vgui\'''</code>. As you can see in the example above, the TF2 logo is actually stored in <code>materials\logo\</code>!
 
Do not include a file extension in the path.
 
{{tip|Removing your text from the gameinfo.txt under the name '''title''' will remove the font title and will only provide the logo.}}
 
{{tip|When [[Creating a Material|creating your logo]], use the [[UnlitGeneric]] shader, do not generate mipmaps, and disable LOD.}}
 
{{tip|If your game logo has an alpha channel (transparency) then add <code>"$alphatest" "1"</code> to your game logo's .vmt otherwise it'll look opaque in game.}}
 
[[Category:Modding]]
[[Category:Material System]]

Revision as of 01:43, 9 May 2023

Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.