Recent changes Random page
GAMING
Gaming
 
WoWWiki
Diablo Wiki
Fallout-The Vault
Grand Theft Wiki
Halopedia
StarCraft Wiki
FFXIclopedia
Resident Evil Wiki
See more...

User:Pepeto

From Freeciv

Jump to: navigation, search

[edit] Chat improvements ideas

My idea is to add some escape sequences in the chat line to have a better-looking client and make fast analysis of the message you receive from the server. Those escape sequences would look like:

  • [color] ... [/color] abbreviation: [c] ... [/c]
This sequence would control with what color would be displayed the text contained between [color] and [/color].
Options:
  • foreground abbreviation: fg
  • background abbreviation: bg
Those options would take a string containing a color name (e.g. "red") or a html 24-bits style color #RRGGBB.
Example: [color foreground="white" background="black"]white on black[/color]white on black
  • [bold] ... [/bold] abbreviation: [b] ... [/b]
Example: [b]bold[/b]bold
  • [italic] ... [/italic] abbreviation: [i] ... [/i]
Example: [i]italic[/i]italic
  • [underline] ... [/underline] abbreviation: [u] ... [/u]
Example: [u]underline[/u]underline
  • [strike] ... [/strike] abbreviation: [s] ... [/s]
Example: [s]strike[/s]strike
  • [link] ... [/link] abbreviation: [l] ... [/l]
This sequence would allow to make clickable link.
Options
  • target: controls what kind of target the link would point to (e.g. "tile", "city", "unit").
  • id: controls what id the link would point to (a tile index, a city id or a unit id).
  • x and y: instead of id, it would make a link from map coordonates.
Example: [link target="tile" x=5 y=9](5, 9)[/link](5, 9)