[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Infobar Colour, keeping it the original colour and having it go stright to the i

Infobar Colour, keeping it the original colour and having it go stright to the i

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Natasi   (79 posts)  [Biography] bio
Date Mon 15 Nov 2004 04:36 AM (UTC)
Message
I would like the colour that comes up on the prompt to be the direct colour shown in the infobar. I looked using the google search and found no other threads that were just for such.

This is what I have so far, I want the background to stay black...but the font colour to be as it shows on the normal prompt.

<triggers>
<trigger
match="*h, *m, *e, *p *-"
omit_from_output="y"
send_to="12"
sequence="100"
>
<send>world.infoClear
world.InfoFont &quot;FixedSys&quot;, 12, 0
world.infocolour &quot;green&quot;
world.infobackfont &quot;black&quot;
world.info &quot;%1h, %2m, %3e, %4p, %5-&quot;</send>
</trigger>
</triggers>


Thanks for the help
[Go to top] top

Posted by Tsunami   USA  (204 posts)  [Biography] bio
Date Reply #1 on Mon 15 Nov 2004 07:16 PM (UTC)
Message
I'm not sure if that is possible. I believe that an incoming string is stripped of all ansi color indicators before it is sent to triggers for evaluation.

I also haven't seen anyway to match of colors besides the first character. I guess you could use three different triggers, with a foreground color of green, yellow and red to set the color of the health bar, but as for mana, ego, and power *shrug*...
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #2 on Mon 15 Nov 2004 10:20 PM (UTC)
Message
You can use GetLineInfo and GetStyleInfo to reassemble the line with colors. Except you wont be able to omit it from the output.

What sort of colors are we talking about? Are certain things always the same? Different colors for different numbers?

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Natasi   (79 posts)  [Biography] bio
Date Reply #3 on Fri 19 Nov 2004 12:55 AM (UTC)
Message
It's as Tsunami described, but the colors change based upon damage percent taken
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #4 on Fri 19 Nov 2004 01:59 AM (UTC)
Message
Then cant you just figure out what percentages are what, and change the color accordingly? Much like the Healthbar plugin's two colored bars. Youd just have more than one color/condition (go look for an example).

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,599 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]