MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetSelectedAction

Method GetSelectedAction

src/window_interpreter.cpp:283–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283Window_Interpreter::UiAction Window_Interpreter::GetSelectedAction() const {
284 if (GetIndex() >= lines_without_stack) {
285 return UiAction::ShowStackItem;
286 }
287 if (GetIndex() == 1 && sub_actions.IsVisible()) {
288 return sub_actions.GetSelectedAction();
289 }
290 return UiAction::None;
291}
292
293int Window_Interpreter::GetSelectedStackFrameLine() const {
294 if (GetIndex() < lines_without_stack) {

Callers 1

vUpdateMethod · 0.80

Calls 1

IsVisibleMethod · 0.45

Tested by

no test coverage detected