From 4af4ae365608a91af47b5c1471952f0a66af6b10 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 30 Aug 2015 01:55:48 -0400 Subject: [PATCH] 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 --- src/gui/game/GameView.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index a03d55138..0e371ceda 100644 --- a/src/gui/game/GameView.cpp +++ b/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; - } } }