MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / pop

Method pop

src/bzflag/HUDDialogStack.cpp:64–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void HUDDialogStack::pop() {
65 if (isActive()) {
66 const int index = (int)stack.size() - 1;
67 stack[index]->dismiss();
68 std::vector<HUDDialog*>::iterator it = stack.begin();
69 for (int i = 0; i < index; i++) { it++; }
70 stack.erase(it);
71 if (index > 0) {
72 HUDDialog* dialog = stack[index - 1];
73 HUDui::setDefaultKey(dialog->getDefaultKey());
74 dialog->reFocus();
75 dialog->resize(getMainWindow()->getWidth(),
76 getMainWindow()->getHeight());
77 dialog->show();
78 }
79 else {
80 HUDui::setDefaultKey(NULL);
81 HUDui::setFocus(NULL);
82 getMainWindow()->getWindow()->removeResizeCallback(resize, this);
83 }
84 }
85}
86
87void HUDDialogStack::render() {
88 if (isActive()) {

Callers 15

joinInternetGame2Function · 0.80
startPlayingFunction · 0.80
executeMethod · 0.80
keyPressMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
~PlanStackMethod · 0.80
executeMethod · 0.80
keyPressMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
keyPressMethod · 0.80

Calls 12

reFocusMethod · 0.80
removeResizeCallbackMethod · 0.80
getWindowMethod · 0.80
getMainWindowFunction · 0.70
sizeMethod · 0.45
dismissMethod · 0.45
beginMethod · 0.45
getDefaultKeyMethod · 0.45
resizeMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected