Code: Select all
void showSavedText()
{
device->getGUIEnvironment()->addMessageBox (Caption.c_str(), SavedText.c_str());
Code: Select all
class MyEventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
if (event.EventType == EET_GUI_EVENT)
{
s32 id = event.GUIEvent.Caller->getID();
IGUIEnvironment* env = device->getGUIEnvironment();
switch(event.GUIEvent.EventType)
{
Code: Select all
case EGET_MENU_ITEM_SELECTED:
{
//a menu item was clicked
IGUIContextMenu* menu = (IGUIContextMenu*)event.GUIEvent.Caller;
s32 id = menu->getItemCommandId(menu->getSelectedItem());
switch(id)
{
How do I make it solid? It's kinda hard to read this way.