yarock
19-11-2006 21:10:13
where i suppose to put the fonts, cause i cant make it work, for this error-->Function: TextAreaOverlayElement::setFontName
Description: Could not find font Eurostile.
File: ..\src\OgreTextAreaOverlayElement.cpp
Line: 337
Stack unwinding: <<beginning of stack>>
eurostile, or whareva, please help me......
betajaen
19-11-2006 22:19:23
Eurostile is in media/boot.zip
But you know you CAN use your own font; Just replace "NxOgrefont" with whatever font you desire.
yarock
19-11-2006 23:07:35
i knoews where the font is, but the program dont recognize it, where are the fonts, that the programs looks??
betajaen
20-11-2006 09:21:47
Eurostile is in media/boot.zip
Eurostile.ttf and Ogre.fontdef
yarock
20-11-2006 13:00:40
thanks, but i think you not undertand me ( my english is bad/80) the betaGUI looks resources from de resources.cfg, but in that folder i been put the fonts files, but still wonder for the font, the line of the beta gui is this->mGUI = new BetaGUI::GUI("ArialExampleFont",3);
i hope this were more explained...
ps.
sorry if the question is to much noob....
betajaen
20-11-2006 13:30:31
BetaGUI uses fonts in the normal way Ogre does, if you've correctly set it up then BetaGUI will use it correctly too.
So that code is correct, if you have ArialExampleFont.fontdef setup correctly and the corresponding TTF file.
What happens if you use bluehighway, a font that comes with Ogre as standard?
yarock
20-11-2006 17:07:52
thanx, now i undertand how the fonts resources works,
now i create a buttonBetaGUI::Button* mSalir = window->createButton(Vector4(108,50,104,24), "bgui.button", "salir", BetaGUI::Callback(?¿?¿?));
i try to call in the callback, the stop() function from the tutorial class, but dont compile, and also try to call the BetaGUI::BetaGUIlistener::OnButtonpress(¿?¿?¿?¿);
but i dont know how really works the callback, can you explain me a little that part, o give me a example of this button calls...
jacmoe
20-11-2006 20:39:44
You are out of luck when using unicode characters with Ogre..
Maybe the next version (Eihort) will support that, but right now the only option (I know of) is CEGUI.
betajaen
20-11-2006 22:25:31
And for the callback it goes:
BetaGUI::Button* mSalir = window->createButton(Vector4(108,50,104,24), "bgui.button", "salir", BetaGUI::Callback(myGuiListenerInstance));
...
class myGuiListener : public BetaGUI::BetaGUIListener {
void onButtonPress(BetaGUI::Button *ref)
{
if (ref == myButton) {
// Do Stuff
}
}
};
yarock
21-11-2006 04:38:51
but i still with a no action button. and now i have more doubts, about betagui, cuase se mouse pointer is behind the gui, how can i make it front the gui and button press "able", and other thing, how can i make the "ogre3d Windows config appears??" , cause since i use nxogre, i miss her. /8)...