[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src story_screen.cxx,1.1,1.2
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src story_screen.cxx,1.1,1.2 |
Date: |
22 Mar 2003 23:28:53 -0000 |
Update of /var/lib/cvs/Games/Pingus/src
In directory dark:/tmp/cvs-serv8487
Modified Files:
story_screen.cxx
Log Message:
reactivated fadeovers
Index: story_screen.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/story_screen.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- story_screen.cxx 21 Mar 2003 22:40:12 -0000 1.1
+++ story_screen.cxx 22 Mar 2003 23:28:51 -0000 1.2
@@ -33,6 +33,7 @@
{
private:
CL_Surface sur;
+ CL_Surface background;
std::string text;
std::string display_text;
float time_passed;
@@ -76,7 +77,10 @@
StoryScreenComponent::StoryScreenComponent ()
{
+ time_passed = 0;
sur = PingusResource::load_surface("Story/story1", "story");
+ background = PingusResource::load_surface("Story/background", "story");
+
text =
"Dies ist ein Tet blabla, sehr lang blabla und mit umbruechen blabal\n"
"Zeile zwei mehr text blabla umbrauchuauaneh usnthu snaotehu nostehusano\n"
@@ -87,7 +91,8 @@
void
StoryScreenComponent::draw (GraphicContext& gc)
{
- gc.clear(0,0,0);
+ //gc.clear(0,0,0);
+ gc.draw(background, 0, 0);
gc.print_center(Fonts::pingus_large, 400, 20, "Chapter 1 - Enter the
unknown...");
sur.put_screen(400-320, 90);
gc.print_left(Fonts::pingus_small, 100, 315, display_text);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src story_screen.cxx,1.1,1.2,
grumbel <=