Handle the stocks screen in the focus strings.

develop
Alexander Gavrilov 2012-05-21 21:30:53 +04:00
parent 87a26ffa51
commit 34f08c0223
1 changed files with 11 additions and 0 deletions

@ -391,6 +391,17 @@ DEFINE_GET_FOCUS_STRING_HANDLER(layer_assigntrade)
focus += "/Items";
}
DEFINE_GET_FOCUS_STRING_HANDLER(stores)
{
if (!screen->in_right_list)
focus += "/Categories";
else if (screen->in_group_mode)
focus += "/Groups";
else
focus += "/Items";
}
std::string Gui::getFocusString(df::viewscreen *top)
{
if (!top)