Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Drop Down Console for my game engine

I need to be able to add a very simple drop down console to my engine in visual basic
So any advice or CODE EXAMPLES I could use to get this implemented thanks in advance....

Please if there is a more simple way to do this please supply the code thanks
You specifically want a Console window? Or just a RichTextBox where you can log stuff? I mean, if you can write a game engine then surely you know how to log stuff and present the logs to the user.
I just want a RichTexBox that can log stuff and present logs to the user..
But a console window to would be nice so I can learn how to do that as well

This is my first game engine so I'm a little rusty
(Mar 19, 2018 08:13 PM)emuvoo Wrote:  I just want a RichTexBox that can log stuff and present logs to the user..
But a console window to would be nice so I can learn how to do that as well

This is my first game engine so I'm a little rusty

Add a RichtTextBox to your form. Append text to it whenever you want. You can use a logging library, or if that is too much, just a simple interface that you implement, like this:
Code
public interface ILogger
{
    void Log(string message);
}

public sealed class RichtTextBoxLogger : ILogger
{
    public void Log(string message)
    {
        //log
    }
}
(Mar 20, 2018 08:27 AM)Ninja Wrote:  Add a RichtTextBox to your form. Append text to it whenever you want. You can use a logging library, or if that is too much, just a simple interface that you implement, like this:
Code
public interface ILogger
{
   void Log(string message);
}

public sealed class RichtTextBoxLogger : ILogger
{
   public void Log(string message)
   {
       //log
   }
}

Okay thank you so much for taking the time to help me out really thank you


(Mar 20, 2018 11:36 AM)emuvoo Wrote:  Okay thank you so much for taking the time to help me out really thank you

Hey is it possible to allow some kind of dropdown function for the richtextbox
so when it logs it just don't show up automatic it just needs a button pressed to lower it then it shows the log info


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by 4lek5Jun 18, 2022 10:00 AM 8 272 Jun 18, 2022 10:00 AM
Last Post: SIM-5183822
[Java] by LethiumMar 8, 2021 09:00 AM 3 256 Mar 8, 2021 09:00 AM
Last Post: Probe_
[C#] by dor343232Nov 14, 2019 06:46 PM 23 777 Nov 14, 2019 06:46 PM
Last Post: 0xDEAD10CC