00001 00002 // Copyright (C) 2004-2007 by The Allacrost Project 00003 // All Rights Reserved 00004 // 00005 // This code is licensed under the GNU GPL version 2. It is free software 00006 // and you may modify it and/or redistribute it under the terms of this license. 00007 // See http://www.gnu.org/copyleft/gpl.html for details. 00009 00018 #ifndef __BOOT_CREDITS__ 00019 #define __BOOT_CREDITS__ 00020 00021 #include <string> 00022 00023 #include "video.h" 00024 00025 namespace hoa_boot { 00026 00027 // TODO: this should all be defined in the private_boot namespace 00028 00034 class CreditsScreen 00035 { 00036 public: 00037 CreditsScreen(); 00038 00039 ~CreditsScreen(); 00040 00042 void Draw(); 00043 00045 void UpdateWindow(int32 frame_time); 00046 00048 void Show(); 00049 00051 void Hide(); 00052 00054 bool IsVisible(); 00055 00056 private: 00058 hoa_video::MenuWindow _window; 00059 00061 bool _visible; 00062 00064 float _text_offset_y; 00065 00067 std::string _credits_text; 00068 00070 hoa_video::RenderedString* _credits_rendered; 00071 }; 00072 00073 } // namespace hoa_boot 00074 00075 #endif // __BOOT_CREDITS__
1.5.1