Formatting and spacing fixes.

This commit is contained in:
sonicx 2017-02-10 14:24:03 +01:00
parent 4101ff23db
commit ce945502c0
1 changed files with 11 additions and 18 deletions

View File

@ -1985,7 +1985,9 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
//preserve editboxes
for (u32 i=0; i<m_fields.size(); i++) {
if(getElementFromId(m_fields[i].fid)->getTypeName() != std::string("editBox")) continue;
if (getElementFromId(m_fields[i].fid)->getTypeName() != std::string("editBox")) {
continue;
}
mydata.editbox_dyndata[m_fields[i].fname] = getElementFromId(m_fields[i].fid)->getText();
}
@ -2485,7 +2487,9 @@ void GUIFormSpecMenu::drawMenu()
regenerate = true;
m_dirty = false;
}
if(regenerate) regenerateGui(m_screensize_old);
if (regenerate) {
regenerateGui(m_screensize_old);
}
gui::IGUISkin* skin = Environment->getSkin();
sanity_check(skin != NULL);
@ -3012,17 +3016,6 @@ bool GUIFormSpecMenu::preprocessEvent(const SEvent& event)
}
}
}
/*
if (event.EventType == EET_MOUSE_INPUT_EVENT && event.MouseInput.Event == EMIE_LMOUSE_PRESSED_DOWN) {
gui::IGUIElement *focused = Environment->getFocus();
if(focused && isMyChild(focused)) {
if(getTypeByID(focused->getID()) == f_KeyEventBox) {
std::string empty;
this->setFocus(empty);
//return true;
}
}
}*/
// The IGUITabControl renders visually using the skin's selected
// font, which we override for the duration of form drawing,