What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

[Idea] Colored HB text logs.

Daydreamer

New Member
Joined
Mar 6, 2010
Messages
506
Reaction score
6
Hey guys, was thinking that it would be much more manageable and cool to read the Honorbuddy textlog if it was colored.

Example.

Attacking Library Guardian at 12 yards
Lightning Bolt
Flame Shock: Instant Cast.
Flame Shock
Lava Burst
Lightning Bolt

Library Guardian dies
[Whisper] [Name]: Hi, you in for raiding Ulduar tonight?

Also it would be really nice to see whispers in the log. And /says?

Daydreamer..gif

Daydreamer :)

 
Sounds nice and handy.
Would be grate to see that in a feature release
 
The problem here is that all of those log entries are written in by the CC, so they are at the discretion of the CC creator. What would need to be added is the ability for the CC to write log entries in different colors.

:D
 
The problem here is that all of those log entries are written in by the CC, so they are at the discretion of the CC creator. What would need to be added is the ability for the CC to write log entries in different colors.

:D

But if we got enough people to vote for it, they might change it? :)
 
easy enough to add color tags, but they wouldnt be on everything, and in Hb currently it would probally look something like this.
[12:00:17 AM:531] Took 1672 ms to cast:Vampiric Touch
[12:00:17 AM:906] [color = red] Casting Shadow Word: Pain [/color]
[12:00:17 AM:906] CastSpellById: 10893
[12:00:18 AM:156] [color = red]Shadow Word: Pain: Instant Cast. [/color]
[12:00:19 AM:906] [color = red]Casting Devouring Plague [/color]
[12:00:19 AM:921] CastSpellById: 19278
[12:00:20 AM:171] [color = red]Devouring Plague: Instant Cast. [/color]
[12:00:20 AM:265] casting Mind Flay
[12:00:20 AM:281] CastSpellById: 17313
[12:00:20 AM:546] [color = red]Mind Flay: Instant Cast. [/color]
[12:00:21 AM:218] CastSpellById: 5019
[12:00:21 AM:421] Took 219 ms to cast:Shoot
[12:00:21 AM:515] [color = red]Using Wand [/color]
[12:00:21 AM:578] [color = red]Casting Vampiric Touch [/color]


instead of....

[12:00:17 AM:531] Took 1672 ms to cast:Vampiric Touch
[12:00:17 AM:906] Casting Shadow Word: Pain
[12:00:17 AM:906] CastSpellById: 10893
[12:00:18 AM:156] Shadow Word: Pain: Instant Cast.
[12:00:19 AM:906] Casting Devouring Plague
[12:00:19 AM:921] CastSpellById: 19278
[12:00:20 AM:171] Devouring Plague: Instant Cast.
[12:00:20 AM:265] casting Mind Flay
[12:00:20 AM:281] CastSpellById: 17313
[12:00:20 AM:546] Mind Flay: Instant Cast.
[12:00:21 AM:218] CastSpellById: 5019
[12:00:21 AM:421] Took 219 ms to cast:Shoot
[12:00:21 AM:515] Using Wand
[12:00:21 AM:578] Casting Vampiric Touch
 
if someone has the code, drop me a PM, and ill try to add it in when im doing the Config Form Setting fix.
nvm, think i got it.
 
Last edited:
alright, im not really more motivated to go anymore colored then this, at least not on this CC.
Tombstone Colored Log2.webp
 
this is how i did it, just modifyed my slog, and added more for each color then changed them when they apprered.
Code:
       private void Rlog(string format, params object[] args)
        {
            Logging.Write(System.Drawing.Color.Red, format, args);
            //Logging.Write(Color ,format, args);
        }
        private void Glog(string format, params object[] args)
        {
            Logging.Write(System.Drawing.Color.Green, format, args);
            //Logging.Write(Color ,format, args);
        }
        private void Blog(string format, params object[] args)
        {
            Logging.Write(System.Drawing.Color.Blue, format, args);
            //Logging.Write(Color ,format, args);
        }
        private void slog(string format, params object[] args)
        {
            Logging.Write(System.Drawing.Color.DarkBlue, format, args);
            //Logging.Write(Color ,format, args);
        }
 
You guys make things so difficult. :P

You require:
Code:
using System.Drawing;
Example code:
Code:
Logging.Write(Color.FromName("SlateBlue"), "Hello, I'm blue");
List of colours: http://msdn.microsoft.com/en-us/library/system.drawing.knowncolor.aspx

It's a pitty C# doesnt support Default Parameters, it would make updating 'slog' code very easy for developers.

Actually, it does. But it requires .NET 4.0 being installed to do it. (And the HB/GB guys would need to make a minor code change to their compile stuff to use the 4.0 tools to compile instead of the 3.5 ones.)

And no; I'm not saying you need to switch to .NET 4.0. I have 3.5 projects using default params, etc. It's just some new IL that the newer C# compiler adds to allow for the default params. (And selective param defs)

Edit; not that default params would help in the above case anyway. (Pretty much everything in Color is created at runtime. So it won't be valid for default params.)
 
Last edited:
using System.Drawing + Color.<colorname> would be the shortest, but it doesn't really matter.

Anyway, grats on the colors... :)
 
Back
Top