Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Editing Title Screen Menu (Single Player)

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

Description

  • The aim of this tutorial is to edit the title screen menu text of your modification. You will need either Microsoft Visual Studio .NET or Notebook to complete this tutorial.

Construction

Step 1

  • Go to this directory C:\Program Files\Steam\SteamApps\SourceMods\MyModName\resource and open GameMenu.res from the list of files.


Step 2

  • You will see a list of code that looks like this:
 "GameMenu"
 {
       "1"
       {
               "label" "#GameUI_GameMenu_ResumeGame"
               "command" "ResumeGame"
               "OnlyInGame" "1"
       }
       "5"
       {
               "label" "#GameUI_GameMenu_NewGame"
               "command" "OpenNewGameDialog"
               "notmulti" "1"
       }
       "6"
       {
               "label" "#GameUI_GameMenu_LoadGame"
               "command" "OpenLoadGameDialog"
               "notmulti" "1"
       }
       "7"
       {
               "label" "#GameUI_GameMenu_SaveGame"
               "command" "OpenSaveGameDialog"
               "notmulti" "1"
               "OnlyInGame" "1"
       }
       "11"
       {
               "label" "#GameUI_GameMenu_Friends"
               "command" "OpenFriendsDialog"
       }
       "12"
       {
               "label" "#GameUI_GameMenu_Options"
               "command" "OpenOptionsDialog"
       }
       "13"
       {
               "label" "#GameUI_GameMenu_Quit"
               "command" "Quit"
       }
 }

Step 3

  • Change were it says #GameUI_GameMenu_NewGame to Hello World so that it will now look like this:
 "5"
 {
   "label"     "HELLO WORLD"
   "command"   "OpenNewGameDialog"
   "notmulti"  "1"
 }

Step 4

  • Save the changes you've made and quit back to the desktop. Now run your batch file.

Conclusion

  • Now, when you view your title screen, the menu will have your edited text where NEW GAME should be. Remeber to always give distinctive and easy to understand names to options, to avoid confusion.


By Madball

Personal tools