Procházet zdrojové kódy

Make some helpful statements that help in debugging mis-spellings causing empty screens.

Jon Watte před 10 roky
rodič
revize
e68b7aa2aa
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      gameplay/src/Theme.cpp

+ 1 - 0
gameplay/src/Theme.cpp

@@ -73,6 +73,7 @@ Theme* Theme::getDefault()
         if (!__defaultTheme)
         if (!__defaultTheme)
         {
         {
             // Create an empty theme so that UI's with no theme don't just crash
             // Create an empty theme so that UI's with no theme don't just crash
+            GP_WARN("Creating default (empty) UI Theme.");
             __defaultTheme = new Theme();
             __defaultTheme = new Theme();
             unsigned int color = 0x00000000;
             unsigned int color = 0x00000000;
             __defaultTheme->_texture = Texture::create(Texture::RGBA, 1, 1, (unsigned char*)&color, false);
             __defaultTheme->_texture = Texture::create(Texture::RGBA, 1, 1, (unsigned char*)&color, false);