Armageddon General Discussion Board

General => Code Discussion => Topic started by: Cind on March 12, 2017, 01:41:08 AM

Title: Color-coding Room Titles
Post by: Cind on March 12, 2017, 01:41:08 AM
What if you could change the color, foreground and background, of room titles that belong to different areas?

Salt Flats, Silt Sea, Allanak, Westside rinth, eastside rinth, Grey Forest, Tuluk, Luir's, and Storm. Maybe a couple of others.

And while we're at it changing the visible exits foreground and background colors.

>l

A Small Apartment [E, Quit, Save]

This is a small apartment with a skeleton in it from the previous owner. You can barely make out a whiff of fresh-baked apple pie.
A large bag is lying here.
A human skeleton is lying here, being creepy.
Title: Re: Color-coding Room Titles
Post by: Cind on March 12, 2017, 03:11:36 AM
God damn it never mind this already exists.

EDIT: You can't do different regions right now, but the code for doing it in one color everywhere exists.
Title: Re: Color-coding Room Titles
Post by: Jeax on March 14, 2017, 07:53:00 AM
You could also do this in your client with some clever regex and highlighting. grab all text until [ and color it. Should also be able to grab text in []. If you wanted, you could just gag that line and then store those two values in variables and output them as you please.