recalculateAbsolutePosition(false);
v2s32 topleft(0, 0);
-
+ changeCtype("");
{
core::rect < s32 > rect(0, 0, 125, 20);
rect += topleft + v2s32(25, 3);
Environment->addButton(rect, this, GUI_ID_ABORT_BUTTON,
wgettext("Cancel"));
}
+ changeCtype("C");
}
void GUIKeyChangeMenu::drawMenu()
if (event.EventType == EET_KEY_INPUT_EVENT && activeKey >= 0
&& event.KeyInput.PressedDown)
{
+ changeCtype("");
if (activeKey == GUI_ID_KEY_FORWARD_BUTTON)
{
this->forward->setText(
narrow_to_wide(KeyNames[event.KeyInput.Key]).c_str());
this->key_dump = event.KeyInput.Key;
}
-
+ changeCtype("C");
activeKey = -1;
return true;
}
}
if (event.GUIEvent.EventType == gui::EGET_BUTTON_CLICKED)
{
+ if(event.GUIEvent.Caller->getID() != GUI_ID_BACK_BUTTON &&
+ event.GUIEvent.Caller->getID() != GUI_ID_ABORT_BUTTON)
+ {
+ changeCtype("");
+ }
+
switch (event.GUIEvent.Caller->getID())
{
case GUI_ID_BACK_BUTTON: //back
break;
}
//Buttons
+ changeCtype("C");
}
}