mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
BrickGame: Add a menu option to disable the shadow drop hint
This commit is contained in:
parent
f3f14a7ef1
commit
439076df8a
3 changed files with 14 additions and 1 deletions
|
@ -471,6 +471,12 @@ void BrickGame::toggle_pause()
|
|||
update();
|
||||
}
|
||||
|
||||
void BrickGame::set_show_shadow_hint(bool should_show)
|
||||
{
|
||||
m_show_shadow_hint = should_show;
|
||||
repaint();
|
||||
}
|
||||
|
||||
void BrickGame::timer_event(Core::TimerEvent&)
|
||||
{
|
||||
switch (m_brick_game->state()) {
|
||||
|
@ -547,7 +553,7 @@ void BrickGame::paint_cell(GUI::Painter& painter, Gfx::IntRect rect, BrickGame::
|
|||
break;
|
||||
case BrickGame::BoardSpace::ShadowHint:
|
||||
inside_color = m_shadow_color;
|
||||
outside_color = m_hint_block_color;
|
||||
outside_color = m_show_shadow_hint ? m_hint_block_color : m_shadow_color;
|
||||
break;
|
||||
case BrickGame::BoardSpace::Off:
|
||||
inside_color = m_shadow_color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue