Input Button Coloring

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
Deus X Machina
Kobold
Posts: 12
Joined: Wed Oct 29, 2014 7:26 pm

Input Button Coloring

Post by Deus X Machina »

Hi!

I am quite new to MapTool, and I am trying to find my way into the program and make some ease of life macros at first.
Also, I am quite adept at programming, if I find the right commands.

What I want to do:
I want to create a Frame / Dialog, where The Light Sources for a Token can be toggled. For that, I want the Buttons to be colored, dependant on, if they are lit at the moment, or not.

What I managed:
I created a frame, it has two buttons (Torch / Candle), and when I use a button it displays a small text corresponding to the light source, for proof to me, that the macro chooses the right programming path.

What I can't find out:
How can I color the input buttons in the frame?
I found solutions to color macro buttons, but no solution how to color the input buttons.
Is there a way? If yes, which is it?

What i tried:
I tried the html commands for the coloring, in some variations:
<input type="submit" name="Light_Source" value="Torch" color=Black>
<input type="submit" name="Light_Source" value="Torch" color="Black">
<input type="submit" name="Light_Source" value="Torch" color=#FFFFFF>
<input type="submit" name="Light_Source" value="Torch" color="#FFFFFF">

I hope you can help me, or at can tell me that there is no way, so I know I can stop that path of thinking.


Very nice Tool, as far as i can see for now, and really nice possibilities to adapt it to different uses.


Deus X Machina
Kobold
Posts: 12
Joined: Wed Oct 29, 2014 7:26 pm

Re: Input Button Coloring

Post by Deus X Machina »

Thanks for the definitive reply.
I checked out the virtual buttons, those look good.
Either I use those, or I try to go directly for imagebuttons.

Thanks for the help.

Post Reply

Return to “MapTool”