Difference between revisions of "Adding Your Logo to the Menu:ru"

From Valve Developer Community
Jump to: navigation, search
m (Removed otherlang2)
(Replaced content with "{{Delete|reason=moved}}")
(Tag: Replaced)
 
Line 1: Line 1:
{{lang|title=Добавление своего лого в меню|Adding_Your_Logo_to_the_Menu}}
+
{{Delete|reason=moved}}
 
 
[[File:Gamelogo.jpg|thumb|Логотип TF2 - 512x128px.]]
 
 
 
Вместо того, чтобы отображать название мода в виде текста, вы можете установить изображение. Чтобы сделать это:
 
 
 
# Добавьте <code>gamelogo 1</code> в [[gameinfo.txt:ru|GameInfo.txt]].
 
# Создайте текстовый файл <code>\resource\GameLogo.res</code> с таким шаблоном:
 
 
 
<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>
 
 
 
Путь поля <code>image</code> относителен <code>materials\'''vgui\'''</code>. Как вы можете видеть на приведенном выше примере, логотип TF2 на самом деле хранится в <code>materials\logo\</code>!
 
 
 
Не пишите в пути расширение файла.
 
 
 
{{tip:ru|Удаление текста из поля <code>title</code> в <code>gameinfo.txt</code> уберет текстовое название и оставит только изображение.}}
 
{{tip:ru|При создании [[Creating a Material:ru|своего лого]], используйте шейдер [[UnlitGeneric]], не генерируйте mipmaps, и отключите LOD.}}
 
 
 
[[Category:Modding:ru]]
 
[[Category:Material System:ru]]
 
[[Category:Russian]]
 

Latest revision as of 01:57, 9 May 2023

Warning icon.png
This article has been marked as a candidate for speedy deletion because it has moved, and no longer linked to.
If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.