[colobot] 22/145: Change SatCom button size in main menu

Didier Raboud odyx at moszumanska.debian.org
Mon Jul 11 12:56:13 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 2ea453f484c75c9146296d904785c42e775fbe65
Author: Krzysztof Dermont <erihel at gmail.com>
Date:   Tue Mar 29 21:36:33 2016 +0200

    Change SatCom button size in main menu
    
    Change button size as proposed in issue #722
---
 src/ui/screen/screen_main_menu.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/ui/screen/screen_main_menu.cpp b/src/ui/screen/screen_main_menu.cpp
index fa016a3..ea8a29c 100644
--- a/src/ui/screen/screen_main_menu.cpp
+++ b/src/ui/screen/screen_main_menu.cpp
@@ -163,9 +163,11 @@ void CScreenMainMenu::CreateInterface()
     pl->SetFontSize(Gfx::FONT_SIZE_SMALL);
 
     // SatCom button
-    pos.x = ox+sx*4.4f;
-    pos.y = oy+sy*4.4f;
-    pb = pw->CreateButton(pos, dim, 128+60, EVENT_INTERFACE_SATCOM);
+    pos.x = ox+sx*4.3f;
+    pos.y = oy+sy*4.3f;
+    ddim.x = dim.x*1.2f;
+    ddim.y = dim.y*1.2f;
+    pb = pw->CreateButton(pos, ddim, 128+60, EVENT_INTERFACE_SATCOM);
     pb->SetState(STATE_SHADOW);
 
     SetBackground("textures/interface/interface.png");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list