Template:ChatColor

From Homecoming Wiki
Revision as of 18:08, 11 December 2008 by imported>Aggelakis (historical)
Jump to navigation Jump to search

This could use a revamp/rewrite

ALERT!

Chat bubble color changes are broken as of Issue 13 launch

From one of the programmers:
The new SMF code converts < and > to < and > (which show as < and > in displayed text but don't get recognised as meaning 'this is a tag' internally in order to stop players from breaking other people's clients with bad tags or whatever. Unfortunately this means the text colouring doesn't work any more. Probably needs a better solution but not a high priority until the start of next year


Chat Colors

All communication commands will display a chat bubble, though not always for the sender. These chat bubbles can be customized using the ingame options, or on a per-message basis.

In Game Options

To modify the default chat bubble colors, open the in game menu, then click on Options, then goto the Graphics and Audio tab. Scroll to the bottom and you will find the options for chat bubble text and background. Modify those sliders until you get the colors you like.

Per Message

  • <scale float> or <s float>
    • size of the chat bubble, from 0.5 to 2.0 (default is 1)
  • <bgcolor color> or <bg color> or <b color>
    • background color
  • <color color> or <c color>
    • text color
  • <bordercolor color> or <border color> or <bo color>
    • border color
  • <duration float> or <d float>
    • Duration of the chat bubble in seconds, 1.0 to 20.0 (default is 7)

Colors

color can be practically any color name you can think of. The colors seem to follow the HTML naming scheme, and as such can be any of the colors listed on this color chart (http://www.w3schools.com/).

The color chart also has the HEX values for those colors. If you add an extra set of hex characters, you can enable tranparency.

HEX values follow the format of #RRGGBB or #RRGGBBTT. RR is the red value, GG is the green, and BB is blue, with TT being optional transparency.
#33CC00 would be a solid color. #12345678 would be a semi-transparent color, with 78 being how transparent the color is. >

HEX digits are 0123456789abcdef where 0 corresponds to darker in the scale and f to lighter (darker=transparent, lighter=opaque)