About Store Forum Documentation Contact



Post Reply 
No font in singleton class
Author Message
kulesz Offline
Member

Post: #1
No font in singleton class
Hi,

I'm using code for developer's console from http://esenthel.com/community/showthread.php?tid=3569, but decided to make this class a singleton. After I've did this, the font does not draw :-/
I didn't do anything with the drawing code, just changed class to singleton (add static pointer and it's getter). Any idea, why did the font's dissapeared?
09-16-2011 07:04 PM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
RE: No font in singleton class
Here's the fix:

Code:
Console& init(Str8 inputPrefix = "/", Byte maxCommandLength = 32) // Call once in Init()
{
   // ...
  
   gui.hidden = false;
   return T;
}

gui.hidden was being initialized to true.

Thanks for using EEDevTools! smile
09-16-2011 07:46 PM
Find all posts by this user Quote this message in a reply
kulesz Offline
Member

Post: #3
RE: No font in singleton class
Thanks, it work's :-) EEDevTools are great - I was just about to make my own console, but than I've found yours :-)
(This post was last modified: 09-16-2011 08:00 PM by kulesz.)
09-16-2011 08:00 PM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #4
RE: No font in singleton class
Awesome! Glad at least some people are using them.
09-16-2011 08:05 PM
Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #5
RE: No font in singleton class
i use it too!
09-17-2011 02:47 AM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #6
RE: No font in singleton class
Woohoo! lol
09-17-2011 06:45 AM
Find all posts by this user Quote this message in a reply
Post Reply