Color Manager for HTML-based User Interfaces

Show off your RPG maps, campaigns, and tokens. Share your gaming experiences and stories under General Discussion and save this forum for things you've created that may help others run their own games. Use the subforums when appropriate.

Moderators: dorpond, trevor, Azhrei, Gamerdude

Post Reply
User avatar
Raoden
Dragon
Posts: 381
Joined: Fri Dec 18, 2009 2:33 am
Location: San Diego

Color Manager for HTML-based User Interfaces

Post by Raoden »

I love the flexibility of HTML-based framework interfaces, like RPTroll's Savage Worlds interface. When I create frameworks, I intend to use this style.

A big part of making such frameworks intuitive and aesthetically pleasing is the CSS formatting that goes into them. While I'm no expert with CSS, I know enough to realize that it's a pain to change it around when you want it to do something new.

In spite of that, I had the thought that it would be awesome, in a framework-based game with HTML UI, if the DM could click a macro to change the CSS files the campaign was using on the spot. This Token is an attempted fulfillment of that idea.

This token allows you to pull up a Color Manager frame, which lets you create, define, edit, and delete "Color Schemes," which are data sets stored on the Library Token. When you tell it to Apply a Color Scheme, it dynamically modifies the CSS file it's using to include the new Color Scheme's colors. You can immediately see the new Scheme in effect as the Color Manager frame refreshes using the new CSS.

You can also define a Color Scheme to go with each Map of the campaign. Using this technique, the DM can use Color Schemes as a sort of "tileset" to enhance the feel of his maps by quickly switching to a Color Scheme that matches thematically. For example, the token comes with the black/gray/orange/red-heavy "Hell" color scheme, which would be very flavorful to use on a map that represents the Lower Planes.
Attachments
ColorManager v1.0.rptok
(42.43 KiB) Downloaded 130 times
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0

User avatar
Raoden
Dragon
Posts: 381
Joined: Fri Dec 18, 2009 2:33 am
Location: San Diego

Re: Color Manager for HTML-based User Interfaces

Post by Raoden »

Version 1.0 of the Color Manager is, naturally, a Work In Progress. But I'm posting it early so that I can get help developing it further -- figuring out the best ways to program tricky things, finding and fixing bugs, and getting feedback about other features to add.

Here are some features I already plan on adding, though, in approximate priority order:
  1. The ability to set a list of other Frames and Dialogs that should get refreshed when a color scheme is Applied
  2. Making frames and dialogs refresh for players, as well as the GM, when a scheme is Applied
  3. Little colored boxes on the main frame that give a sample of each color scheme
  4. A second Sample page to view color schemes with

Eh, I'm sure I've had a lot more in mind, but I'm tired and can't remember them right now.
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0

Post Reply

Return to “User Creations”