Difference between revisions of "Skinning How To/Skin the viewer"
Jump to navigation
Jump to search
(New page: = Intro = Creating a new skin for the viewer typically involves two steps: # Recoloring the '''texture files''' (buttons, icons, toolbar, etc). # Recoloring the viewer elements set in '''...) |
m |
||
Line 5: | Line 5: | ||
# Recoloring the viewer elements set in '''colors.xml''' (text color, window color, etc). | # Recoloring the viewer elements set in '''colors.xml''' (text color, window color, etc). | ||
# (''Optional''): Editing any other xml files than colors.xml (in other words making layout changes, etc). | # (''Optional''): Editing any other xml files than colors.xml (in other words making layout changes, etc). | ||
This is a basic guide. | |||
= Recoloring stuff = | = Recoloring stuff = | ||
Line 10: | Line 11: | ||
* The viewer's texture files are located in '''\SecondLifeReleaseCandidate\skins\textures''' in Release Candidates and '''\SecondLife\skins\textures''' in the current release viewer. | * The viewer's texture files are located in '''\SecondLifeReleaseCandidate\skins\textures''' in Release Candidates and '''\SecondLife\skins\textures''' in the current release viewer. | ||
Almost all the files you need to edit are in the [http://en.wikipedia.org/wiki/Truevision_TGA Targa] (.tga) format and must be opened with an [http://en.wikipedia.org/wiki/Graphics_software image editor] to be changed. These are named after | Almost all the files you need to edit are in the [http://en.wikipedia.org/wiki/Truevision_TGA Targa] (.tga) format and must be opened with an [http://en.wikipedia.org/wiki/Graphics_software image editor] to be changed. These are named after their functions: | ||
* '''icn_*''' files are icons. | * '''icn_*''' files are icons. | ||
Line 61: | Line 62: | ||
= Editing other stuff = | = Editing other stuff = | ||
* Read [[Skinning_HowTo/Basics]] | * Read [[Skinning_HowTo/Basics]] | ||
[[Category:Skinning]] |
Revision as of 18:39, 17 May 2008
Intro
Creating a new skin for the viewer typically involves two steps:
- Recoloring the texture files (buttons, icons, toolbar, etc).
- Recoloring the viewer elements set in colors.xml (text color, window color, etc).
- (Optional): Editing any other xml files than colors.xml (in other words making layout changes, etc).
This is a basic guide.
Recoloring stuff
Texture files
- The viewer's texture files are located in \SecondLifeReleaseCandidate\skins\textures in Release Candidates and \SecondLife\skins\textures in the current release viewer.
Almost all the files you need to edit are in the Targa (.tga) format and must be opened with an image editor to be changed. These are named after their functions:
- icn_* files are icons.
- ff_* files related to the friends list.
- inv_folder* files are inventory folders.
- inv_item* files are inventory items.
Etc.
- NOTE: This folder also contains files in the Jpeg2000 (.j2c) format. These are the OI HUD and miscellaneous viewer files. You will never need to edit them, except if you want to change the login screen (startup_logo.j2c). To do so, you need to have a program that can save Jpeg2000 Codestream files (any program that can write .j2c or .j2k files; the two extensions are interchangeable).
To recolor an image:
- Open it in your image editor.
- Apply a color mask.
- Save it, overwriting the original image.
This process is unique to the program you're using, but Yukiko Omegamu has provided a video tutorial for Photoshop.
- NOTE: Not every file in the \textures\ folder is used, like icn_media-stop_enabled.tga. For a full list, see Legacy files.
colors.xml
- colors.xml is located in \SecondLifeReleaseCandidate\app_settings in Release Candidates and \SecondLife\app_settings in the current release viewer.
Colors are set using the following format:
value="[RED],[GREEN],[BUE],[OPACITY]"
...where R,G,B,Opacity
are each in the range 0-255. For opacity, 128 is half opacity (ergo, half transparent).
(Note: Opacity is also sometimes called the Alpha value. See this tutorial for a more detailed explanation of RGB).
- You can use the website http://www.colorschemer.com/online.html to quickly generate RGB values.
editing colors.xml
There are two ways to edit colors.xml:
- Copy the entries you want to edit from colors_base.xml into colors.xml, then change them there.
For example:
<!-- CHAT AND IM HISTORY TEXTBOX COLORS --> <ChatHistoryBgColor value="0, 30, 80, 200" /> <ChatHistoryTextColor value="255, 255, 255, 255" /> <IMHistoryBgColor value="0, 30, 80, 128" /> <IMHistoryTextColor value="255, 255, 255, 255" />
- Use the fully commented colors.xml file on the wiki.