mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
gui/widget/menue.cpp: fade-in, if menu was hidden, for testing
This commit is contained in:
@@ -670,6 +670,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
break;
|
||||
case menu_return::RETURN_REPAINT:
|
||||
case menu_return::RETURN_EXIT_REPAINT:
|
||||
if (fade && washidden)
|
||||
fader.StartFadeIn();
|
||||
paint();
|
||||
break;
|
||||
}
|
||||
@@ -761,6 +763,7 @@ void CMenuWidget::hide()
|
||||
for (unsigned int count = 0; count < items.size(); count++)
|
||||
items[count]->init(-1, 0, 0, 0);
|
||||
hint_painted = false;
|
||||
washidden = true;
|
||||
}
|
||||
|
||||
void CMenuWidget::calcSize()
|
||||
@@ -903,6 +906,7 @@ void CMenuWidget::paint()
|
||||
|
||||
item_start_y = y+hheight;
|
||||
paintItems();
|
||||
washidden = false;
|
||||
}
|
||||
|
||||
void CMenuWidget::setMenuPos(const int& menu_width)
|
||||
|
@@ -454,6 +454,7 @@ class CMenuWidget : public CMenuTarget
|
||||
bool exit_pressed;
|
||||
bool from_wizard;
|
||||
bool fade;
|
||||
bool washidden;
|
||||
|
||||
void Init(const std::string & Icon, const int mwidth, const mn_widget_id_t &w_index);
|
||||
virtual void paintItems();
|
||||
|
Reference in New Issue
Block a user