mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 07:43:18 +00:00
Implement select_action::tshow::select for tgenerator.
This commit is contained in:
parent
967dbc7714
commit
67c45f2013
@ -437,10 +437,9 @@ struct tselect
|
||||
struct tshow
|
||||
: public virtual tgenerator_
|
||||
{
|
||||
/** @todo implement when set_visible works. */
|
||||
void select(tgrid& /*grid*/, const bool /*show*/)
|
||||
void select(tgrid& grid, const bool show)
|
||||
{
|
||||
//grid->set_visible(show);
|
||||
grid.set_visible(show ? twidget::VISIBLE : twidget::HIDDEN);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user