Transparent MiniConsole issue

Post Reply
skrudge@outlook.com
Posts: 1
Joined: Sat Jul 20, 2024 11:52 am

Transparent MiniConsole issue

Post by skrudge@outlook.com »

Hi,

I'm trying to create a transparent MiniConsole for part of a book displaying tool. The book window has an image of a book over which I want to overlay text captured from books read by the player in the MUD. Formatting of books MUD side is rather inconsistent so I need a fair bit of flexibility when it comes to font size and number of lines. MiniConsole fits the bill better than echoing to a Label as it allows for scrolling. This would save a lot of hassle. What I'm hoping is possible is to create a MiniConsole with a transparent background so the background image of the book shows through and the text displays on top. I can adjust the font size to account for linewidth and the MiniConsole's ability to scroll will neatly counter the issue of long pages.

However, when I create a MiniConsole with a transparent background it just renders as a black rectangle (of the correct dimensions). I can set the background to different colors and this will render correctly, although transparency always seems to assume a black background. I have also tried using a background image in the MiniConsole as a work around but this also results in a black background.

Is it possible to do what I'm trying? Or is a MiniConsole unable to be transparent over an image?

Jor'Mox
Posts: 1153
Joined: Wed Apr 03, 2013 2:19 am

Re: Transparent MiniConsole issue

Post by Jor'Mox »

Miniconsoles and transparency don't mix, sadly. You should, however, be able to set a background for your miniconsole to use. What code are you using to set the background for it?

Post Reply