Managed MyGUI 1.6.5 help?

Lawlcat

18-11-2010 01:46:37

I'm having trouble getting MyGUI working for my project. Or ANY gui for that matter.

Using Mogre 1.7.1 SDK and Ogre 1.7.2 SDK.

Managed MyGUI for Mogre gives me problems trying to go through the MyGUI Quickstart. I'm using the MyGUi 1.6.5, latest one I can find.

MyGUI::OgrePlatform* mPlatform = new MyGUI::OgrePlatform();

I can find no OgrePlatform type to create using the Managed MyGUI. Nothing in MyGUI or myGUI.Managed or any other referenced object is called OgrePlatform, Platform or anything related.

Tried to maybe ignore that line and go on with it.

mGUI = new MyGUI::Gui();. Attempting to do this in C# would be mGUI = new MyGUI.Managed.Gui(); or just mGui = new Gui();. However doing that gives you "No constructors defined".

There is also no mGui.initiialise.




Miyagi gave me problems that I couldn't even google for answers, as the exception I was getting gave 1 result of a person asking for help and no responses.


CeGUI is for C++, and I see no MOGRE wrapper for it.

Are there any GUI's I can use or am I stuck using windows form controls?

smiley80

19-11-2010 17:35:54


Miyagi gave me problems that I couldn't even google for answers, as the exception I was getting gave 1 result of a person asking for help and no responses.

Mind to elaborate more on this?

issingle

04-12-2010 10:00:29

u'should useMyGUI.OgrePlatform.Export.dll to Init GUISystem´╝îit's a stand C dll.
from mygui sample:
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_CreateGUI();
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetRenderWindow([MarshalAs(UnmanagedType.LPStr)]string _name);
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetSceneManager([MarshalAs(UnmanagedType.LPStr)]string _name);
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetActiveViewport(int _index);

after CreateGUI,SetRenderWIndow,SetSceneManager,SetACtiveViewPort,then,u can use GUI.Instance do what u want to do.

Beauty

05-01-2011 11:36:39


Miyagi gave me problems that I couldn't even google for answers, as the exception I was getting gave 1 result of a person asking for help and no responses.

Mind to elaborate more on this?

smiley80 ist the author of Miyagi.
So tell your detailed problems and I'm shure he will help you.

In the wiki I created an overview for GUI systems usable for Mogre.
Currently Miyagi and MyGUI should be the best choice.
http://www.ogre3d.org/tikiwiki/-GUI


Related to MyGUI:

Did you look to the MyGUI website?
They write 3.x is the current version.
Did you try to compile the Mogre wrapper source code? You find it in the MyGUI repository.

Additionally I added some more information to the wiki page.
http://www.ogre3d.org/tikiwiki/Mogre+MyGUI+wrapper

It would be nice when somebody add more details about the MyGUI usage to the wiki page.

Beauty

05-01-2011 11:43:03

Now I saw that there is the forum topic Managed MyGUI. It contains a useful note:

You can take a look at this post that I made some days ago: viewtopic.php?f=8&t=13111
There is an older version of MyGUI in the repository to work with Mogre 1.7.1 for VS2010 and .NET4. There are some changes in the managed wrapper code to make it easier to work with it and to use it with Mogre SDK beta 72 you need to recompile the sources for .NET2 and link them against the Mogre beta 72 libraries.