shanefarris
02-08-2009 01:30:15
I am trying to load a simple button using the same in the wiki but all I get is a blank screen, anyone have any ideas?
Here is my log, looks fine to me:
If anyone has any idea what I should look at, please tell me, I really want to figure this out, I think this is an awesome library.
Thanks,
Shane.
void CMainMenuState::Start()
{
try
{
MyGUI::OgrePlatform* m_Platform = new MyGUI::OgrePlatform();
m_Platform->initialise(CGameManager::Instance()->GetRenderWindow());
mGUI = new MyGUI::Gui();
mGUI->initialise();
// load layout
MyGUI::LayoutManager::getInstance().load("sample.layout");
// set callback
MyGUI::ButtonPtr button = mGUI->findWidget<MyGUI::Button>("MyFirstButton");
}
catch(MyGUI::Exception& e)
{
std::cerr << e.getFullDescription() << std::endl;
}
}
void CMainMenuState::Update(f32 deltaTimeSecs)
{
mGUI->injectFrameEntered(deltaTimeSecs);
}
Here is my log, looks fine to me:
----------------------------------------------------------------------------------------------------------------------------------
loging report for : 08/01/2009 19:42:47
----------------------------------------------------------------------------------------------------------------------------------
19:42:47 | Core | Info | * Initialise: Gui | .\src\MyGUI_Gui.cpp | 83
19:42:47 | Core | Info | * MyGUI version 3.0.0 | .\src\MyGUI_Gui.cpp | 87
19:42:47 | Core | Info | * Initialise: ResourceManager | .\src\MyGUI_ResourceManager.cpp | 43
19:42:47 | Core | Info | ResourceManager successfully initialized | .\src\MyGUI_ResourceManager.cpp | 51
19:42:47 | Core | Info | * Initialise: LayerManager | .\src\MyGUI_LayerManager.cpp | 45
19:42:47 | Core | Info | LayerManager successfully initialized | .\src\MyGUI_LayerManager.cpp | 54
19:42:47 | Core | Info | * Initialise: WidgetManager | .\src\MyGUI_WidgetManager.cpp | 67
19:42:47 | Core | Info | WidgetManager successfully initialized | .\src\MyGUI_WidgetManager.cpp | 100
19:42:47 | Core | Info | * Initialise: InputManager | .\src\MyGUI_InputManager.cpp | 56
19:42:47 | Core | Info | InputManager successfully initialized | .\src\MyGUI_InputManager.cpp | 79
19:42:47 | Core | Info | * Initialise: SubWidgetManager | .\src\MyGUI_SubWidgetManager.cpp | 44
19:42:47 | Core | Info | SubWidgetManager successfully initialized | .\src\MyGUI_SubWidgetManager.cpp | 64
19:42:47 | Core | Info | * Initialise: SkinManager | .\src\MyGUI_SkinManager.cpp | 46
19:42:47 | Core | Info | SkinManager successfully initialized | .\src\MyGUI_SkinManager.cpp | 54
19:42:47 | Core | Info | * Initialise: FontManager | .\src\MyGUI_FontManager.cpp | 43
19:42:47 | Core | Info | FontManager successfully initialized | .\src\MyGUI_FontManager.cpp | 52
19:42:47 | Core | Info | * Initialise: ControllerManager | .\src\MyGUI_ControllerManager.cpp | 42
19:42:47 | Core | Info | ControllerManager successfully initialized | .\src\MyGUI_ControllerManager.cpp | 52
19:42:47 | Core | Info | * Initialise: PointerManager | .\src\MyGUI_PointerManager.cpp | 48
19:42:47 | Core | Info | PointerManager successfully initialized | .\src\MyGUI_PointerManager.cpp | 63
19:42:47 | Core | Info | * Initialise: ClipboardManager | .\src\MyGUI_ClipboardManager.cpp | 82
19:42:47 | Core | Info | ClipboardManager successfully initialized | .\src\MyGUI_ClipboardManager.cpp | 96
19:42:47 | Core | Info | * Initialise: LayoutManager | .\src\MyGUI_LayoutManager.cpp | 42
19:42:47 | Core | Info | LayoutManager successfully initialized | .\src\MyGUI_LayoutManager.cpp | 48
19:42:47 | Core | Info | * Initialise: DynLibManager | .\src\MyGUI_DynLibManager.cpp | 35
19:42:47 | Core | Info | DynLibManager successfully initialized | .\src\MyGUI_DynLibManager.cpp | 37
19:42:47 | Core | Info | * Initialise: PluginManager | .\src\MyGUI_PluginManager.cpp | 37
19:42:47 | Core | Info | PluginManager successfully initialized | .\src\MyGUI_PluginManager.cpp | 41
19:42:47 | Core | Info | * Initialise: DelegateManager | .\src\MyGUI_DelegateManager.cpp | 34
19:42:47 | Core | Info | DelegateManager successfully initialized | .\src\MyGUI_DelegateManager.cpp | 38
19:42:47 | Core | Info | * Initialise: LanguageManager | .\src\MyGUI_LanguageManager.cpp | 39
19:42:47 | Core | Info | LanguageManager successfully initialized | .\src\MyGUI_LanguageManager.cpp | 46
19:42:47 | Core | Info | * Initialise: FactoryManager | .\src\MyGUI_FactoryManager.cpp | 34
19:42:47 | Core | Info | FactoryManager successfully initialized | .\src\MyGUI_FactoryManager.cpp | 37
19:42:47 | Core | Info | Load ini file 'core_keyboard.xml' | .\src\MyGUI_ResourceManager.cpp | 146
19:42:47 | Core | Info | Load ini file 'core_language.xml' | .\src\MyGUI_ResourceManager.cpp | 146
19:42:47 | Core | Info | Load ini file 'core_layer.xml' | .\src\MyGUI_ResourceManager.cpp | 146
19:42:47 | Core | Info | Load ini file 'core_font.xml' | .\src\MyGUI_ResourceManager.cpp | 146
19:42:47 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.17' using texture size 256 x 256 | .\src\MyGUI_ResourceTrueTypeFont.cpp | 178
19:42:47 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.17' using real height 17 pixels | .\src\MyGUI_ResourceTrueTypeFont.cpp | 179
19:42:47 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.14' using texture size 256 x 256 | .\src\MyGUI_ResourceTrueTypeFont.cpp | 178
19:42:47 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.14' using real height 14 pixels | .\src\MyGUI_ResourceTrueTypeFont.cpp | 179
19:42:47 | Core | Info | Load ini file 'core_theme.xml' | .\src\MyGUI_ResourceManager.cpp | 146
19:42:47 | Core | Info | Load ini file 'core_resource.xml' | .\src\MyGUI_ResourceManager.cpp | 146
19:42:47 | Core | Info | Load ini file 'core_skin.xml' | .\src\MyGUI_ResourceManager.cpp | 146
19:42:47 | Core | Info | Load ini file 'core_pointer.xml' | .\src\MyGUI_ResourceManager.cpp | 146
19:42:47 | Core | Info | Gui successfully initialized | .\src\MyGUI_Gui.cpp | 132
If anyone has any idea what I should look at, please tell me, I really want to figure this out, I think this is an awesome library.
Thanks,
Shane.