[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r2746 - branches/pingus_sdl/src
From: |
nehalmistry |
Subject: |
[Pingus-CVS] r2746 - branches/pingus_sdl/src |
Date: |
Tue, 17 Jul 2007 09:30:56 +0200 |
Author: nehalmistry
Date: 2007-07-17 09:30:47 +0200 (Tue, 17 Jul 2007)
New Revision: 2746
Modified:
branches/pingus_sdl/src/story_screen.cpp
Log:
move skip button to bottom-right
Modified: branches/pingus_sdl/src/story_screen.cpp
===================================================================
--- branches/pingus_sdl/src/story_screen.cpp 2007-07-17 07:15:02 UTC (rev
2745)
+++ branches/pingus_sdl/src/story_screen.cpp 2007-07-17 07:30:47 UTC (rev
2746)
@@ -97,7 +97,7 @@
StoryScreenComponent* story_comp;
public:
StoryScreenSkipButton(StoryScreenComponent* arg_story_comp)
- : GUI::SurfaceButton(0, Display::get_height() - 26,
+ : GUI::SurfaceButton(Display::get_width() - 4, Display::get_height() - 26,
ResDescriptor("core/misc/next"),
ResDescriptor("core/misc/next"),
ResDescriptor("core/misc/next")),
@@ -107,11 +107,11 @@
void draw (DrawingContext& gc)
{
- gc.print_left(Fonts::chalk_small, 4.0f, Display::get_height() -
26.0f, SKIP_TEXT);
+ gc.print_right(Fonts::chalk_small, (float)x_pos, (float)y_pos,
SKIP_TEXT);
}
bool is_at(int x, int y) {
- return x > x_pos && x < x_pos +
Fonts::chalk_small.get_width(SKIP_TEXT)
+ return x > x_pos - Fonts::chalk_small.get_width(SKIP_TEXT) && x <
x_pos
&& y > y_pos && y < y_pos + Fonts::chalk_small.get_height();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r2746 - branches/pingus_sdl/src,
nehalmistry <=