Remove/readd comments

develop
Robob27 2023-02-01 17:29:33 -05:00
parent 6e442a26ca
commit 085a308e99
2 changed files with 12 additions and 1 deletions

@ -2423,7 +2423,6 @@ bool Core::SelectHotkey(int sym, int modifiers)
// TODO: understand more about this to figure out if this solution works
bool found = false;
std::vector<std::string> focusStrings = Gui::getFocusStrings(Core::getTopViewscreen());
// is there convention for when to use size_t vs int?
for (std::string focusString : focusStrings) {
if (prefix_matches(binding.focus, focusString)) {
found = true;

@ -358,6 +358,18 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
}
}
/* TODO: understand how this changes for v50
DEFINE_GET_FOCUS_STRING_HANDLER(dungeonmode)
{
using df::global::adventure;
if (!adventure)
return;
focus += "/" + enum_item_key(adventure->menu);
}
*/
bool Gui::matchFocusString(std::string focusString) {
focusString = toLower(focusString);
std::vector<std::string> currentFocus = getFocusStrings(getCurViewscreen(true));