MyGUI resource group problem

tomneo2000

06-11-2009 13:17:33

Hi, i have problem with resource group. I have two folders "GUICore_Resource" and "InfoGUI_Resource", "GUICore_Resource" folder contain core gui files core.xml for example and "InfoGUI_Resource" contain InfoGUIPanel.layout file which i edit in MyGUI editor.

In resource definition. I create two resource groups and add location

//Create resource group
Ogre::ResourceGroupManager::getSingleton().createResourceGroup("GUICoreResource");
Ogre::ResourceGroupManager::getSingleton().createResourceGroup("InfoGUIResource");

//Add resource location to resource group
Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/GUICore_Resource", "FileSystem", "GUICoreResource");
Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/InfoGUI_Resource", "FileSystem", "InfoGUIResource");

//Initialize resource group
Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("GUICoreResource");
Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("InfoGUIResource");


In GUI initialization, i initialize GUI with group name "GUICoreResource" which i created in resource definition

mGUI=new MyGUI::Gui();
mGUI->initialise(mRenderWindow, "core.xml", "GUICoreResource", "MyGUIInfo.log");


When program run to this line, it can't load layout file, even i do MyGUI::LayoutManager::getInstancePtr()->load("InfoGUIPanel.layout", "InfoGUIResource");

MyGUI::LayoutManager::getInstancePtr()->load("InfoGUIPanel.layout");


I run program step by step to figure it out but i found MyGUI's resource group can only have one resource group name which you use with initialise method.

My problem is how can i create multiples resource group in MyGUI? Can MyGUI have more than one resource groups?

Is there any body notice this problem?

my.name

06-11-2009 14:15:07

We supports only one group.
From for muffled realisation of groups.
In version 3.0 the system will not work at all with groups. Search of resources will be separately realised.

tomneo2000

06-11-2009 18:14:35

We supports only one group.
From for muffled realisation of groups.
In version 3.0 the system will not work at all with groups. Search of resources will be separately realised.


ok, so i have to put every thing that relate to gui in one folder.

my.name

06-11-2009 20:50:51

in one group