Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Color in Current_Output_Window plugin

Color in Current_Output_Window plugin

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


Posted by Symple   (6 posts)  Bio
Date Sat 04 Apr 2020 08:23 PM (UTC)
Message
How would I go about changing the current output to retain the asci colors from the original output? I've tried and all I can seem to do is change the overall colors. I looked around the forums but couldn't find anything related and tried to look at the code from the Generic_Chat_Miniwindow.xml but am unclear where to go from here. I am still learning this stuff so any help would be appreciated!
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #1 on Sat 04 Apr 2020 10:08 PM (UTC)
Message
The function in Generic_Chat_Miniwindow.xml responsible for printing colored text to the miniwindow is called Display_Line. You can find it at https://github.com/nickgammon/plugins/blob/master/Generic_Chat_Miniwindow.xml#L322-L343

Unluckily, the Current_Output_Window plugin does not appear to preserve the style information for lines.

But if you're intrepid, I made something better for my Aardwolf MUSHclient package using my own custom miniwindow text library. If you want to peek at it, the code is here https://github.com/fiendish/aardwolfclientpackage/blob/MUSHclient/MUSHclient/worlds/plugins/aard_splitscreen_scrollback.xml

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Symple   (6 posts)  Bio
Date Reply #2 on Sat 04 Apr 2020 10:33 PM (UTC)
Message
Thank you so much! This looks to be pretty much what I was trying to replicate.
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.


11,454 views.

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

Go to topic:           Search the forum


[Go to top] top

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