Permalink
Browse files

allow an extra tool button to show on the left edge when cut off

electronics, explosives, and solids all have just one extra element, now you can always see it without scrolling. The only other scrolling menu is GoL
  • Loading branch information...
jacob1 committed Aug 30, 2015
1 parent 68b4f1e commit 4af4ae365608a91af47b5c1471952f0a66af6b10
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/gui/game/GameView.cpp
@@ -1045,11 +1045,10 @@ void GameView::setToolButtonOffset(int offset)
{
ToolButton * button = *iter;
button->Position.X -= offset;
if(button->Position.X <= 0 || (button->Position.X+button->Size.X) > XRES-2) {
if (button->Position.X+button->Size.X <= 0 || (button->Position.X+button->Size.X) > XRES-2)
button->Visible = false;
} else {
else
button->Visible = true;
}
}
}

0 comments on commit 4af4ae3

Please sign in to comment.