MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / btnOkClick

Method btnOkClick

src/Geoscape/BaseNameState.cpp:123–138  ·  view source on GitHub ↗

* Returns to the previous screen * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

121 * @param action Pointer to an action.
122 */
123void BaseNameState::btnOkClick(Action *)
124{
125 if (!_edtName->getText().empty())
126 {
127 _game->popState();
128 _game->popState();
129 if (!_first || Options::customInitialBase)
130 {
131 if (!_first)
132 {
133 _game->popState();
134 }
135 _game->pushState(new PlaceLiftState(_game, _base, _globe, _first));
136 }
137 }
138}
139
140}

Callers

nothing calls this directly

Calls 4

pushStateMethod · 0.80
emptyMethod · 0.45
getTextMethod · 0.45
popStateMethod · 0.45

Tested by

no test coverage detected