[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3711 - trunk/pingus/src
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3711 - trunk/pingus/src |
Date: |
Mon, 7 Jul 2008 10:22:52 +0200 |
Author: grumbel
Date: 2008-07-07 10:22:52 +0200 (Mon, 07 Jul 2008)
New Revision: 3711
Modified:
trunk/pingus/src/game_session.cpp
Log:
Added proper resize handling for armageddon and Co. (smallmap, actionbutton,
etc. still missing)
Modified: trunk/pingus/src/game_session.cpp
===================================================================
--- trunk/pingus/src/game_session.cpp 2008-07-07 08:22:18 UTC (rev 3710)
+++ trunk/pingus/src/game_session.cpp 2008-07-07 08:22:52 UTC (rev 3711)
@@ -36,7 +36,7 @@
#include "savegame_manager.hpp"
#include "globals.hpp"
#include "debug.hpp"
-
+
GameSession::GameSession (const PingusLevel& arg_plf, bool
arg_show_result_screen)
: plf(arg_plf),
show_result_screen(arg_show_result_screen),
@@ -80,7 +80,7 @@
gui_manager->add(small_map);
gui_manager->add(time_display);
- armageddon_button = new ArmageddonButton(get_server(), Display::get_width()
- 40, Display::get_height() - 62);
+ armageddon_button = new ArmageddonButton(get_server(), Display::get_width()
- 40, Display::get_height() - 62);
forward_button = new ForwardButton(this, Display::get_width() - 40 * 2,
Display::get_height() - 62);
pause_button = new PauseButton(this, Display::get_width() - 40 * 3,
Display::get_height() - 62);
@@ -384,6 +384,13 @@
Math::max((Display::get_height() -
world_height)/2, 0)),
Size(Math::min(Display::get_width(), world_width),
Math::min(Display::get_height(),
world_height))));
+
+ armageddon_button->set_rect(Rect(Vector2i(Display::get_width() - 40,
Display::get_height() - 62),
+ Size(38, 60)));
+ forward_button->set_rect(Rect(Vector2i(Display::get_width() - 40*2,
Display::get_height() - 62),
+ Size(38, 60)));
+ pause_button->set_rect(Rect(Vector2i(Display::get_width() - 40*3,
Display::get_height() - 62),
+ Size(38, 60)));
}
/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3711 - trunk/pingus/src,
grumbel at BerliOS <=