Modifying Source GameUI: Difference between revisions
No edit summary |
Steveukpwnz (talk | contribs) m (Minor path change (to avoid confusion)) |
||
Line 1: | Line 1: | ||
[[Category:Tutorials]] [[Category:Programming]] [[Category:Modding]] | [[Category:Tutorials]] [[Category:Programming]] [[Category:Modding]] | ||
Changing the appearance of Source's GameUI is as easy as changing the values in the <code>SteamApps\YourMod\Resource\SourceScheme.res</code> using notepad. If you have not started to create your own [[Half-Life 2]] mod you will need to extract the <code>SourceScheme.res</code> file from the <code>source engine.[[GCF|gcf]]</code> file in the <code>SteamApps</code> folder. Look under <code>root\hl2\resource\SourceScheme.res</code> to find the file. You will need to extract the <code>SourceScheme.res</code> file into a game's resource folder or your mod's folder. | Changing the appearance of Source's GameUI is as easy as changing the values in the <code>SteamApps\SourceMods\YourMod\Resource\SourceScheme.res</code> using notepad. If you have not started to create your own [[Half-Life 2]] mod you will need to extract the <code>SourceScheme.res</code> file from the <code>source engine.[[GCF|gcf]]</code> file in the <code>SteamApps</code> folder. Look under <code>root\hl2\resource\SourceScheme.res</code> to find the file. You will need to extract the <code>SourceScheme.res</code> file into a game's resource folder or your mod's folder. | ||
Let's take a look at changing the color of all GameUI elements to a blue tint. Open the <code>SourceScheme.res</code> file in notepad and scroll down to about line 63 you should see something like this... | Let's take a look at changing the color of all GameUI elements to a blue tint. Open the <code>SourceScheme.res</code> file in notepad and scroll down to about line 63 you should see something like this... |
Revision as of 09:05, 23 October 2006
Changing the appearance of Source's GameUI is as easy as changing the values in the SteamApps\SourceMods\YourMod\Resource\SourceScheme.res
using notepad. If you have not started to create your own Half-Life 2 mod you will need to extract the SourceScheme.res
file from the source engine.gcf
file in the SteamApps
folder. Look under root\hl2\resource\SourceScheme.res
to find the file. You will need to extract the SourceScheme.res
file into a game's resource folder or your mod's folder.
Let's take a look at changing the color of all GameUI elements to a blue tint. Open the SourceScheme.res
file in notepad and scroll down to about line 63 you should see something like this...
Frame.TitleTextInsetX 16 Frame.ClientInsetX 8 Frame.ClientInsetY 6 Frame.BgColor "160 160 160 128" Frame.OutOfFocusBgColor "160 160 160 32" Frame.FocusTransitionEffectTime "0.3" // time for a window to fade on focus Frame.TransitionEffectTime "0.08" // time for a window to fade on open/close Frame.AutoSnapRange "0"
Simply change the values for Frame.BgColor
to 160 160 255 128
. Colors are ordered RGBA (Red-Green-Blue-Alpha). Now save the file and run your mod. Voila! You now have a blue tinted GUI.